Mercurial > pidgin.yaz
changeset 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 | 1044c0930e03 |
children | 195a587aeacf |
files | gaim-installer.nsi |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
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