高级安装程序Setup.exe - 命令行开关卸载包

发布于 2024-12-20 10:03:06 字数 723 浏览 1 评论 0原文

使用高级安装程序,我创建了一个生成 EXE 的包(有些部署功能无法包含在普通 MSI 文件中)。

现在,虽然高级安装程序允许我将命令行参数传递给底层 MSI,但我不知道要传递哪些参数来强制卸载软件包。

例如,以下参数记录设置事件并指示底层 MSI 被动运行并记录其自己的操作。

"c:\MySetup.exe" /exelog "c:\log.txt" /passive /log "c:\msilog.txt"

AdvancedInstaller 执行的结果命令最终是

msiexec.exe /i [path to extracted msi] /passive /log "c:\msilog.txt"

但尽我所能,我无法弄清楚如何让 AdvancedInstaller 使用 /uninstall 或 /x 开关启动 msiexec。例如:

"c:\MySetup.exe" /exelog "c:\log.txt" /x /log "c:\msilog.txt"

结果

msiexec.exe /i [path to extracted msi] /x /passive /log "c:\msilog.txt"

当然会失败,因为 /x 位于错误的位置(应该代替 /i)。 高级安装程序 exe 需要哪些开关/参数?

Using Advanced installer, I've created a package resulting in an EXE (there are deployment features that couldnt be contained within a plain MSI file).

Now, while Advanced Installer allows me to pass through command line parameters to the underlying MSI, I have no idea what parameters to pass to force the package to uninstall.

For example, the following parameters logs the setup events and instructs the underlying MSI to run passively and log its own actions.

"c:\MySetup.exe" /exelog "c:\log.txt" /passive /log "c:\msilog.txt"

The resulting commands that AdvancedInstaller executes is ultimately

msiexec.exe /i [path to extracted msi] /passive /log "c:\msilog.txt"

But try as I might, I cannot figure out how to have AdvancedInstaller launch msiexec with the /uninstall or the /x switch. For example:

"c:\MySetup.exe" /exelog "c:\log.txt" /x /log "c:\msilog.txt"

results in

msiexec.exe /i [path to extracted msi] /x /passive /log "c:\msilog.txt"

which of course fails because the /x is in the wrong place (should be in place of the /i).
What switches/parameters is the Advanced Installer exe needing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

乖不如嘢 2024-12-27 10:03:06

好吧,它在文档中被隐藏得有点模糊:
所有“pre-path-to-msi”参数均遵循“[选项] // [可选参数]”模式

以下内容将指示高级安装程序 EXE 引导程序在卸载时触发 MSI。

更新:

"c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt"

Ok, it was buried a little obscurely in the documentation:
All 'pre-path-to-msi' parameters follow a "[option] // [optional parameters]" pattern

The following will instruct the Advanced Installer EXE bootstrap to fire off the MSI as uninstall.

UPDATED:

"c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt"
脱离于你 2024-12-27 10:03:06

您可以使用 // 标记,例如:

"c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt"

该标记用于替换 msiexec 命令行。您可以在用户指南中阅读相关内容: http://www.advancedinstaller .com/user-guide/exe-setup-file.html

You can use the // marker, for example:

"c:\MySetup.exe" /exelog "c:\log.txt" /x // /log "c:\msilog.txt"

This marker is used to replace the msiexec command line. You can read about it in the user guide: http://www.advancedinstaller.com/user-guide/exe-setup-file.html

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