diff --git a/windows/Netgen_Installer/netgen_installer.nsi b/windows/Netgen_Installer/netgen_installer.nsi index c9e81e1a..6ea38c76 100644 --- a/windows/Netgen_Installer/netgen_installer.nsi +++ b/windows/Netgen_Installer/netgen_installer.nsi @@ -659,6 +659,9 @@ Section Uninstall ; Remove the Netgen entry from the SOFTWARE registry DeleteRegKey HKCU "SOFTWARE\Netgen\${NETGEN_VER}_${NETGEN_ARCH}" DeleteRegKey /ifempty HKCU "SOFTWARE\Netgen" + + ; Broadcast the changes in the environment variables to the rest of the system + SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 SectionEnd