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

时间:2013-11-20 06:40:57

标签: sql-server iis wix sql-server-express iis-express

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

  1. 安装IIS Server Express 8.0
  2. SQL Server 2012 Express。
  3. 为此,我创建了以下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时,我收到一条消息,说明安装过程中出现故障。 Herelog.txt文件的内容。

    如何通过执行文件iisexpress_8_0_RTM_x64_de-DE.msiSQLEXPR_x64_DEU.exe修改WiX文件以安装IIS和SQL Server?

0 个答案:

没有答案