cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mallapudeo
Level 3

Usage of Variables in Comments

Can we use variables inside comments??

I tried this and in my output file, the variables were printed instead of its values.

Lets say
$new_variable$ contains "this is a sample statement" as value. When I print

Comments: $new_variable$

to a output file, it printed
Comments: $new_variable$
instead of
Comments: this is a sample statement

Any thoughts on this?? Thanks in advance.
Labels (1)
0 Kudos
(1) Reply
SunnyBoy
Level 6

I think we cannot use this under directly comments.

However, we can use Modify Text File - Single File action where you can add new comments onto the existing text file. Make sure that you select 'Substitute InstallAnywhere variables in file' option.

Select to replace any InstallAnywhere variables with their values. When this option is selected, the installer changes any strings in the text file that match InstallAnywhere variables to the values of those variables.

Hope this Helps

Cheers
SunnyBoy
0 Kudos