don_ucw
Posts: 18
Joined: Tue Nov 20, 2018 5:30 am

Upgrade not installing old - installing side by side

I our project I have the upgrade options set to:
- Automatically upgrade older product versions
- uninstall old version first...
version number is set to 1.0.0

This is checked into TFS.

We use a build server. The AIP is fetched from TFS. The build server command line edits AIP and sets the build number to be (much) greater than 1.0.0.
It does a second edit the AIP for output location. It then loads path variables and performs a rebuild.

I checked the AIP on the build server and the version number is properly set, and the upgrade properties set above.

Suggestions?

thanks
don_ucw
Posts: 18
Joined: Tue Nov 20, 2018 5:30 am

Re: Upgrade not installing old - installing side by side

I should describe what happens.

I run a build, it creates build 9.0.0.9000 MSI. I download and install in.

I run a second build. it creates build 9.0.0.9001 MSI. I download and install it.

Both versins are installed.

I would expect that when I run the 9001 build MSI, it would say somelike like "do you want to remove the older version" or automatically remove the old version, based on the sections I made.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade not installing old - installing side by side

Hi,

Please read the "Uninstall existing version and install latest version" thread which debates the same problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
don_ucw
Posts: 18
Joined: Tue Nov 20, 2018 5:30 am

Re: Upgrade not installing old - installing side by side

Thanks for the tip.

FWIW the issue was that MS Installer does not recognize the last number in the build, e.g. major.minor.version.build

I changed the build number to increment on the 3rd number and it now uninstalls the old and installs the new. (e.g. 99.0.1.0 now goes to 99.0.2.0)
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Upgrade not installing old - installing side by side

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”