使用Orca.exe,我需要通过命令提示符在客户端创建MST文件。

huangapple go评论57阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月7日 20:33:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75662022.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定