We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

schwarzerLotus
Posts: 3
Joined: Thu Aug 02, 2018 10:16 am

Upgrade older versions

Hi I'm a bit confused on the upgrade function for older versions.

I have two older versions of my software and an installer for each version built with Install Shield.
Now I would like my new installer built with ai to detect these software and uninstall them first.

One idea I found was to take the Upgrade Code Guid and add this one to the new ai project but so far I couln't find this Guid

Another idea was to use the Upgrades page in ai and find the upgrade code using the add new upgrade dialog and "installed on this machine" but the older software versions are not in the drop down menu.

Both older versions come as setup.exe. I tried to extract a msi file - but this was not working.

I would be happy on every idea what I could try to uninstall the old versions within my new ai installer.

Thanks
Maick
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrade older versions

Hello Maick and welcome to our forums,

The UpgradeCode is a GUID representing a related set of products. A set of different versions of your application will have the same UpgradeCode. This enables newer versions of your application to search and upgrade previous versions installed on the same computer.
One idea I found was to take the Upgrade Code Guid and add this one to the new ai project but so far I couln't find this Guid
Yes, indeed, you will need the upgrade code in order to achieve what you want. The easiest way I can think of right now is to deploy your setup on a virtual machine using a command line which creates a log of the installation process, then look up in the log for the "UpgradeCode" property and take its value from there. From what I know, you can use a command line such as follows in order to achieve what we have earlier discussed:

Code: Select all

Setup.exe /V"/lv C:\temp\SetupLog.log"
To do this, open a new command line, navigate to the folder that contains your setup.exe and then insert the above command line.

After doing so, open your Advanced Installer project (.aip file), go to "Product Details" page from the "Product Information" group and under "Product IDs" tab, change the upgrade code with the one you have taken from the log file. This way, your setup will be able to remove older versions of the application by searching for the products that have the same upgrade code and a lower version.

Let me know if this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
schwarzerLotus
Posts: 3
Joined: Thu Aug 02, 2018 10:16 am

Re: Upgrade older versions

Hi Catalin,

I tried your solution but the command line options didn't create any logfile - for none of both InstallShield installers :(

Do you have another idea to extract the upgrade code from the installer or the installation?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrade older versions

Hello Maick,

Can you please also try using the following command line to create a log:

Code: Select all

setup.exe /debuglog "PathToLog\setupexe.txt"
and see if this helps? For example, you can use a simple path like "C:\setupexe.txt".

You can also use our predefined support for "Repackager" which is available starting with an Architect project type. For more information about "Repackager", you can check our "Repackaging an existing installation" article.

Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
schwarzerLotus
Posts: 3
Joined: Thu Aug 02, 2018 10:16 am

Re: Upgrade older versions

Hi Catalin,

this command line switch didn't create a log file too. No idea whats wrong with this old installers :roll:

I ended up with this solution:
- Check if there is any registry key in the uninstall section with my program name
- Show a dialog and ask the user to deinstall the old software version
- Cancel the installer
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Upgrade older versions

Thank you for your follow up on this.

We are glad that you implemented a solution though.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”