如何使用WiX安装IIS Express 8和SQL Server 2012?

DP_*_*DP_ 8 sql-server iis wix sql-server-express iis-express

我想使用WiX创建一个安装程序,如果它们尚未安装,它将安装以下软件:

  1. 安装IIS Server Express 8.0
  2. SQL Server 2012 Express.

为此,我创建了以下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>
Run Code Online (Sandbox Code Playgroud)

Files.wxs文件包含以下文本:

<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
</Wix>
Run Code Online (Sandbox Code Playgroud)

当我运行时msiexec /l*v "log.txt" /i Installer.msi,我收到一条消息,说明安装过程中出现故障.log.txt文件的内容.

我应该如何修改维克斯文件,以便他们能够通过执行文件安装IIS和SQL Server iisexpress_8_0_RTM_x64_de-DE.msiSQLEXPR_x64_DEU.exe

归档时间:

查看次数:

2392 次

最近记录:

12 年,2 月 前