WIX 程序仍然存在于控制面板的“添加/删除”部分中
我设置了 WIX 安装选项,升级以删除以前的 DLL, 但是,当我进入控制面板并转到 添加/删除程序部分,以前的版本仍然存在。
如何从“添加/删除”部分中删除之前的图标?
.....
回应下面的评论 抱歉,我仍然无法让它工作,升级时,以前的版本仍然显示在“添加/删除程序”部分中, 这是一些代码
我最初确实将 ID 设置为“*”,但现在我只是在进行下一个构建时更改产品 ID
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
<UpgradeVersion Minimum="1.0.0"
IncludeMinimum="yes"
OnlyDetect="no"
Maximum="$(var.ProductVersion)"
IncludeMaximum="no"
Property="PREVIOUSVERSIONSINSTALLED" />
</Upgrade>
I made my WIX install option, upgrade so that it removes previous DLLs,
However when I go into Control Panel, and go to the
Add/Remove Programs section, the previous version is still present.
How do I remove this previous icon from this Add/Remove section?
.....
In response to the comment below
Sorry I still cant get this to work, previous versions still show in the Add/Remove Programs section when I upgrade,
Here is some code
I did have Id initially to "*" but now I just change Product ID when I make my next build
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
<UpgradeVersion Minimum="1.0.0"
IncludeMinimum="yes"
OnlyDetect="no"
Maximum="$(var.ProductVersion)"
IncludeMaximum="no"
Property="PREVIOUSVERSIONSINSTALLED" />
</Upgrade>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要升级的版本之间的升级 ID 必须相同。如果您想要执行重大升级,如果您删除以前的安装,然后安装新版本,则必须更改的属性是产品 id
“*” 会导致 WIX 生成新的 GUID
您想要这样的内容:
您应该另请注意,您无法在每个用户和每台计算机安装版本之间进行切换。
The upgrade id must be the same between versions that you want to upgrade. If you want to perform a major upgrade, were you remove previous installations and then install your new version, the property that must change is product id
An "*" causes a new guid to be generated by WIX
You want something like this:
You should also note that you cannot switch between per user and per a machine installs between versions.