Fork me on GitHub

Programming Design Notes

在 Windows 手動移除 PostgreSQL 8.4

| Comments

如果你在安裝 PostgreSQL 中途發生錯誤,而又用不到 Uninstaller 去移除 PostgreSQL,可以跟以下的步驟去手動移除然後重新安裝。
  1. 移除安裝目錄: rd /s /q “C:\Program Files\PostgreSQL\8.4
  2. 移除 PostgreSQL 的用戶: net user postgres /delete
  3. 移除在 Registry 的安裝資料: HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4
  4. 移除在 Registry 的服務資料: HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Services\postgresql-8.4
  5. 移除 PostgreSQL 服務: sc delete postgresql-8.4
相關書籍: PostgreSQL 8.4 Official Documentation - Volume I. The SQL LanguagePostgreSQL 8.4 Official Documentation - Volume III. Server ProgrammingPostgreSQL 8.4 Official Documentation - Volume II. Server Administration