Change Product code on command line

Got a problem you cannot solve? Try here.
Posts: 6
Joined: Wed Nov 21, 2007 7:31 am

Change Product code on command line

Postby MartinF » Tue May 10, 2022 1:15 am


I have a problem that I was hoping someone could help me with. We have a piece of software that install with some small variations (different database and such) that we now would like to be able to install side by side. I'm assuming this means we need different product codes for each variation. I would like to set it on the command line, we do this with the version already. So, I tried setting the code to #PRODUCTCODE# in the designer and then set it on the command line but it doesn't work. The installation start but is ended before finished. Am I on the right track here or how would I go about to do this or something to this effect?


Site Admin
Posts: 5268
Joined: Sun Aug 22, 2010 4:28 am

Re: Change Product code on command line

Postby FrancescoT » Thu May 12, 2022 4:22 am

PRODUCTCODE cannot be assigned at setup runtime. This must be defined at COMPILE-TIME.

It's not reccomended, but you may eventually define a CUSTOM COMPILER VARIABLE (Ex #MY_PRODUCT_CODE#) in the designer. Then you may pass such variable as optional parameter with the "command line build tool" (

Here you will find a sample whic uses the above approach to set "TITLE & VERSION" using a compiler variable.

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - ... papers.htm
Publications -
InstallAware Help -F1 anywhere in the InstallAware IDE

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 19 guests