installshield - how to let user add files to program files folder in the install

☆樱花仙子☆ 提交于 2020-07-10 17:46:25

问题


I am trying to create an installer that will get the project to install from my server. The project will be chosen dynamically by the user (the user has access to the server), so I can't copy the files to the installer when I create it.

I want that the files will add to to ProgramFilesFolder in the installer. How can I do this?


回答1:


Not entirely sure what you want to do. Do you want to automatically add files to a project that they select and then build and MSI? Installshield can be run via automation (i.e via VBScript, VB, C# etc...), and you can achieve what you want using this approach. To work with a project you start from the ISWiProject Object. See this answer: Installshield Build Automation. And for C#: Getting Started with InstallShield Automation and C#.

Personally I would use Wix instead and automate via the Heat.exe tool and standard XML editing via code.

See how Installshield compares to other setup tools: What installation product to use? InstallShield, WiX, Wise, Advanced Installer, etc

Learn about Wix:

  • Windows Installer and the creation of WiX
  • MSI vs nuget packages: which are is better for continuous delivery?
  • Newer answer on automation


来源:https://stackoverflow.com/questions/30013772/installshield-how-to-let-user-add-files-to-program-files-folder-in-the-install

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