I am using the windows installer to install/upgrade an installation.
Using Visual Studio I can manually change the version number and then select yes when asked to change the ProductCode. This creates an installer that is capable of overwriting the existing installation provided that the following properties are set on the installer project
RemovePreviousVersions True
DetectNewerInstalledVersion True
Now in my build server I can change the version number to the appropriate new version in the .vdproj project.
Can somebody advise on how to generate a new ProductCode for the project from the command line or a batch script?