簡體   English   中英

如何在WIX 3.6中使用msi軟件包檢查必備組件的安裝條件

[英]How to check install conditions for prerequisites with msi package in WIX 3.6

我正在嘗試將我的程序包合並到一個安裝exe文件中,然后將其上傳到互聯網。

我使用了WIX引導程序(BURN),其中包含項目msi輸出以及必備的.net Framework 2.0,Windows Installer 3.1,Visual C ++ 2005可再發行文件和Microsoft Report Viewer。 我在Visual Studio 2008中使用了WIX 3.6。

我已使用以下命令在引導程序中附加了msi文件和必備組件。

<ExePackage SourceFile ="ReportViewer\ReportViewer.exe" Compressed ="yes" Vital ="no" Permanent = "yes" />
<ExePackage SourceFile ="vcredist_x86\vcredist_x86.exe" Compressed ="yes" Vital ="no" Permanent ="yes"/>
<ExePackage SourceFile ="WindowsInstaller-KB893803-v2-x86.exe" Compressed ="yes" Vital ="no" Permanent ="yes"/>     
<MsiPackage SourceFile ="myproject.msi" Compressed ="yes" ForcePerMachine ="yes"/>

現在,引導程序將在單個exe中壓縮所有必備組件。

現在,僅在不存在必備組件時才需要安裝必備組件?

上面如何編寫此安裝條件。 我已經檢查了InstallCommand選項,但不知道如何使用它? 有任何代碼片段嗎?

設置ExePackage / @ DetectCondition屬性的值。 有關特定包裝的內容,請參閱該包裝的文檔。 您可能需要Bundle / RegistrySearch元素來設置條件的bundle變量

作為交叉引用,您可以查看任何對應的Visual Studio Bootstrapper程序包的XML文件,通常在C:\\Program Files\\Microsoft Visual Studio 9.0\\SDK\\v2.0\\Bootstrapper或類似文件中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM