davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

how to generate a new product code for every version string

First, I am passing the version string into AdvancedInstaller using the SetVersion command line option. I'm using "x.x.x.build" versioning.

===

Question 1: Is there a GUI checkbox or a command line option that will let me generate a new productcode for every version string for every langid? Meaning, even if just the build value changed, I want a new productcode for every langid. For example, if it goes from 1.1.1.100 to 1.1.1.101, I want new productcode values generated.

I found the following command line parameter

"/SetProductCode -langid 1033 -guid"

if this the way to do it, and my installer supports a dozen+ languages, would I then just use multiple /SetProductCode parameters, one for each langid and use "-guid" without a guid value?

advancedinstaller.com /edit MyProject.aip /SetProductCode -langid 1033 -guid /SetProductCode -langid x1 -guid /SetProductCode -langid x2 -guid /SetProductCode -langid x3 -guid /SetProductCode -langid xn -guid

where x1, x2, x3, and xn are other valid langids.

===

Question 2: Is there any reason why I shouldn't generate a new productcode for every build? I can't see why I would not want to do this, but I'm new to this ;)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to generate a new product code for every version string

Hello,
Question 2: Is there any reason why I shouldn't generate a new productcode for every build? I can't see why I would not want to do this, but I'm new to this
I can see no reason why not. A product code is generated each time you are setting the version, unless the -noprodcode option is specified:
http://www.advancedinstaller.com/user-g ... rsion.html

If it doesn't work when setting the fourth field of a version, try setting the third then setting it back:
1.1.1.100 - > 1.1.2.101 //new product code generated
1.1.2.101 -> 1.1.1.101 // new product code generated again
That should probably trigger the generation of a new product code twice, because you are also changing the 3rd version. All new languages should receive a new product code after this process.

Let me know if it worked for you.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”