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: Setting $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ from command line
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
‎Aug 24, 2009
04:47 AM
Setting $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ from command line
Hi,
Does someone know if it's possible for unix to set the $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ at install time in the command line?
This is needed in case the the /tmp has insufficient free room.
I used this with ISMP 11.5 but now I need it for IA 2009.
I tried MyInstaller -D\$TEMP_DIR\$=/opt/tmp -D\$INSTALLER_TEMP_DIR\$=/opt/tmp.
(Dollars have to be escaped to avoid being interpreted by the shell)
The command line is interpreted correctly as we can see in the shell
2 Command Line Args:
1: -D$TEMP_DIR$=/opt/tmp
2: -D$INSTALLER_TEMP_DIR$=/opt/tmp
...but below we see:
java.class.path:
/tmp/install.dir.7569/InstallerData
[...]
System's temporary directory = /tmp
What is wrong here?
Thanks,
X.
Does someone know if it's possible for unix to set the $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ at install time in the command line?
This is needed in case the the /tmp has insufficient free room.
I used this with ISMP 11.5 but now I need it for IA 2009.
I tried MyInstaller -D\$TEMP_DIR\$=/opt/tmp -D\$INSTALLER_TEMP_DIR\$=/opt/tmp.
(Dollars have to be escaped to avoid being interpreted by the shell)
The command line is interpreted correctly as we can see in the shell
2 Command Line Args:
1: -D$TEMP_DIR$=/opt/tmp
2: -D$INSTALLER_TEMP_DIR$=/opt/tmp
...but below we see:
java.class.path:
/tmp/install.dir.7569/InstallerData
[...]
System's temporary directory = /tmp
What is wrong here?
Thanks,
X.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 25, 2009
04:51 AM
Hi X,
Exporting the Temp Dir in the IA 2009 is as easy as ISMP from the Console mode.
Just try as below from the command line
export $TEMP_DIR$=/opt/tmp (any location where you want the Tmp folder to be created).
This will create you the temp location.
Thanks,
Indraneel
Exporting the Temp Dir in the IA 2009 is as easy as ISMP from the Console mode.
Just try as below from the command line
export $TEMP_DIR$=/opt/tmp (any location where you want the Tmp folder to be created).
This will create you the temp location.
Thanks,
Indraneel
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 25, 2009
07:47 AM
Hi ivenkata,
I'm very confused. I do not seehow this could work?
If no escaping the dollar sign, there are interpreted by the shell.
When trying to escape them, the shell refuse to set any variable.
export $TEMP_DIR$=/opt/tmp is not a valid command.
It should rather be:
but this doesn't work.
I also tried on Windows that do not have issue with dollars but it's the same result. IA 2009 keep the environment variable %TEMP% or %TMP%
Could you provide a complete command line?
Thanks,
X.
PS: I'm able to set a IA variable at command line (that I can use afterwards). This without using any Os dependant hack I would expect it should work for $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ too.
I'm very confused. I do not seehow this could work?
If no escaping the dollar sign, there are interpreted by the shell.
When trying to escape them, the shell refuse to set any variable.
export $TEMP_DIR$=/opt/tmp is not a valid command.
It should rather be:
\$TEMP_DIR\$=/opt/tmp
export \$TEMP_DIR\$
but this doesn't work.
I also tried on Windows that do not have issue with dollars but it's the same result. IA 2009 keep the environment variable %TEMP% or %TMP%
Could you provide a complete command line?
Thanks,
X.
PS: I'm able to set a IA variable at command line (that I can use afterwards). This without using any Os dependant hack I would expect it should work for $TEMP_DIR$ and $INSTALLER_TEMP_DIR$ too.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2009
02:41 AM
Ok, I've found the right way, close to Ivenkata solution indeed (mea culpa).
In the shell where the installer is launched, the command to type is:
export IATEMPDIR=
HTH
Thanks.
X.
In the shell where the installer is launched, the command to type is:
export IATEMPDIR=
HTH
Thanks.
X.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)