Hi All,
As part of my installation routine I am required to add two environment variables, and was wondering how to go about this?? Is the only option using the BatchAdd function???
All replies greatly apppreciated,
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Adding Environment Variables
Started by
Edmundo
, Jul 11 2002 17:18
2 replies to this topic
Posted 15 July 2002 - 11:58
Do you want to do this in Win9x or/and WinNT/2k/XP?
For Win9x, you have to add a string "variable=value" in autoexec.bat:
EzBatchAddString( szValue, szVariable, REPLACE );If you want to expand an existing variable, you can use AFTER as option ...
In WinNT ... you have to add registry values in HKEY_CURRENT_USER\Environment. See "Q100090 - HOWTO: Setting Environment Variables Under Windows NT" in InstallShield knowledge base ...
For Win9x, you have to add a string "variable=value" in autoexec.bat:
EzBatchAddString( szValue, szVariable, REPLACE );If you want to expand an existing variable, you can use AFTER as option ...
In WinNT ... you have to add registry values in HKEY_CURRENT_USER\Environment. See "Q100090 - HOWTO: Setting Environment Variables Under Windows NT" in InstallShield knowledge base ...

Gruß / regards
Thomas
Thomas
Posted 23 July 2002 - 14:52
Hi All,
Thanks to Preotin for the reply this did the trick.
Many Thanks,
Thanks to Preotin for the reply this did the trick.
Many Thanks,
Edmundo