Update Version via command line - Advanced Installer Community
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Update Version via command line

Hello Team,

i have another small issue with advanced installer at the moment. On my build server, i use the command line /setversion switch.
I have checked multiple times, but something strange is going on: The version of my aip setup is increasing indeed, BUT no new Upgrade Code is generated.
For that reason, i always get the another version is already installed error, instead of an updated installation without user prompting.

What should I do?

Best Regards
Robert Schadt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Update Version via command line

Hi Robert,

This is the normal behavior. When the Product Version of a project is changed, only the Product Code is changed automatically, not the Upgrade Code. The Upgrade Code of a project/application should never be changed.

However, I'm not sure why you encounter that error because it should not appear when the Upgrade Code is not changed. You can take a look on the Why do I receive the "Another version of this product is already installed" message FAQ article for more details.

If the problem persists, you can send us two different versions of your project that were modified using the /setversion switch, so we can investigate them.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Re: Update Version via command line

Hello Eusebiu,

sorry, i meant product code of course. the product code is not changed.
But i have found another forum post which says that if you had a 4 part number like 1.0.0.1 it may not change product code automatically.
I have 4, so maybe that is the issue.
But just for clarification, why is this implemented like that?
I mean, i thought the method would be like if versionold!=versionnew {createNewProductCode()} so the parts of the number should not matter ?

Best Regards
Robert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Update Version via command line

Hi Robert,

I'm afraid that this is the Windows Installer normal behavior. As mentioned in the ProductVersion property article, Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Re: Update Version via command line

Hello Eusebiu,

ok, so i change to a three field number, no problem.

Thank you for clarification.

Best Regards
Robert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Update Version via command line

You're welcome Robert. Glad to help.

Just let us know if you have any other question.

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

Return to “Common Problems”