Reply to Thread

Post a reply to the thread: How to define a variable?

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 www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 06-05-2007, 02:56 AM
    Mauricio

    Re: How to define a variable?

    Thanks!!! It worked fine!!!
  • 06-05-2007, 02:37 AM
    linder

    Re: How to define a variable?

    Hi Mauricio,

    Just open the "Common Definitions.sbi" in your Script Editor (script tab).

    Check the Standard Wizard Dialog Control IDs.

    Does this help?

    Friedrich
  • 06-05-2007, 02:29 AM
    Mauricio

    Re: How to define a variable?

    Hi again,
    I saw the wizard but, obviously, I have a new question. You use, in the example, this:
    Set Password Style to Control ID $USER_EDIT3$
    Question is: where is defined the control ID $USER_EDIT3$? Because I couldn't find it in the script.
    In my window I store the value in a variable called %MCS_PASSWORD% and, again, I couldn't find any place where to find the control ID for that variable.
    Thanks again.

    Mauricio
  • 06-04-2007, 08:59 AM
    linder

    Re: How to define a variable?

    Mauricio,

    Please try the "Wizard: Set Control Properties" function (see "Set Control Properties.sb6" demo script on how to use it).

    There is a "Set Password Style" option. You can use this option to set the ****

    Does this help?

    Friedrich
  • 06-04-2007, 08:31 AM
    Mauricio

    Re: How to define a variable?

    Thanks Friedrich,
    that is what I wanted!!!
    Last question: how can I protect the password entry? I want to see the ****. I know that I have a different dialog for password but I'd like to know if I can do it in the same window.
    Thanks again.

    Mauricio
  • 06-04-2007, 08:20 AM
    linder

    Re: How to define a variable?

    Mauricio,

    Just use the "Set Variable..." script item in the Script Editor and create the four variables before you use them (wherever you want). Then, in your dialog, select the required variable(s). In other script functions, you may use <Ctrl><Right Mouse Button> to open a variable list.

    Does this help?

    Friedrich
  • 06-04-2007, 08:14 AM
    Mauricio

    Re: How to define a variable?

    Hi,
    I need a dialog window where the user will enter 4 variables. So, I need to define this variable before using them. How? Where?
    Thanks again.

    Mauricio
  • 06-04-2007, 08:06 AM
    linder

    Re: How to define a variable?

    Mauricio,

    %_SB_PASSWORD% is a pre-defined variable (no need to define it again). See Script Editor -> Script Variables list. All "blue" items are pre-defined runtime variables.

    You can create your own variables in the Script Editor (wherever you want, just make sure it is declared before you use it).

    Does this help?

    BTW, the use of the %_SB_PASSWORD% variable in "Dialog Demo 2.sb6" is only an example. In fact, there is no need to really check the password using an If Statement. You can just check the "Auto-verify Password" option (Advanced tab in the Dialog Properties) to automatically let the installer check the validity of the entered password.

    Friedrich
  • 06-04-2007, 07:54 AM
    Mauricio

    How to define a variable?

    Hi all,
    as you can see, I'm starting with SB. I saw in the examples (dialog2, for example) a dialog window for a password that save the result in a variable (%_SB_PASSWORD%). I looked for in the script but I couldn't find where that variable is defined.
    I read the help too but I didn't find anything.
    So, any help will be appreciated.
    Thanks in advance.

    Mauricio

Posting Permissions

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