Amin-egn
Posts: 9
Joined: Wed Nov 03, 2021 12:23 pm

Upgrade doesn't uninstall previous version and default path

Thu Dec 02, 2021 11:11 am

Hello,

I built updatable executable and update works well, But when I tested it didn't uninstall previous version and in control panel I got myApp v1.0 and myApp 1.1

In "Upgrades" page I set Order to "Uninstall old version first and then install new version" and check "Customize Advanced Installer upgrade rules"

In addition when I downloaded update I had to find folder, I want to update set it's path to installed folder automatically .


Appreciatively.

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrade doesn't uninstall previous version and default path

Thu Dec 02, 2021 3:16 pm

Hello,

In order for an update to be successful, few rules must be respected:

1. increase the version (which you already did)

2. make sure the ProductCode is different between the two versions

3. make sure the UpgradeCode is the same between the two versions

You can find the ProductCode and UpgradeCode by opening your project --> "Product Details" page --> "Product IDs" tab.

You can also read more about the two in the following article:

Product Identification (ProductCode and UpgradeCode)

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”