[FIX] setup.nsi: fix the posgresql registry check:

My understanding is that EnumRegKey will index (the last argument)
the given registry path. When nothing is found, it sets the first
argument to the empty string. Only if the given path is wrong an
error is generated. So we have to go to the DoInstallPostgreSQL
label.

bzr revid: vmt@openerp.com-20130305110253-tu0t240liupxtchj
This commit is contained in:
Vo Minh Thu 2013-03-05 12:02:53 +01:00
parent 8e9fed0574
commit 08fa840d74
1 changed files with 3 additions and 2 deletions

View File

@ -291,9 +291,10 @@ Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
ClearErrors
EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL" 0
EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL\Installations" 0
StrCmp $0 "" DoInstallPostgreSQL
IfErrors DoInstallPostgreSQL 0
StrCpy $HasPostgreSQL 1
StrCpy $HasPostgreSQL 1
DoInstallPostgreSQL:
FunctionEnd