I've installed PostgreSQL but I want to reinstall it to another directory. So I've uninstalled it and when I execute the installer I get:
An existing PostgreSQL installation has been found at C:\Program Files (x86)\PostgreSQL\9.1. This installation will be upgraded.
I'll add that I didn't uninstall PostgreSQL with Add/Remove programs from Control Panel because I was getting an error in French so I just removed the main directory and then removed it from Control Panel.
I've also removed HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\postgresql-9.1 and WampServer which used PostgreSQL (just in case). I cannot find any other keys in regedit because the search is taking forever (and I think it's bugged). And I got rid of the directories C:\Users\<username>\AppData\Roaming\postgresql and C:\USers\postgresql.
Perhaps it has something to do with Visual Studio because when I run the installer I briefly get a window:
I've finally done it. I had to remove all keys in the Registry.
Seems obvious, right?
But Win10 Regedit is bugged and if there are keys that are longer than 255 chars it goes into an infinite loop. I've found no fix for this.
So one of the solutions is to download Regscanner, search for "postgre" and "pgadmin" and remove all entries but with Regedit. I mean, you can probably use Regscanner too but I prefered to delete keys with a native tool. It's a lot slower, though, as you have to manually find all keys.
Even though this already has a solution, I'm documenting the steps I had to take to accomplish a full manual uninstall on Windows Server 2016:
open a CMD window with "Run as Administrator"
sc query postgresql-9.1 or sc query postgresql-x64-9.1, use this for step 3 and 4.
if the STATE was RUNNING, then do: sc stop postgresql-9.1
sc delete postgresql-9.1
using the file explorer, locate the postgres software directory, probably "c:\Program Files (x86)\PostgreSQL\" ... right click on this, properties, security, ownership, take ownership, ok ok ok. then delete this folder and everything in it.
using the file explorer, locate the postgres data directory. Sometimes it's in the same directory as in step 5, and other times it will be in something like D:\postgres\data
net user postgres /delete
windows key + r to open Run prompt. Type regedit
scroll to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node and/or HKEY_LOCAL_MACHINE\SOFTWARE
delete both folders with the word PostgreSQL in them
Related
I have downloaded the .msi multiple times and tried to run in a variety of ways, however, I cannot install MongoDB on my windows 10 machine. When I click the .msi, I get the first "preparing to install" pop-up and then it just goes away. Nothing happens.
I tried downloading the zip folder which contains a bunch of .exes.. but still nothing. I'm not sure how to get this to work on my local.
Thoughts?
For some reason, the latest documentation doesn't include the manual installation process.
Download the distribution ZIP and extract it to c:\mongodb\ or equivalent.
Then from the resultant bin directory you can run an administrative powershell command (be sure to replace the paths with real paths that exist on your system):
PS C:\mongodb\bin> ./mongod.exe --install --logpath="c:\\path\\to\\logfile.log" --dbpath="c:\\path\\to\\data\\on\\disc"
This will create a windows service named "MongoDB" which should start automatically. If it doesn't, you can run net start MongoDB from your admin PS prompt.
Please download Mongodb from there official sites and also there is a very easy guide to install the mongodb on various OS.
Reference:- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
I might have installed the wrong version of Oracle SQL Developer (Version 4.1.4) on my Win 10 laptop. So I want to uninstall it and install a newer version.
Any idea what´s the easiest way to do it?
Find the directory it was unzipped to, e.g. C:\Program Files\sqldeveloper, though it could be anywhere - quite likely in your downloads directory; and just delete that entire sqldeveloper directory.
There is no installation as such, it's just a Java application sitting in a directory.
Settings are held under your personal home directory, and when you unzip and run the later version (18.2 is current) you'll be asked if you want to migrate those settings, which will include any connections you've already defined.
Read more in the 4.1 documentation.
It is not installed so you can't uninstall it. To remove it from system do following:
Delete base directory, where you unziped it (where you run it).
Delete your user connection data - folder C:\Users\<username>\AppData\Roaming\SQL developer
If you don't have any other oracle software, delete your user configuration data - folder C:\Users\<username>\Oracle
I have been running berrybrew on Windows
(here's the home page and GitHub repository).
I'm having some trouble with it and I want to uninstall and reinstall it, but I can't figure out how to do that.
I am hoping it is as simple as just deleting the directory where it was installed and C:\berrybrew, which is where it seems to keep files, but I don't know for sure. The instructions contain installation instructions, but no uninstallation instructions.
Disclaimer: berrybrew author here...
To uninstall and return your system back to default:
berrybrew off
berrybrew unconfig
then delete the directory you downloaded it to, as well as the installation directory (by default, C:\berrybrew)
Edit your PATH variable to remove any entries that start with C:\berrybrew (or the base install directory if you've changed it from the default). One of the path entries will point to C:\berrybrew\bin, and there may be one more that points to the currently in-use Perl installation (also under C:\berrybrew\...). Technically speaking, there shouldn't be any after the first two commands are run, but one should always verify
Essentially, there's really nothing to "uninstall". It comes down to removing $ENV{PATH} ie. specific environment variables that point to a) berrybrew.exe binary itself, and b) the Perl installation that you last used.
I will update the documentation to provide more clarity in this regard.
I'm posting here with the hopes that someone will be kind enough to help me. Just to clarify, I'm sort of a newb, so I'd be really grateful if you give more details to your explanations.
I'm on Windows 10 64 bit, QT 5.9.1, PostgreSQL is 9.6.3 version.
I'm working on a project, where I need to get a postgresql database running and connect it to the code I'm doing right now. Unfortunately, when I try to install the driver, I run into all kinds of problems. I've been reading on threads on sites, but they are outdated and some folders do not match, which my first problem arises. For some reason I cannot get qmake to work, even though I edit the path in the variables.
I tried running the commands from here.
cd %QTDIR%\qtbase\src\plugins\sqldrivers\ps
ql
qmake "INCLUDEPATH+=C:/psql/include" "LIBS+=C:/psql/lib/ms/libpq.lib" psql.pro
nmake
Basically my folders don't aren't 100% as the guide, also I don't have a libpq.lib file
On my final attempt I tried the following:
qmake "INCLUDEPATH+=C:/PostgreSQL/pg96/include" "LIBS+=C:/PostgreSQL/pg96/lib/libpq.lib"
Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?
You'll need to have PostgreSQL installed so you have libpq.lib and libpq.dll. You cannot compile the Qt PostgreSQL driver without these. You'll also need to find the include directory for your PostgreSQL install, the one that contains libpq-fe.h.
Then determine the paths to those. Set the PATH to include the directory with libpq.dll. Set LIBS to include the directory with libpq.lib. And set the INCLUDEPATH to include the directory with libpq-fe.h.
You'll probably need to do this within a "Visual Studio Command Prompt" or run vcvarsall.bat fist, too, so qmake can find Visual Studio.
I installed "odoo_9.0c.latest" .. then uninstall 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
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.