From 4af6fd91ccb1e408779522d97452c5e4a161f0f6 Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Tue, 23 Mar 2010 21:04:06 +0000 Subject: [PATCH] * Un-register Environment variables in a clean manner when un-installing Netgen --- windows/Netgen_Installer/netgen_installer.nsi | 3 +++ 1 file changed, 3 insertions(+) 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