win_installer: Use new <MajorUpgrade> element
This commit is contained in:
parent
1bb4fc62e8
commit
f94f5804a3
|
@ -106,18 +106,7 @@
|
|||
-->
|
||||
</Feature>
|
||||
|
||||
<Upgrade Id='$(var.ProductUpgradeCode)'>
|
||||
<UpgradeVersion OnlyDetect='no'
|
||||
Property='OLDERVERSIONFOUND'
|
||||
Minimum='0.0.0'
|
||||
IncludeMinimum='yes'
|
||||
Maximum='$(var.ProductVersion).0'
|
||||
IncludeMaximum='no' />
|
||||
</Upgrade>
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<RemoveExistingProducts Before="InstallInitialize">OLDERVERSIONFOUND</RemoveExistingProducts>
|
||||
</InstallExecuteSequence>
|
||||
<MajorUpgrade DowngradeErrorMessage='Downgrade is not allowed'/>
|
||||
|
||||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
|
||||
<UIRef Id="WixUI_InstallDir"/>
|
||||
|
|
Loading…
Reference in New Issue