Change compiler variable value on installation through commandline

Got a problem you cannot solve? Try here.
Post Reply
dileep.tiwari
Posts: 16
Joined: Thu Sep 05, 2019 6:42 am

Change compiler variable value on installation through commandline

Post by dileep.tiwari »

Hi,

I have a scenario where I have defined a variable suppose ABC. by default it has no value.
on the basis of the value of the variable, I have to control the checkboxes from the dialog box.
this is the code:

Set Variable INSTALLSIMTRANSWEB to

if Variable INSTALLSIMTRANSWEB Equals TRUE
Set Variable SIMTRANSWEBcb to TRUE
end

I have added the rules when SIMTRANSWEBcb is checked then another checkbox should be visible

after build I am running exe through the command line (no silent):

shopfloor.exe INSTALLSIMTRANSWEB=TRUE.

AM I DOING SOMETHING WRONG?

i want the checkbox should be visible when the INSTALLSIMTRANSWEB has value TRUE.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Change compiler variable value on installation through commandline

Post by FrancescoT »

This has nothing to do with Compiler Variables.

You only need to define a custom script variable for your purposes.

Example:

- at the very beginning of your main setup script, declare your variable and assign it to itself.

Code: Select all

Set Variable INSTALLSIMTRANSWEB to $INSTALLSIMTRANSWEB$
 
if Variable INSTALLSIMTRANSWEB Equals TRUE
  Comment: ...Do something!
end
Then run your package as you are already doing:
> shopfloor.exe INSTALLSIMTRANSWEB=TRUE

That's it!
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
dileep.tiwari
Posts: 16
Joined: Thu Sep 05, 2019 6:42 am

Re: Change compiler variable value on installation through commandline

Post by dileep.tiwari »

Thank You, I got it working!!!!!!!!! :) :) :) :)
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Change compiler variable value on installation through commandline

Post by FrancescoT »

Happy you solved.
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