使用選用參數運行Notes®靜默安裝或升級

You can use optional command line arguments when running a Notes® install or upgrade from the MSI command line.

下表描述了可選的命令列參數。

For examples of MSI command line arguments ADDFEATURES, REMOVEFEATURES, and SELECTINSTALLFEATURES, see Performing a Notes® silent install or upgrade on Windows.

  • 附帶的套件使用 -s 使用戶電腦上分離套件的拆包保持沉默的參數。
  • 附帶的套件使用 -a 參數,指示解包完成後要傳遞給Notes ®安裝程式的附加參數。靜默安裝不需要使用者輸入,因為它繞過Notes ®安裝視窗。靜默安裝使用上次安裝期間選擇的安裝選項。
  • /s 啟動靜默安裝。始終在後面輸入一個空格 /s.

/v 表示“/qb+”參數傳遞給MsiExec。這 /qb+ 指示 MsiExec 以靜默模式運作。

1 .MsiExec 命令列參數和用法說明

可選的命令列參數

說明及使用

附件套件範例

共用網路磁碟機範例

-s

以靜默方式解壓縮隨附的安裝工具包。

-s /v"/qb+"

不適用

-A

將所有參數傳遞給正在啟動的檔案。

注意:在 Web 工具包中,-a 參數將所有命令列參數傳遞給嵌入式安裝工具包。
注意:對於 DVD 媒體工具包( setup.exesetup.sh ), -a 參數建立管理映像。

-a /v"/qb+"

不適用

/A

行政安裝。

-a /a

/A

/秒

注意:始終在 /s 之後放置一個空格。

對於附加套件,不顯示提示使用者輸入檔案安裝位置的對話方塊。預設情況下,檔案放置在使用者的TempDir \NotesInstall 中

對於共用網路驅動器,不顯示 Install Shield 初始化框。

-作為

/秒

/v

將參數傳遞給 MSIexec。在參數 /v 之後輸入的所有參數都適用於 MSIexec。

-a /v"xxxx"

其中 xxxx = 任何可選參數。

/v“xxxx”

其中 xxxx = 任何可選參數。

/q

設定介面級別。例如,/qn 表示升級期間不顯示使用者介面。

-a /v"qn"

/v"/qn"

/qb+

在升級結束時顯示基本使用者介面和訊息框。

-a /v"qb+"

/v"qb+"

/ 像素

Web 工具包安裝。設定預設程式目錄和預設資料目錄的路徑。隱藏「儲存檔案的位置」對話方塊和「刪除安裝檔案」對話方塊。升級結束時顯示訊息框。

網路套件安裝

-px -a /s /v"/qb+"

-d

指定將檔案提取到暫存目錄,更新完成後將從該目錄中刪除檔案。

參數 -d 必須是一系列參數中的第一個參數。

-d -a /s /v"/qn"

不適用。

在共用網路磁碟機上使用安裝工具包時的靜默安裝範例

Shared network kits use arguments to initiate a silent install that bypasses the Notes® Install dialog boxes and uses installation options selected during the previous install. Enter the arguments in the field Optional arguments for shared network drive kit.

-s -a /s /v"/qb+" 

請注意有關此範例的以下事項:

  • ,顯示進度條,並在安裝完成時顯示一則訊息。

引用安裝工具包文件中的 Web 工具包時靜默安裝的範例

此範例適用於您在安裝工具包文件中引用 Web 工具包的靜默安裝。在附加套件的可選參數欄位中輸入參數。

  • 使用此格式從 Web 工具包執行靜默升級:
    -s -a /s /v"/qn"

請注意有關此範例的以下事項:

  • 附加套件使用 -s 參數使用戶電腦上的獨立套件解包過程保持靜默。
  • Attached kits use the -a argument to indicate that additional arguments are to be passed to the Notes® installer after the unpackaging is complete. A silent install requires no user input because it bypasses the Notes® Install windows. Silent install use installation options selected during the previous install.