win_installer: Use new <MajorUpgrade> element

This commit is contained in:
Daniel Marjamäki 2012-07-01 20:34:27 +02:00
parent 1bb4fc62e8
commit f94f5804a3
1 changed files with 1 additions and 12 deletions

View File

@ -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"/>