[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:
parent
8e9fed0574
commit
08fa840d74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue