我想使用WiX创建一个安装程序,如果它们尚未安装,它将安装以下软件:
为此,我创建了以下Setup.wxs
文件:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Name="Your Application"
Language="1033"
Version="1.0.0.0"
UpgradeCode="6431D91E-AD61-4FBB-A081-B63A0E416888"
Manufacturer="Your Company">
<Package Description="#Description"
Comments="Comments"
InstallerVersion="200"
Compressed="yes"/>
<!-- Installation directory and files are defined in Files.wxs -->
<Directory Id="TARGETDIR" Name="SourceDir"/>
<!--
Using the Wix UI library.
WixUI_Minimal is the most basic of the WixUI stock dialog sets.
Its sole dialog combines the welcome and license-agreement
dialogs and omits the feature customization dialog.
WixUI_Minimal is appropriate when your product has no optional
features.
-->
<UIRef Id="WixUI_Minimal"/>
<Binary Id="Iis"
SourceFile="D:\dev\wix-installer\ref\iis-8-express\iisexpress_8_0_RTM_x64_de-DE.msi" />
<Binary Id="SqlServer"
SourceFile="D:\dev\wix-installer\ref\sql-server-2012-express\SQLEXPR_x64_DEU.exe" />
<CustomAction
Id="InstallIis"
Impersonate="no"
Execute="deferred"
BinaryKey="Iis"
ExeCommand="D:\dev\wix-installer\ref\iis-8-express\iisexpress_8_0_RTM_x64_de-DE.msi"
Return="asyncWait" />
<CustomAction
Id="InstallSqlServer"
Impersonate="no"
Execute="deferred"
BinaryKey="SqlServer"
ExeCommand="D:\dev\wix-installer\ref\sql-server-2012-express\SQLEXPR_x64_DEU.exe"
Return="asyncWait" />
<InstallExecuteSequence>
<Custom Action="InstallIis" After="InstallInitialize"/>
<Custom Action="InstallSqlServer" After="InstallIis"/>
</InstallExecuteSequence>
</Product>
</Wix>
Files.wxs
文件包含以下文字:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
</Wix>
当我运行msiexec /l*v "log.txt" /i Installer.msi
时,我收到一条消息,说明安装过程中出现故障。 Here是log.txt
文件的内容。
如何通过执行文件iisexpress_8_0_RTM_x64_de-DE.msi
和SQLEXPR_x64_DEU.exe
修改WiX文件以安装IIS和SQL Server?