cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jeffrey_l_hucki
Level 2

InstallScript Project -Setting product version on command line with Stand Alone build

The documentation indicates that this is not possible with an InstallScript project. I find hard to believe it would be omitted, but in any case, does anybody know of a work around for this? We have a desire/need to automate our product build, including the installer build, so need to be able to set product version on the command line.

Thanks in advance,
J
Labels (1)
0 Kudos
(2) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

You should be able to do this using a somewhat undocumented feature of the InstallScript build. In the Path Variables view, create a new path variable and set it to whatever base version you want the product version to be. Then, in the General Information view, set the product version to . When the project is built, the InstallScript build will resolve the path variable as a build time text substitution for the product version and replace the product version path variable reference with the value of the path variable.

The command build will allow for overriding path variable values. So if you have PATH_VARIABLE_NAME set to 1.00.0000 in the project, the following command line can be used to change that value at build time:
iscmdbld.exe -p "Project.ism" -r "Release Name" -l PATH_VARIABLE_NAME=2.00.0000
0 Kudos
xinerxf
Level 2

"Then, in the General Information view, set the product version to "

It can not realize!

Error message will pop up:

"Invalid version entered. The version number must contain only numbers and must be in the format: aaa.bbb.ccccc"
0 Kudos