Change Product code on command line

Got a problem you cannot solve? Try here.
MartinF
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

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: 5360
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.
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.
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 42 guests