changeset 22109:dfa337b45aec

Don't keep a handle to the "pidgin_is_running" mutex in the installer - this causes the uninstaller to fail. There probably is a better solution, but this works for now.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 14 Jan 2008 21:06:57 +0000
parents e21cdaffbcdb
children d8cc610bd388
files pidgin/win32/nsis/pidgin-installer.nsi
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/win32/nsis/pidgin-installer.nsi	Mon Jan 14 19:42:14 2008 +0000
+++ b/pidgin/win32/nsis/pidgin-installer.nsi	Mon Jan 14 21:06:57 2008 +0000
@@ -1167,6 +1167,10 @@
     MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(PIDGIN_IS_RUNNING) /SD IDCANCEL IDRETRY retry_runcheck
     Abort
 
+  ; Close the Handle (If we don't do this, the uninstaller called from within will fail)
+  ; This is not optimal because there is a (small) window of time when a new process could start
+  System::Call 'kernel32::CloseHandle(i $R1) i .R1'
+
   Pop $R1
   Pop $R0
 FunctionEnd