phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Manuel change of product codes creates multiple softwarelist

Hi,

We are using the following version number schema: 9.28.1111.20
From build to build we only change the fourth number (for example form 9.28.1111.20 to 9.28.1111.21).
Unfortunately advanced installer doesn’t create new product code for such version switch (consequently or clients aren’t able to update).
So we tried to set the product codes manually, using the following command line (we have to start AI via command line, because it’s included in our automatic build process):

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com" /edit setup.aip  /SetVersion 9.28.1111.21
"C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com"  /edit setup.aip  /SetProductCode -langid 1031
"C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com"  /edit setup.aip  /SetProductCode -langid 1033
"C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com"  /edit setup.aip /SetProductCode -langid 1043
"C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com"  /build setup.aip
Unfortunately this approach creates a new softwarelist entry for each upgrade.

For example: I installed version 9.28.1111.20 when now upgrading on version 9.28.1111.21 I have two softwarelist entries (one for version 9.28.1111.20, and one for version 9.28.1111.21).

The behavior can easily be reproduced with a simple dummy setup file…

Do you have any suggestions for solving that issue?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Manuel change of product codes creates multiple software

Hello,

Please keep in mind the three digit limitation applies to the value of the ProductVersion Property. As mentioned in this MSDN article, the fourth field can be included, but it is ignored (which means that "1.2.3.4" and "1.2.3.7" will represent the same ProductVersion value).

This is a Windows Installer limitation and it is not related to Advanced Installer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Manuel change of product codes creates multiple software

Hi,

I knew this. That's why I tried to set the product code manually (I could live which setting the product code manually), but when setting the product code manually, I reveice the problem with the multiple softwarelist entries.

I only wanted to ask for a solution of the multiple softwarelist entry-problem, not for the three digit limitation.

Regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Manuel change of product codes creates multiple software

Hello,

Setting the fourth digit from command line is the same as setting it from the GUI. This and manually changing the product code does not change the way Windows Installer compares the versions during upgrade.
As I mentioned in my previous post, the fourth digit will be ignored nevertheless.

We specially added the warning message box when changing the version number to avoid these kind of attempts.

You can try to rethink your strategy and add extra numbers to the third digit to better differentiate the upgrades.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”