Archive: Environment Variables per Registry Keys needs logoff and logon !


Environment Variables per Registry Keys needs logoff and logon !
Hi there,

when I set Environment Variables like "USERNAME=xyz" I can do this per Registry Keys. So no Problem für NSIS.

But before these entrys get valid it is necessary to logoff/login again. (or to reboot, but I don't want that)

How can I do that per NSIS.

Or is there another possibility to get them instantly valid ?

Greetings from Jochen Graulberger from BLACK-FORREST !


SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} \
0 "STR:Environment" /TIMEOUT=5000