PDA

View Full Version : Using % sign as a value


ephraim
11-24-2003, 12:13 PM
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?

Darryl
11-24-2003, 01:50 PM
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.

rhosk
11-24-2003, 02:13 PM
Simple, yet brilliant!

ephraim
11-24-2003, 02:24 PM
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.