[MERGE] forward port of branch 7.0 up to revid 4067 chs@openerp.com-20131114142639...
[odoo/odoo.git] / setup.nsi
index 3f93a5b..859ebdb 100644 (file)
--- a/setup.nsi
+++ b/setup.nsi
@@ -21,7 +21,7 @@
 #\r
 # You should have received a copy of the GNU General Public License\r
 # along with this program; if not, write to the Free Software\r
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\r
 #####################################################################################\r
 \r
 !include 'MUI2.nsh'\r
@@ -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