如何在安装后运行自定义操作,该操作可以在安装后安静运行或在 UI 中运行 (WIX)

发布于 2024-09-01 06:06:46 字数 610 浏览 2 评论 0原文

我基本上希望能够针对文件运行到的目录运行所需计算机上已存在的命令行工具。

即安装程序执行以下操作:

指定文件要进入的位置(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&gt;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听你说爱我 2024-09-08 06:06:46

我们的 shell 库有问题,需要额外的斜杠。

Was a problem with our shell library requiring an extra slash.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文