title: How to add an icon to VS project with relative path
body: <p>I am trying to add an icon to an executable file produced in Visual Studio 2010 from a relative path since the project is intended to be distributed and compiled on several machines but I can't get it working. These are the steps that I perform:</p>
  
  <ol>
  <li>Right-click on Resources -> Add Resource -> Icon -> Import</li>
  <li>Then I import my icon which is two directories upward from my project ../../images/icon.ico</li>
  <li>Then I compile and I get the icon on the exe but if I open the auto generated .rc file with a text editor, the path to the icon is hard coded and if I move the project on another computer with a different file structure it doesn't compile.</li>
  </ol>
  
  <p>Is there a way to set the icon with a relative path? Or to make the .rc file work with relative paths?</p>