在Wix 3.8中检测MajorUpgrade [英] Detecting MajorUpgrade in Wix 3.8

查看:198
本文介绍了在Wix 3.8中检测MajorUpgrade的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装软件的所有新版本,作为主要升级,因为安装非常小,并且在大多数情况下,所有文件都会更改.

I am installing all new versions of my software as major upgrades, as the installations are very small and most of the time, all files change anyway.

如果完成了与全新安装相比的升级,我想跳过安装程序中的一个对话框,但是到目前为止,在以下示例中,我仍无法弄清是什么条件(例如"Installed AND PATCH")使用.

I would like to skip one dialog in the installer, if an upgrade as compared to a fresh installation is done, but so far I have failed to figure out what conditional (like "Installed AND PATCH") in the following example to use.

     <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
              Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish>

推荐答案

您需要向我们展示您的主要升级元素或WiX中的升级元素,以获取详细信息,但是检测到您正在执行升级的方法是:使用升级属性名称.有时名称为PREVIOUSVERSIONSINSTALTAL,但是如果使用MajorUpgrade元素,它将设置一个名为WIX_UPGRADE_DETECTED的属性.

You need to show us your major upgrade element or your upgrade elements in the WiX for details, but the way you detect that you're doing an upgrade is to use the upgrade property name. Sometimes the name is PREVIOUSVERSIONSINSTALLED, but if you used the MajorUpgrade elements it sets a property called WIX_UPGRADE_DETECTED.

http://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html

这意味着对话框中的条件将是:

That means the condition in your dialog will be:

不是WIX_UPGRADE_DETECTED

Not WIX_UPGRADE_DETECTED

如果要取消显示对话框.您不想要PATCH,因为您根本没有做任何与补丁有关的事情.

if you want to suppress the dialog. You don't want PATCH because you are not doing anything at all related to patches.

这篇关于在Wix 3.8中检测MajorUpgrade的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆