[IMP] ir_ui_view: do not use _logger.exception() (because there is no exception)...
[odoo/odoo.git] / setup.nsi
index ab58915..653a879 100644 (file)
--- a/setup.nsi
+++ b/setup.nsi
@@ -291,9 +291,10 @@ Function .onInit
     !insertmacro MUI_LANGDLL_DISPLAY\r
 \r
     ClearErrors\r
-    EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL" 0\r
+    EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL\Installations" 0\r
     IfErrors DoInstallPostgreSQL 0\r
-        StrCpy $HasPostgreSQL 1\r
+    StrCmp $0 "" DoInstallPostgreSQL\r
+    StrCpy $HasPostgreSQL 1\r
 \r
     DoInstallPostgreSQL:\r
 FunctionEnd\r