2017-04-06 90 views
1

我有一個Wix安裝程序,Product.msi,它通過自定義操作啓動setup.exe。當我通過命令提示符下執行安裝我的,例如:
msiexec /i Product.msi /qmsiexec /r Product.msi /qmsiexec /x Product.msi如何將msiexec命令行選項傳遞給Wix

我想通過/i/r/q/x選項下的setup.exe

是否有可能實現這通過Wix Toolset?

回答

1

您提到了MSI的所有設置屬性的標誌,然後您可以在自定義操作中引用該標誌,轉換爲您的setup.exe所需的任何格式。

例如:

/i對應於Installed值爲假(如果尚未安裝的產物)。

/r對應WixUIInstallMode屬性的「修復」值。

/x對應於WixUIInstallMode屬性上的「刪除」值。

/q(及其改性劑像/qn/qb)對應於UILEVEL屬性,它具有從this link發現了以下的值。

UILevel: 

INSTALLUILEVEL_NONE 2 Completely silent installation. 
INSTALLUILEVEL_BASIC 3 Simple progress and error handling. 
INSTALLUILEVEL_REDUCED 4 Authored UI, wizard dialogs suppressed. 
INSTALLUILEVEL_FULL 5 Authored UI with wizards, progress, errors. 

你可以看到this answer如果你不熟悉傳遞的價值觀和自定義操作中引用它們。

+0

謝謝@Kurt!無論如何,WixUIInstallMode屬性完全不起作用,正如[本文]中所述(http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/InstallMode-Conditions-DON-T-work -td707286.html)。還有其他解決方案嗎? –

相關問題