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
- :
- Re: Strange behaviour of variable $DOLLAR$ on linux
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 28, 2011
04:39 AM
Strange behaviour of variable $DOLLAR$ on linux
I generate a shell script during installation (com.zerog.ia.installer.actions.ASCIIFileManipulator) with following content:
JAVA_HOME=$JAVA_DOT_HOME$
PATH=$DOLLAR$JAVA_HOME/bin$:$$DOLLAR$PATH
And on solaris after installation I got the correct content:
JAVA_HOME=/opt/jdk1.6.0_23/jre
PATH=$JAVA_HOME/bin:$PATH
But on linux I got:
JAVA_HOME=/opt/jdk1.6.0_23/jre
PATH=PATH
I already tried:
PATH=$DOLLAR$JAVA_HOME/bin:$DOLLAR$PATH
But this makes no difference.
Install anywhere version: InstallAnywhere 11.0 Enterprise Build 3890
Anyone an idea what I did / is wrong?
JAVA_HOME=$JAVA_DOT_HOME$
PATH=$DOLLAR$JAVA_HOME/bin$:$$DOLLAR$PATH
And on solaris after installation I got the correct content:
JAVA_HOME=/opt/jdk1.6.0_23/jre
PATH=$JAVA_HOME/bin:$PATH
But on linux I got:
JAVA_HOME=/opt/jdk1.6.0_23/jre
PATH=PATH
I already tried:
PATH=$DOLLAR$JAVA_HOME/bin:$DOLLAR$PATH
But this makes no difference.
Install anywhere version: InstallAnywhere 11.0 Enterprise Build 3890
Anyone an idea what I did / is wrong?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 28, 2011
07:20 AM
Strange that comportment is different for both UNIXES.
I guess you have an action of type 'Modify text File' with 'substitute IA variables in file' that is called twice for Linux only!
So on first shot, it changes "PATH=$DOLLAR$JAVA_HOME/bin$:$$DOLLAR$PATH" to "PATH=$JAVA_HOME/bin:$PATH"
Then on second shot, it replaced the enclosing $ ("$JAVA_HOME/bin:$") by empty value, so "PATH"
so I would check in uninstallation folder in file "installvariables.properties" for variable name "$JAVA_HOME/bin:$" which would confirm my assumption.
--Jerome
I guess you have an action of type 'Modify text File' with 'substitute IA variables in file' that is called twice for Linux only!
So on first shot, it changes "PATH=$DOLLAR$JAVA_HOME/bin$:$$DOLLAR$PATH" to "PATH=$JAVA_HOME/bin:$PATH"
Then on second shot, it replaced the enclosing $ ("$JAVA_HOME/bin:$") by empty value, so "PATH"
so I would check in uninstallation folder in file "installvariables.properties" for variable name "$JAVA_HOME/bin:$" which would confirm my assumption.
--Jerome
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 28, 2011
07:41 AM
Thanks, seems a good theory!
I do not see any strange variables in installvariables.properties, but will check if file is processed twice.
I do not see any strange variables in installvariables.properties, but will check if file is processed twice.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
01:34 AM
Found the problem:
There where both for Linux and SunOS two steps, but the second step of linux had substituteIAVariables enabled. Thanks for your help!
There where both for Linux and SunOS two steps, but the second step of linux had substituteIAVariables enabled. Thanks for your help!
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)