[izpack-users] Set windows environment variable with IzPack?

Bartz, Klaus Klaus.Bartz at coi.de
Thu Dec 14 17:30:09 CET 2006


Hi Domink,
in principle yes..., but you have to use the registry stuff
(see docu under custom actions).
Environment variables on Windows are stored in the registry. There
are two places, one for the user and one generell.

HKCU\Environement
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

It is only possible to do it if the installer has the rights to
write into the registry under that paths.


Cheers

Klaus


>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Dominik.S
>Sent: Thursday, December 14, 2006 4:57 PM
>To: izpack-users at lists.berlios.de
>Subject: [izpack-users] Set windows environment variable with IzPack?
>
>
>Hi,
>
>i'd like to set an environment variable (on a windows box) during the
>installation that stores the value of the installation path
>($INSTALL_PATH). Is this possible with IzPack?
>
>(the environment variable should survive a reboot, i.e. the dos-command
>SET does not help me)
>
>Regards,
>  dominik
>###########################################
>
>This message has been scanned by F-Secure Anti-Virus.
>For more information, connect to http://www.f-secure.com/
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>https://lists.berlios.de/mailman/listinfo/izpack-users
>



More information about the izpack-users mailing list