Prev Previous Post   Next Post Next
Old 5th July 2007, 20:10   #1
jweinraub
Senior Member
 
Join Date: Jan 2004
Posts: 197
Send a message via AIM to jweinraub
Question Refresh Environment

I am having issues registering a dll file that my installer includes. I rather not put everything in the sys32 folder, so in order to register it, it needs to be in the $instdir. However, I need to use addtopath function. It works 70% of the time. On some machines, it seems to refuse to refresh the environment until the system reboots. I rather not reboot the system, but it seems to be the only way to work on certain machines. So far, it seems to be more of an issue on brand new computers.

It's the SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 function that seems not to work.

On my development machines, I do notice the delay when this occurs. On other machines, nothing happens. If I echo the %path% nothing happens, until i reboot the system.

Please advise where to go on this.

Thanks!
jweinraub is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump