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!
|