Multiple RemoveFromPath
I am encountering some problems when calling multiple times the function RemoveFromPath from within the same uninstall Section.
Looking at the code, a broadcast message is sent:
WriteRegExpandStr ${Path_RegKey} "PATH" $3
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
But what happens if I call this function twice (two different directories to be removed from the path)?
It seems to work most of the time. But in some occassions one directory is not removed and the path is 'corrupted'. Missing a ';' for the System32 diretory.
Could it be that a first broadcast message was not yet processed when the second RemoveFromPath is called?
Suggestions?
Thanks,
Thierry