Page 1 of 1

Change compiler variable value on installation through commandline

Posted: Thu Dec 17, 2020 1:26 am
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.

Re: Change compiler variable value on installation through commandline

Posted: Thu Dec 17, 2020 2:06 pm
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!

Re: Change compiler variable value on installation through commandline

Posted: Fri Dec 18, 2020 9:02 am
by dileep.tiwari
Thank You, I got it working!!!!!!!!! :) :) :) :)

Re: Change compiler variable value on installation through commandline

Posted: Fri Dec 18, 2020 1:48 pm
by FrancescoT
Happy you solved.