InstallShield LE - Relative paths to file

混江龙づ霸主 提交于 2019-12-18 16:38:29

问题


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?


回答1:


  • 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



来源:https://stackoverflow.com/questions/15390098/installshield-le-relative-paths-to-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!