gaim/gaim

Parents 39babfdd541b
Children 6784c4eb8e66
If gaim has been previously installed on the machine, use the previous install location instead of the default. Fixes bug 1094413
--- a/gaim-installer.nsi Wed Jan 12 13:55:54 2005 -0500
+++ b/gaim-installer.nsi Wed Jan 12 17:47:16 2005 -0500
@@ -1051,6 +1051,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