如何在安装后运行自定义操作,该操作可以在安装后安静运行或在 UI 中运行 (WIX)
我基本上希望能够针对文件运行到的目录运行所需计算机上已存在的命令行工具。
即安装程序执行以下操作:
指定文件要进入的位置(INSTALLOCATION 变量)
然后在复制完成后运行一个工具,该工具将压缩文件并将它们附加到另一个应用程序。
<CustomAction Id="InstallTo" Return="check" Directory="INSTALLLOCATION" Execute="immediate" ExeCommand='"C:\MyTool\Here\Tool.exe" -ad [INSTALLLOCATION] Poop 1.0'/>
<InstallExecuteSequence>
<Custom Action="InstallTo" After="InstallFinalize">$InstallTo>2</Custom>
</InstallExecuteSequence>
目前我不确定是否正在调用任何东西,是否有一种方法可以基本上完成这两步安装并在工具失败/不存在等情况下报告进度。
谢谢, 杰米
I basically want to able to run an command line tool that already exists on the desired machine against the directory the files were run to.
I.e The Installer does the following:
Specify a location for the files to go into (INSTALLOCATION variable)
Then after copying has finished run a tool which will zip the files and attach them to attach them to another application.
<CustomAction Id="InstallTo" Return="check" Directory="INSTALLLOCATION" Execute="immediate" ExeCommand='"C:\MyTool\Here\Tool.exe" -ad [INSTALLLOCATION] Poop 1.0'/>
<InstallExecuteSequence>
<Custom Action="InstallTo" After="InstallFinalize">$InstallTo>2</Custom>
</InstallExecuteSequence>
At the moment I'm not sure anyuthing is being called, is there a way to basically have this two step install and report progress if the tool failed/doesn't exist etc.
Thanks,
Jamie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们的 shell 库有问题,需要额外的斜杠。
Was a problem with our shell library requiring an extra slash.