存在先前版本时的自定义对话框 [英] custom dialog when previous version exists

查看:30
本文介绍了存在先前版本时的自定义对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自定义我的安装程序以在已安装以前的版本时显示自定义对话框.在欢迎对话框之后,用户应该会看到一个自定义对话框,上面写着以前的版本已经存在是否要继续".欢迎任何帮助.

I want to customize my installer to show custom dialog when previous version is already installed. After the welcome dialog user should see a custom dialog that says, "A previous version already exists do you want to continue". Any help is welcome.

推荐答案

检查这个文档,在标准 WIX 对话框中添加自定义对话框.您可以使用升级来查找以前安装的版本.

Check this document, to add Custom Dialog in standard WIX Dialogs.You can use Upgrade to find the previous version installed.

将 OnlyDetect 属性设置为 yes,以避免卸载以前的版本.

Set OnlyDetect attribute to yes, to avoid uninstall previous versions.

<Upgrade Id="{CE61D541-9988-4DA7-B748-7DF4355C6000}">
   <UpgradeVersion Property="PREVIOUSFOUND"
                   Minimum="1.0.0" IncludeMinimum="yes"
                   Maximum="$(var.Version)" IncludeMaximum="no"
                   OnlyDetect="yes"/>
</Upgrade>

使用 PREVIOUSFOUND 属性从欢迎对话框中发布上一版本存在对话框.

Use PREVIOUSFOUND property to publish the Previous Version exists dialog from Welcome Dialog.

<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
         Value="PreviousVersionDlg">PREVIOUSFOUND</Publish>

这篇关于存在先前版本时的自定义对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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