gaim-installer.nsi

changeset 10511
0a0bd0d33904
parent 10212
9a9c18b72773
child 10814
7e17cb56b019
--- a/gaim-installer.nsi	Wed Jan 12 18:56:15 2005 +0000
+++ b/gaim-installer.nsi	Wed Jan 12 22:46:42 2005 +0000
@@ -1048,6 +1048,15 @@
   ; If install path was set on the command, use it.
   StrCmp $INSTDIR "" 0 instdir_done
 
+  ;  If gaim is currently intalled, we should default to where it is currently installed
+  ClearErrors
+  ReadRegStr $INSTDIR HKCU "${GAIM_REG_KEY}" ""
+  IfErrors +2
+  StrCmp $INSTDIR "" 0 instdir_done
+  ReadRegStr $INSTDIR HKLM "${GAIM_REG_KEY}" ""
+  IfErrors +2
+  StrCmp $INSTDIR "" 0 instdir_done
+
   Call CheckUserInstallRights
   Pop $0
 

mercurial