This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Usage of Variables in Comments
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 22, 2012
04:39 AM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 22, 2012
07:43 AM
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
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
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)