[izpack-users] set an environment variable?

Darren Govoni darren at ontrenet.com
Wed Mar 8 18:15:21 CET 2006


Thanks for the response Klaus! Good tips.

Darren

Klaus Bartz wrote:
> Hi Darren,
> often the env var setting via .bat will work good, but not always.
> Only the processes which are started under the bat will known the
> vars
> If we speak about Windows NT, 2k, XP, 2003 there is a secound way to
> set env vars. Windows stores them in the registry, for User-vars at
> HKCU\Environment
> for System-vars at
> HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
> You can write there with the registry stuff of IzPack. But please
> carefully, e.g. do not overwrite the env var PATH :-)
> Unfortunately env vars are not read from registry every time. 
> Therefore your
> changes will are valid only after a logout/login sequence (or 
> reebott). IzPack
> does not send a windows broadcast message which will be an alternative.
>
> Cheers
>
> Klaus
>
> Am 07.03.2006, 22:31 Uhr, schrieb Darren Govoni <darren at ontrenet.com>:
>
>> Hi Hal,
>>     Thanks for the always speedy response! Much appreciated. After 
>> the install is when I'd
>> like to set it. Your suggestion is a good one, so I will try it.
>>
>> Cheers!
>> Darren
>>
>> Hal Vaughan wrote:
>>> On Tuesday 07 March 2006 16:07, Darren Govoni wrote:
>>>
>>>> Hey everyone,
>>>>     Was wondering if I can "set" an environment variable during
>>>> installation? on Windows.
>>>>
>>>
>>> You can use a .bat file to set it and declare the file as an 
>>> executable so it will be run by the ProcessPanel.  You can also use 
>>> a parsed variable in the .bat file so the value could be set in a 
>>> UserInputPanel or in a custom panel you make.
>>>
>>> Did you need to set it for use after the install, or during the 
>>> install?
>>>
>>> Hal
>>> _______________________________________________
>>> izpack-users mailing list
>>> izpack-users at lists.berlios.de
>>> http://lists.berlios.de/mailman/listinfo/izpack-users
>>>
>>>
>>
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> http://lists.berlios.de/mailman/listinfo/izpack-users
>>
>>
>> __________ NOD32 1.1422 (20060301) Information __________
>>
>> Diese E-Mail wurde vom NOD32 Antivirus System geprüft
>> http://www.nod32.com
>>
>>
>
>
>
> --Erstellt mit Operas revolutionärem E-Mail-Modul: 
> http://www.opera.com/mail/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-users
>




More information about the izpack-users mailing list