Hi there,
I am building an installer for a use case where it is common to install more than one version side by side, but then to want to upgrade one of them. So if we had an install in folder 10.2.3, 10.2.1 and 10.2.0 and we want to install 10.2.7, the user should be able to select 10.2.3 as the folder to upgrade, and the installer will install into a new folder 10.2.7 using 10.2.3 as the old version, leaving the other versions alone.
I have an idea of how to do this but I thought I'd ask and see if there was an easier way or any other features of the installer that I could use.
So it is my understanding that advanced installer looks for previous versions and stores them in the OLDPRODUCTS property for uninstalls and the MIGRATE property for feature migrations. I plan on setting these 2 properties to just be a single product code, which is chosen by the user when they want to upgrade. To display a list of currently installed versions to the user in a nice way (showing the path and the product version) I can search the registry location "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{PRODUCTCODE}" to get the DisplayVersion and the InstallLocation, to be shown in a listview or something like that.
Does this sound like the right sort of approach, or are the better ways of doing it? My fear with doing things like this is that it will be fragile and not work in all cases, but any insight or suggestions about what I'm trying to do would be appreciated.
Thank you.
FOLLOW US
Get the latest news in Application Packaging