Reply to Thread

Post a reply to the thread: Passing value to scripts

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?


You may choose an icon for your message from this list

Additional Options

  • Will turn into [URL][/URL].

Topic Review (Newest First)

  • 05-02-2005, 12:41 AM

    Re: Passing value to scripts


    Let us assume, you have the following in your script. The %MYVAR% variable is set to 0 and if you execute the script the Message Box displays 0.

    Set Variable %MYVAR% to 0
    Message Box "%MYVAR%" -- "Test"

    But if you start your executable with the following command line, it will display "cool" instead of "0".

    yourinstallername.exe /V MYVAR cool

    The above sets %MYVAR% to cool (please do not add the %-sign around the variable name).

    Does this help?
  • 05-01-2005, 06:09 PM
    Doug I

    Passing value to scripts

    I was told you can pass a value to a script and then use this value in a variable. Can I see an example snippet of code that demonstrates the commands used for doing this.

    I think it is the #def command, but I'm not sure where to place it exactly, and an example script would go a long way in understanding this.


Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts