Upgrade doesn't - Advanced Installer Community
thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Upgrade doesn't

Using 12.7.2 with a project created on 12.3.1. Just now trying to get it to upgrade the previous version. However, it does not uninstall/reinstall although set to do that and results in 2 entries in Programs and Features.

Our build process increments a build counter and edits the project with that version as the 4th place, e.g. 10.2.3.9432, using /SetVersion. But that does not trigger an upgrade.

Then it generates a new product code so every build should be able to upgrade the previous build, using:

Code: Select all

AdvancedInstaller.com /edit myproject.aip /SetProductCode -langid 1033
Then does a /rebuild.

Oddly 3 other installers (built on 12.3.1) have no problem with upgrades.

I have emailed the project file to your support and will reference this.

Any guidance (or friendly whack up side my head :) ) would be appreciated.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrade doesn't

Hello,

This may happens if you are using the 4th field for the ProductVersion.

For details, please check the Why does the upgrade installation fail article.

Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: Upgrade doesn't

Yes, that worked.

Now I'm being asked why 3 other (and older) installers that are still being built with 12.3.1 work when we only change the 4th-place version number and generate a new Product Code? I assumed it was the different Product Code.

We have an automated build system that runs several times a day. Each build increments a build number for the 4th-place and generates new Product Codes. This way each build can upgrade any previous build. We've been operating this way for a long time.

But this new installer I'm working on, based on 12.7.2, behaves differently. I had it setup identically to the older ones - but it won't trigger upgrade behavior.

So I'm being asked "What changed?".

* Is it a change in Advanced Installer?
* A fix to a quirk that we have been taking advantage of?
* A change to Windows Installer?
* What?

The problem is we would have to change how we handle version numbers in our company and with our customers. So they would like an explanation as to why.

Thanks again for your time and effort. I have send your support another Zip with this new 12.7.2 project and an older 12.3.1 project titled "Upgrade confusion" for comparison :)

Return to “Common Problems”