Re: BUG #12824: Error during uninstall
От | John R Pierce |
---|---|
Тема | Re: BUG #12824: Error during uninstall |
Дата | |
Msg-id | 559D58FD.8090100@hogranch.com обсуждение исходный текст |
Ответ на | RE: BUG #12824: Error during uninstall (Raul Cesar <raul_cnds@hotmail.com>) |
Список | pgsql-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
В списке pgsql-bugs по дате отправления: