WiX – 通过检查修订来防止降级
发布时间:2020-09-01 12:26:20 所属栏目:Windows 来源:互联网
导读:我正在寻找一种方法来防止我的应用程序降级.但“问题”是,我必须检查修订号 例如: 安装1.0.0.1时应该可以安装1.0.0.2 – 但是安装1.0.0.2时不应该安装1.0.0.1. 我知道,Element MajorUpgrade只检查前三个令牌. 也许有人可以给我一个想法,怎么做?我可以写一个
我正在寻找一种方法来防止我的应用程序降级.但“问题”是,我必须检查修订号 例如: 我知道,Element MajorUpgrade只检查前三个令牌. <Upgrade Id="THE-PRODUCT-GUID"> <UpgradeVersion Property="PREVIOUSVERSIONINSTALLED" Minimum="1.0.0.0" Maximum="$(var.packageVersion)" IncludeMinimum="yes" IncludeMaximum="no" MigrateFeatures="yes" /> IncludeMinimum="yes" IncludeMaximum="yes" /> <UpgradeVersion Property="NEWERVERSIONINSTALLED" Minimum="$(var.packageVersion)" Maximum="99.0.0.0" IncludeMinimum="no" IncludeMaximum="yes" /> </Upgrade> <InstallExecuteSequence> <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWERVERSIONINSTALLED<>"" AND NOT Installed</Custom> <RemoveExistingProducts After="InstallInitialize">PREVIOUSVERSIONINSTALLED<>""</RemoveExistingProducts> </InstallExecuteSequence> PreventDowngrading自定义操作本质上是一个突破性错误: <CustomAction Id="PreventDowngrading" Error="Newer version already installed." /> (编辑:4S站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows:忘记本地账户开机密码,但记得住PIN码
- windows-installer – installshield和windowsinstaller之间
- 在非Qt应用程序中使用基于Qt的DLL
- 标签为Windows的SSH工具?
- windows – 在matlab中监视内存
- 值为NULL的列是否会影响Microsoft SQL Server的性能?
- windows-phone-7 – Caliburn Micro中的墓碑
- 如何正确使用MSBuild社区任务库在.NET dll上设置SVN版本号
- Windows 10 下彻底关闭 Hyper-V 服务
- ms-office – Microsoft Office 2010功能区自定义UI中的Pha
推荐文章
站长推荐
- 标签为Windows的SSH工具?
- ssms – 使用Windows身份验证时,如何在SQL Serve
- windows – Win32:窗口在整个生命周期内都有相同
- Vulkan Tutorial 01 开发环境搭建之Windows
- xaml – Windows 8 App,更改BackButtonStyle的颜
- 安装程序 – NSIS与Windows游戏资源管理器集成
- window下强制杀死某个进程用taskkill /pid 进程号
- DLL符号_FooBar @ 16中的数字16代表什么?
- Windows Server 2016-WinSer 2016标准版与数据中
- windows-10 – Windows 10移动设备错误:DEP6200
热点阅读