如何为WiX实例转换生成MST文件?

时间:2014-03-31 19:35:50

标签: wix orca

我使用了InstanceTransforms标签,使用WiX构建了一个安装程序。例如:

<InstanceTransforms Property="INSTANCEID">
   <Instance Id="Install2" ProductCode="*" UpgradeCode="guid-goes-here" ProductName="Product" />
</InstanceTransforms>

我想使用Orca来查看实例变换的效果。

我想我需要生成一个mst文件来执行此操作。

从WiX源文件到表示实例转换的mst文件需要采取哪些步骤?

1 个答案:

答案 0 :(得分:0)

AFAIK你不能在ORCA中这样做。我只知道您在ORCA中更改内容的工作流程,然后使用Transform - &gt;创建修改后的转换。 Generate Transform

但是,如果您有基本MSI和转换后的MSI,则可以使用Windows SDK中包含的以下脚本之一(通常位于%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Samples\sysmgmt\msi\scripts

  • WiGenXfm.vbs - generates a transform from two databases, or compares them
  • WiDiffDb.vbs - lists the differences between two databases (CSCRIPT only)