The default environment variables for the current user are stored at:
HKEY_CURRENT_USER\Environment
For the system (all users) they are stored at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
You can use NSIS' registry functions to read the current value of "PATH", add your directory to it and write the new value back.
|