[FIX]Resolved traceback on moving to the previous record from serial numbers in Trace...
[odoo/odoo.git] / 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