Commits

Christian Specht committed a0bb37f

setup: enable major upgrade

  • Participants
  • Parent commits 2895ed0

Comments (0)

Files changed (3)

  - **build-setup.bat** will do the same, *and* create a **release\msi** folder with a MSI setup.  
 
 Please note that [WiX](http://wix.codeplex.com/) needs to be installed on your machine in order to build the setup file. We are using WiX 3.5 at the moment, which you can download [here](http://wix.codeplex.com/releases/view/60102).  
-The build script assumes that the **bin** subfolder of the WiX installation folder is in your **%PATH%** variable.
+The build script assumes that the **bin** subfolder of the WiX installation folder is in your **%PATH%** variable.  
+For more information about how to build the setup, see the readme file in the **wix** subfolder.
 
 ### Acknowledgements
 

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>
+		
 		<Property Id='ARPCOMMENTS'>$(var.Description)</Property>
 		<Property Id='ARPHELPLINK'>https://bitbucket.org/christianspecht/bitbucket-backup/overview</Property>
 		<Property Id='ARPREADME'>https://bitbucket.org/christianspecht/bitbucket-backup/overview</Property>
+How to release a new version
+####################################################################################
+
+1. Increase the version number in build.bat in the main folder
+(this version number is used for the setup AND the actual application)
+
+2. Find this line right at the beginning of the bitbucket-backup.wxs (in this folder) and replace the GUID by a new one:
+?define ProductId = {96C0B39F-9AC8-49D3-AB4E-18D7E88F9E3C} ?>