cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3X-Man
Level 6

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.
Labels (1)
0 Kudos
(3) Replies
ivenkata
Level 6

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
0 Kudos
3X-Man
Level 6

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:

\$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.
0 Kudos
3X-Man
Level 6

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.
0 Kudos