installshield-如何让用户在安装过程中将文件添加到“程序文件"文件夹中 [英] installshield - how to let user add files to program files folder in the install
问题描述
我正在尝试创建一个安装程序,该安装程序将使项目从我的服务器上安装.项目将由用户动态选择(用户有权访问服务器),因此创建项目时无法将文件复制到安装程序中.
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.
我希望这些文件将添加到安装程序中的ProgramFilesFolder中. 我该怎么办?
I want that the files will add to to ProgramFilesFolder in the installer. How can I do this?
推荐答案
不确定要做什么.您是否要自动将文件添加到他们选择的项目中,然后进行构建和MSI? Installshield可以通过自动化运行 (即通过VBScript,VB,C#等...),则可以使用此方法实现所需的功能.要使用项目,请从 ISWiProject对象 一个>.请参见以下答案: Installshield构建自动化.对于C#: InstallShield Automation和C#入门.
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#.
我个人将使用Wix并通过Heat.exe工具自动执行,并通过代码进行标准XML编辑.
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
了解有关混合的信息:
- Windows Installer and the creation of WiX
- MSI vs nuget packages: which are is better for continuous delivery?
- Newer answer on automation
这篇关于installshield-如何让用户在安装过程中将文件添加到“程序文件"文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!