windows all in one: can't install postgreSQL after desinstalled it

Bug #1115119 reported by Aline (OpenERP)
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

Install OpenERP7.0 with the windows all in one installer (download and install). Then unstall all installed programs (postgresql, server).

Try to reinstall, the custom install do not allow you to check the posgresql anymore while you desintalled it

Related branches

Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Technical note: after investigation it seems that the PostgreSQL 9.x uninstaller does not cleanup the registry keys in the same fashion as the 8.3 did, and the following keys remain after a complete uninstall:

 - HKLM\Software\PostgreSQL
  `+- HKLM\Software\PostgreSQL\Installations
  `+- HKLM\Software\PostgreSQL\Services

Currently our installer just checks for the presence of the HKLM\Software\PostgreSQL entry, but it could still be there even if no PostgreSQL installation remains. So when it is present we should verify that at least one entry exists under HKLM\Software\PostgreSQL\Installations. The 8.3 installer apparently removed the PostgreSQL entry altogether, so that should work everywhere.

PS: when manually using regedit on a x64 system these keys will be found under HKLM\Software\Wow6432Node, which is the "reflection key" that is mapped to HKLM\Software for 32bits processes running on a 64bits machine. It can be ignored for all purposes except when manually viewing/editing the registry. The installer will run as 32bits so it will find them in the normal location.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
milestone: none → 7.0
Revision history for this message
Vo Minh Thu (thu) wrote :

Fixed server-side in the branch lp:~openerp-dev/openobject-server/7.0-bug-1115119-thu. A similar fix will be pushed shortly to the packaging script responsible for the nightlies.

Revision history for this message
Vo Minh Thu (thu) wrote :

Fix landed in the packaging script too. Hopefully the next nightly build will be ok.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: [Bug 1115119] Re: windows all in one: can't install postgreSQL after desinstalled it

On 03/05/2013 02:02 PM, Vo Minh Thu (OpenERP) wrote:
> Fixed server-side in the branch lp:~openerp-dev/openobject-
> server/7.0-bug-1115119-thu. A similar fix will be pushed shortly to the
> packaging script responsible for the nightlies.

Nice, thanks!

The EnumRegKey logic sounds correct based on the doc and example I see here:
  http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.5

The IfErrors line sounds redundant as the EnumRegKey seems to also set the
output var to an empty string in case of errors. Perhaps it's still useful to
clear the error flag and avoid side effects, but then it must be moved right
after the EnumRegKey call, otherwise StrCmp will always skip it.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in the server 7.0 at revision 4872 (rev-id: <email address hidden>) and should be available already in the current nightly builds.

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
kallel (eiino1090) wrote :

hi , I think I have the same ...
I installed odoo_9.0c.latest .. then unstall all installed programs (postgresql, server)..
when I tried to reinstall it .. I had an error message at the end ...
" A service (PostgreSQL_For_Odoo) already exists. Please specify another name. "
Screenshot : http://img15.hostingpics.net/pics/685565Screenshot23.png

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.