英文:
Using Orca.exe I need to create MST file on Client Side via Command Prompt
问题
在部署我的应用程序的ClientSetup.msi时,我需要将服务器IP地址作为参数传递。我已经被建议使用Orca.exe来创建MST文件。
我需要一个命令行来执行这个操作,因为它需要从我的应用程序中自动化。
英文:
While deploying my application's ClientSetup.msi I need to pass the Server IP address as a parameter. I have been advised to use Orca.exe to create MST file.
I need command line to do this as it needs to be automated from my Application.
答案1
得分: 2
创建最小生成树(MST)仅为传递安装参数而言过于复杂。听起来,实际上你想要的是一个公共属性。这些属性会像这样通过命令行传递:
msiexec /i path\to\your.msi YOURSERVERIP=0.0.0.0
然后,在你的MSI中正确放置[YOURSERVERIP]
。我有一个使用WiX Toolset完成这个操作的视频。
英文:
Creating an MST is extremely overkill for just passing a parameter to the install. It sounds like what you actually want is a public Property. Those get passed on the command line like:
msiexec /i path\to\your.msi YOURSERVERIP=0.0.0.0
Then put [YOURSERVERIP]
in the right place in your MSI. I have a video about doing just this using the WiX Toolset.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论