# HG changeset patch # User Daniel Atallah # Date 1105570002 0 # Node ID 83736fc2ea506b6a8f3885b495bcdf934196710f # Parent 1044c0930e03da7c6b4ec8575403f0d68c4ccde8 [gaim-migrate @ 11809] If gaim has been previously installed on the machine, use the previous install location instead of the default. Fixes bug 1094413 committer: Tailor Script diff -r 1044c0930e03 -r 83736fc2ea50 gaim-installer.nsi --- 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