Change compiler variable value on installation through commandline

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

Change compiler variable value on installation through commandline

Postby dileep.tiwari » Thu Dec 17, 2020 1:26 am

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

Postby FrancescoT » Thu Dec 17, 2020 2:06 pm

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

Postby dileep.tiwari » Fri Dec 18, 2020 9:02 am

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

Postby FrancescoT » Fri Dec 18, 2020 1:48 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 41 guests