Page 1 of 1

Change Product code on command line

Posted: Tue May 10, 2022 1:15 am
by MartinF
Hi!

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?

TIA,
Martin

Re: Change Product code on command line

Posted: Thu May 12, 2022 4:22 am
by FrancescoT
PRODUCTCODE cannot be assigned at setup runtime. This must be defined at COMPILE-TIME.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10734
https://www.installaware.com/forums/viewtopic.php?f=2&t=9883

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" (https://www.installaware.com/mh52/desktop/buildingfromthecommandline.htm).

Here you will find a sample whic uses the above approach to set "TITLE & VERSION" using a compiler variable.
https://www.installaware.com/forums/viewtopic.php?f=2&t=8927

Hope this helps you.