我制作了一个封装了 2 msi (msi1, msi2) 的刻录包。在 UI 中,我使用复选框要求用户选择要安装的 MSI。
现在,如果用户选择要安装的 msi 之一,则安装正常。但是在卸载操作期间,刻录日志文件显示:
[][:15]: Detected package: Netfx4Full, state: Present, cached: None
[][:15]: Detected package: DummyInstallationPackageId3, state: **Absent**, cached: None
[][:15]: Detected package: msi2.msi, state: **Present**, cached: Complete
[][:15]: Detect complete, result: 0x0
[][:16]: Plan 3 packages, action: Uninstall
[][:16]: Will not uninstall package: msi2.msi, found dependents: 1
[][:16]: Found dependent: {08e74372-83f2-4594-833b-e924b418b360}, name: My Test Application
Run Code Online (Sandbox Code Playgroud)
在安装场景中,我选择安装 msi2 而不是 msi1。
我的捆绑代码如下所示:
<Bundle Name="My Test Application" Version="1.0.0.0" Manufacturer="Bryan" UpgradeCode="CC2A383C-751A-43B8-90BF-A250F7BC2863">
<Chain>
<PackageGroupRef Id='Netfx4Full' /> …Run Code Online (Sandbox Code Playgroud)