差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
database:postgres:unattended_installation_on_windows [2019/04/21 12:45]
tony [Setup Visual C++ Redistributable Package]
database:postgres:unattended_installation_on_windows [2023/06/25 09:48] (目前版本)
行 1: 行 1:
 +{{tag>​PostgreSQL}}
 ====== PostgreSQL - Unattended installation on windows ====== ====== PostgreSQL - Unattended installation on windows ======
 ===== Introduction ===== ===== Introduction =====
行 35: 行 36:
 </​code>​ </​code>​
 從我的batch變數名稱,大都可以猜出個別參數用途。我額外說明的參數如下:​ 從我的batch變數名稱,大都可以猜出個別參數用途。我額外說明的參數如下:​
-  * prefix: 這指安裝目錄。+  * prefix: 這指安裝目錄。(請注意如果要跳脫空白字元,請勿將反斜線放在最後,如"​xxxx\"​,否則會無法安裝)
   * disable-components:​ 不安裝的項目。以我的例子來說,我不需要將stackbuilder與pgAdmin安裝到目標系統上。   * disable-components:​ 不安裝的項目。以我的例子來說,我不需要將stackbuilder與pgAdmin安裝到目標系統上。
   * install_runtimes:​ 是否要安裝Visual C++ Redistributable Packages,預設是1,要安裝。   * install_runtimes:​ 是否要安裝Visual C++ Redistributable Packages,預設是1,要安裝。
行 57: 行 58:
  
 "​%BASE%installer\vcredist_x64.exe"​ /install /quiet /norestart "​%BASE%installer\vcredist_x64.exe"​ /install /quiet /norestart
-"​%BASE%installer\vcredist2017_x64.exe"​ /install /quite /norestart+"​%BASE%installer\vcredist2017_x64.exe"​ /install /quiet /norestart
 </​code>​ </​code>​
-假如你希望安裝過程中可以彈出安裝redist畫面,可以將quite改為passive,但缺點是會出現Cancel按鈕。+假如你希望安裝過程中可以彈出安裝redist畫面,可以將quiet改為passive,但缺點是會出現Cancel按鈕。
 ==== Setup Service & Remove Service ==== ==== Setup Service & Remove Service ====
 在將Portable pack部屬到目標系統並解開後,可以透過pg_ctl.exe去註冊service。我的工作目錄是在安裝目錄下,service名稱為postgresql-10:​ 在將Portable pack部屬到目標系統並解開後,可以透過pg_ctl.exe去註冊service。我的工作目錄是在安裝目錄下,service名稱為postgresql-10:​