+ Reply to Thread
Results 1 to 2 of 2

Thread: Passing value to scripts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default 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.

    Thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Passing value to scripts

    Doug,

    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?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MSI Scripts
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 1
    Last Post: 01-09-2007, 12:33 AM
  2. Scripts for SQL Express and .Net 2 Framework.
    By wtmullican in forum SetupBuilder
    Replies: 2
    Last Post: 06-27-2006, 07:01 AM
  3. #00008: Sample scripts for SetupBuilder
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-02-2006, 04:36 AM
  4. Passing a variable to the Web Update file
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 13
    Last Post: 12-14-2005, 12:19 AM
  5. Feature request: Copy/Paste across scripts
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 0
    Last Post: 02-01-2005, 02:38 AM

Tags for this Thread

Posting Permissions

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