pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re:  BUG #12824: Error during uninstall‏
Date: Wed, 8 Jul 2015 10:08:13 -0700
Message-ID: <559D58FD.8090100@hogranch.com> (raw)
In-Reply-To: <SNT147-W48CE747EC3858A2BBF8D8780910@phx.gbl>
References: <SNT147-W58F33BB66404A43BDF54F580920@phx.gbl>
	<559C7914.3000705@hogranch.com>
	<SNT147-W48CE747EC3858A2BBF8D8780910@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 7/7/2015 6:26 PM, Raul Cesar wrote:
>
> I am trying to uninstall the PostgreSQL 9.0 on a Windows 8.1.
> I tried  at the Control Pane > Uninstall Program
> and also in the C: >  Program Files > PostgreSql > 9.0 > 
> uninstall-postgresql(exe)
> When I choose Postgresql sometimes even load the question if I had 
> some problem with it,
> but after couple seconds appears the error message


brute force manual uninstall from Windows:   you want to identify, stop 
and delete the Postgres Service, then delete the postgres files, then 
delete the postgres user.  procedures below are off the top of my head, 
and haven't been tested.

1) open a CMD window with "Run as Administrator"
2) sc query postgresql-9.0                <== if its 64bit, it might be 
postgresql-x64-9.0, use this for step 3 and 4.
3) if the STATE was RUNNING, then do:   sc stop postgresql-9.0
4) sc delete postgresql-9.0
5) using the file explorer, locate the postgres software directory, 
probably "c:\Program Files\PostgreSQL\" ... right click on this, 
properties, security, ownership, take ownership, ok ok ok.   then delete 
this folder and everything in it.
6) using the file explorer, locate the postgres data directory. I've 
always manually put mine on "D:\postgresql\x.y\data", do the same as 
above, take ownership and delete it.
7) net user postgres /delete

if you can't find/guess the service name for step 2, then go into 
control panel -> administrative tools -> services, find the postgresql 
service, double click on it, and note the 'Service name" (top field 
shown), go ahead and STOP the service there if its running, then use 
this service name for the sc delete.

-- 
john r pierce, recycling bits in santa cruz



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <559D58FD.8090100@hogranch.com>
Permalink:  ../559D58FD.8090100@hogranch.com/
Also on:    postgresql.org/message-id/559D58FD.8090100@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: BUG #12824: Error during uninstall‏
  In-Reply-To: <559D58FD.8090100@hogranch.com>
  References: <SNT147-W58F33BB66404A43BDF54F580920@phx.gbl> <559C7914.3000705@hogranch.com> <SNT147-W48CE747EC3858A2BBF8D8780910@phx.gbl> <559D58FD.8090100@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox