【发布时间】:2021-06-29 12:05:27
【问题描述】:
我的 Wix 包正在安装一些使用 Inno 安装程序打包的第 3 方 EXE 包。如您所知,Inno Setup 卸载程序是一个单独的可执行文件。基本上,当您安装 AThirdParty.EXE - 它会在其部署的文件夹中创建一个 unin000.exe(例如 C:\Program Files (x86)\AThirdPartyApp\unins000.exe ),这就是我在卸载包期间需要执行的内容。有人知道如何使用 Wix Bootstrapper 吗?
以下是我的 ExePackage 的示例:
<PackageGroup Id="MyThirdPartyPackages">
<ExePackage Id="AThirdPartyExe"
DisplayName="A Third Party Exe"
Cache="yes"
Compressed="yes"
PerMachine="yes"
Permanent="no"
Protocol="none"
Vital="yes"
SourceFile=".\AThirdPartyExe.exe"
DetectCondition="AThirdPartyExeExists"
InstallCommand="/VERYSILENT /SUPPRESSMSGBOXES"
UninstallCommand="[ThirtdPartyEXEPath]\unins000.exe" <!-- Can I use uninstallcommand for this?? -->
/>
</PackageGroup>
【问题讨论】:
-
AThirdPartyExe.exe 不支持 /UNINSTALL /VERYSILENT /SUPPRESSMSGBOXES 吗?
-
不,不支持AThirdPartyExe.exe /UNINSTALL
-
是否有任何商业理由将这个包标记为永久而不打扰卸载? (例如安装 .NET 或 VCRedist。)
-
“永久”安装是当前行为。如果可能的话,我只是想自己清理一下:)
标签: wix bundle inno-setup uninstallation bootstrapper