--- 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