[FIX] setup.nsi: better IfErrors/StrCmp order after testing the postgres registry...
authorVo Minh Thu <vmt@openerp.com>
Wed, 6 Mar 2013 14:34:44 +0000 (15:34 +0100)
committerVo Minh Thu <vmt@openerp.com>
Wed, 6 Mar 2013 14:34:44 +0000 (15:34 +0100)
bzr revid: vmt@openerp.com-20130306143444-8qgpa6yj0c00ua0v

setup.nsi

index 3f93a5b..653a879 100644 (file)
--- a/setup.nsi
+++ b/setup.nsi
@@ -292,8 +292,8 @@ Function .onInit
 \r
     ClearErrors\r
     EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL\Installations" 0\r
-    StrCmp $0 "" DoInstallPostgreSQL\r
     IfErrors DoInstallPostgreSQL 0\r
+    StrCmp $0 "" DoInstallPostgreSQL\r
     StrCpy $HasPostgreSQL 1\r
 \r
     DoInstallPostgreSQL:\r