Change Product code on command line

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

Change Product code on command line

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Change Product code on command line

Post by FrancescoT »

PRODUCTCODE cannot be assigned at setup runtime. This must be defined at COMPILE-TIME.
viewtopic.php?f=2&t=10734
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/deskt ... ndline.htm).

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

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply