如何从两个不同的设置(Wix)中进行一个设置(Wix)?(C#)
本文关键字:设置 Wix 一个 两个 | 更新日期: 2023-09-27 17:57:42
我有两个不同的解决方案(C#),对于每个解决方案,我都有:
- 软件项目
- 安装项目(WIX)
如何从这两个解决方案中创建一个将两个软件结合在一起的设置?
在灌输过程中可以显示两个复选框,显示这两个软件,我可以选择安装哪些软件?(其中一个或两个)
最简单的解决方案是让第三个安装程序链式安装其他两个MSI包。
下面是一个执行的.wxs文件的示例
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="UNIFIED DERPER"
Version="1.0.0.0"
Manufacturer="STERKERVERFLER"
UpgradeCode="Some Guid Here">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" >
<bal:WixStandardBootstrapperApplication
LicenseFile="License.rtf"
LogoFile="logo.bmp"/>
</BootstrapperApplicationRef>
<WixVariable Id="WixUILicenseRtf"
Value="License.rtf" />
<Chain>
<MsiPackage SourceFile="$(var.ProjectOneInstaller.TargetDir)ProjectOne.msi"
DisplayInternalUI="yes" />
<MsiPackage SourceFile="$(var.ProjectTwoInstaller.TargetDir)ProjectTwoInstaller.msi"
DisplayInternalUI="yes" />
</Chain>
</Bundle>
</Wix>