Mercurial > pidgin.yaz
diff gaim-installer.nsi @ 10511:83736fc2ea50
[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 <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 12 Jan 2005 22:46:42 +0000 |
parents | 08251403c871 |
children | 364a2ef907ae |
line wrap: on
line diff
--- 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