Jump to content


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.
Photo

Adding Environment Variables


2 replies to this topic

Edmundo

Edmundo
  • Members
  • 26 posts

Posted 11 July 2002 - 17:18

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,
Edmundo

Perotin

Perotin
  • Full Members
  • 407 posts

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 ...
:D
Gruß / regards
Thomas

Edmundo

Edmundo
  • Members
  • 26 posts

Posted 23 July 2002 - 14:52

Hi All,

Thanks to Preotin for the reply this did the trick.

Many Thanks,
Edmundo