InstallShield LE - Relative paths to file

BROTES DE GERMINADOS picture BROTES DE GERMINADOS · Mar 13, 2013 · Viewed 9.3k times · Source

When I add a dependency to my installer, I'm always left with a hard coded path to the file.

According to this blog, the only way around this is to manually change the hard coded paths in the ISL file with the ISProjectFolder variable. This isn't any good as the file will get blitzed every time I rebuild the installer.

I've also seen path variables mentioned but there seems to be no feature for them in InstallShield LE.

Anyone got any ideas?

Answer

Dwarf picture Dwarf · May 7, 2013
  • fixed relative paths for file content to be copied by the Install Shield Limited Edition to the output directory ( Visual Studio 2012 ) Steps:
  • Expand your install project in the Solution Explorer so you see the 1,2,3,4,5,6 sections
  • Expand '2' and double click on 'Files' You will see a four panel page: with 'Source computer's files' and 'Destination computer's files'
  • delete your hard coded paths and files from the 'Destination computer's files'
  • Click in the top left panel, on the project that has your files as 'Content Files'
  • the top right panel will show 'Content Files from MyProject'
  • click and drag this to the bottom right panel (the 'Destination computer's files')

Go back into your project and make sure all your files you want copied have properties: Build Action=Content and Copy to output directory=Copy Always