Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003
    Posts
    10

    Using % sign as a value

    I want to use the % sign as a value to insert in the ini file.

    As a fact I want to change the value name which is %PRODUCTVER%. This is not a variable, this is the value name. But when I use this value name the Setup Factory replace it by the variable %ProductVer%.

    How can I use the % sign that will be part of the name and not a variable?

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    What you will need to do in this case create a new variable to hold the contents of the text %PRODUCTVER%.

    So before your INI file action, use an Assign Value action that looks like the following:

    Variable Name: %MyVar% (or whatever you want)
    Value: "%"+"PRODUCTVER"+"%"

    Evaluate value as expression: Checked


    Then use that variable %MyVar% in the locations you want to use the string.

  3. #3
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Simple, yet brilliant!

  4. #4
    Join Date
    Nov 2003
    Posts
    10
    Thank you very much.

    I have already figured this out and did exactly as you suggested.

    In any case, thank you again for quick and exact replay.

Posting Permissions

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