【问题标题】:How to use Wix Bootstrap and log parts of the bundle installed如何使用 Wix Bootstrap 并记录已安装的捆绑包部分
【发布时间】:2014-02-06 01:08:16
【问题描述】:

我正在设置一个 Wix Bootstrapper 安装,它安装了许多必备应用程序组件(大部分来自 Microsoft)。许多是 x86 或 x64 版本的软件。这些部分中的每一个都将安装在各种默认目录中。是否可以在最终软件产品目标目录中生成包含所有片段 Exe/msi 包安装的主日志?
MyBootstrappedApp.exe /log "Installation.log" 在更高级别上做得很好。但我真的想确保用户只需单击并安装,但让 MyBootstrappedApp.exe 自动保持它和所有组件的详细安装。 这是 WIX/MSI 限制吗?

 <Chain>      
  <!--<PackageGroupRef Id="Netfx35_Package" />-->
  <!-- Software uses the excel automation code to read Excel data files. -->
  <PackageGroupRef Id="Ace12_Installation_x64_Package" />
  <PackageGroupRef Id="Ace12_Installation_x86_Package" />      
  <!-- Software reporting is based on SQL Server Reporting Services. -->
  <PackageGroupRef Id ="Microsoft_Reports_2010_Installation_Package" />
  <!-- To communicate with SQL Server, the MS Access components will require the SQL Server Native Client. -->
  <PackageGroupRef Id ="Microsoft_SQL_Server_2012_x64_Installation_Package" />
  <PackageGroupRef Id ="Microsoft_SQL_Server_2012_x86_Installation_Package" />      
  <MsiPackage Id="CadiSoftware_Package" DisplayName="CADI (Computer Aided Data Input) software" Compressed="yes" Vital="yes" SourceFile="$(var.Cadi.Wix.TargetPath)" DisplayInternalUI='yes' />      
</Chain>

这是 Microsoft Sql Server 2012 x64 本机驱动程序安装的示例片段

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
 xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">  
<Fragment Id="Microsoft_SQL_Server_2012_x64_Installation_Fragment">
<PackageGroup Id="Microsoft_SQL_Server_2012_x64_Installation_Package">
  <!--  Install the SQL Server 2012 Native Client drivers x64. -->
  <!--  DownloadUrl="http://go.microsoft.com/fwlink/?LinkID=239648&clcid=0x409"-->
  <MsiPackage 
    Id="SQLClient2012_x64_Package" 
    Name="SQLClient2012_x64"
    DisplayName="Microsoft SQL Server Native Client drivers"
    SourceFile="Prerequisites\SqlNativeClient\x64\sqlncli.msi"
    InstallCondition="VersionNT >= v5.1 AND VersionNT64"        
    Compressed="yes" 
    Vital="yes"                         
    DisplayInternalUI="no"/>
</PackageGroup>
</Fragment>

【问题讨论】:

  • 补充 Rob 的答案,如果您正在编写自定义引导程序而不是使用标准的 WiX 引导程序,您可以在此问题中查看如何访问这些变量并复制各种日志文件:@987654321 @

标签: .net wix windows-installer bootstrapper


【解决方案1】:

Burn 引擎今天不“合并”日志文件。您将获得 Bundle 的日志文件,其中可以引用每个包的子日志文件和日志文件。但是,Burn 引擎确实提供了Variables,它将提供所有日志文件的路径。然后,您可以使用这些变量来创建 uber-log 文件或特殊报告或您想呈现给用户的任何内容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多