Skip to content
⌘ NSIS Forum Archive

Flush the Registry

8 posts

sixty4bit#

Flush the Registry

Currently, I am writing an environment variable, but it does not get "set" until I either reboot, or open the Environment Variable dialog and hit OK. I believe that there is a Flush method in available in the WinAPI. Would it be possible to create a way for NSIS to call Flush?

Sixty4Bit
Guest#
Check MSDN. I guess you can find the thing you want to do there. Just build it into a DLL or maybe even a vbs script and call or execute the thing respetively.

-Hendri.
kichik#
Please have a look here:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
sixty4bit#
Do you have the source code to RefreshEnv.exe? If so, would you mind posting that as well. Thanks,

Sixty4Bit
kichik#
There isn't much more there but the line I have already posted. The only other code lines are WinMain decleration and return 😁
sixty4bit#
I ask because, I searched MSDN for about 4 hours last night looking for an example or something. I FINALLY found an example in an IISSamples object (of all places). I installed it, gave it a try and it didn't work. The code looked right, but it didn't work. I just wanted to see how you did it. If you don't want to share with everyone else, would you PLEASE share with me? 🙂 Email me at me@sixty4bit.com

Sixty4Bit