Commits

Christian Specht  committed 7277469

improve major upgrade (fixes #12)

  • Participants
  • Parent commits a0bb37f

Comments (0)

Files changed (1)

File wix/bitbucket-backup.wxs

 			<ComponentRef Id='ResDe' />
 		</Feature>
 		
-		<Upgrade Id='$(var.UpgradeCode)'>
-			<UpgradeVersion OnlyDetect='yes' Minimum='$(env.VersionNumber)' Property='NEWERVERSIONDETECTED' IncludeMinimum='no' />
-			<UpgradeVersion OnlyDetect='no' Maximum='$(env.VersionNumber)' Property='OLDERVERSIONBEINGUPGRADED' IncludeMaximum='no' />
-		</Upgrade>
-		
-		<InstallExecuteSequence>
-			<RemoveExistingProducts After="InstallInitialize" />
-		</InstallExecuteSequence>
+		<MajorUpgrade
+			DowngradeErrorMessage='A later version of [ProductName] is already installed. Setup will now exit.' />
 		
 		<Property Id='ARPCOMMENTS'>$(var.Description)</Property>
 		<Property Id='ARPHELPLINK'>https://bitbucket.org/christianspecht/bitbucket-backup/overview</Property>