win_installer: Use new <MajorUpgrade> element
This commit is contained in:
parent
1bb4fc62e8
commit
f94f5804a3
|
@ -106,18 +106,7 @@
|
||||||
-->
|
-->
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
<Upgrade Id='$(var.ProductUpgradeCode)'>
|
<MajorUpgrade DowngradeErrorMessage='Downgrade is not allowed'/>
|
||||||
<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>
|
|
||||||
|
|
||||||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
|
||||||
<UIRef Id="WixUI_InstallDir"/>
|
<UIRef Id="WixUI_InstallDir"/>
|
||||||
|
|
Loading…
Reference in New Issue