我有一个 .Net 解决方案,其中有一个 WPF 项目、WIX Package 项目和另一个 WIX Bundle 项目。它以前在 Wix v3 中并且设置工作正常。
现在我已经使用 WIX 自动转换将 WIX v3 升级到 v4。转换后,如果我尝试安装新编译的 .msi 文件,它工作正常。但 Bundle .exe 甚至不显示 UI。事件查看器中也没有事件。这里可能有什么问题?
这是我的 Bundle.wxs 文件
<?ifndef Version?>
<?define Version = 1.1 ?>
<?endif?>
<?define InstallStatus=[WixBundleInstalled]?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Name="MyApp" Version="$(var.Version)" Manufacturer="Me" UpgradeCode="97baf4b4-4e07-43bb-9042-123bf3e29f6e" IconSourceFile="Resources/kangaroo.ico">
<bal:Condition Message="You’re using an unsupported version of Windows. App requires Windows 7 SP1 or later." Condition="((VersionNT >= v5.1) AND (ServicePackLevel >= 3)) OR ((VersionNT >= v5.2) AND (ServicePackLevel >= 2)) OR ((VersionNT >= v6.1) AND (ServicePackLevel >= 1)) OR (VersionNT >= v6.2)" />
<Variable Name="LaunchTarget" Value="[LocalAppDataFolder]\MyApp\MyApp.exe" Type="formatted" />
<BootstrapperApplication>
<bal:WixStandardBootstrapperApplication LogoFile="Resources/Sidebar.png" ThemeFile="Resources/ClassicTheme.xml" LocalizationFile="Resources/ClassicTheme.wxl" LicenseUrl="" Theme="hyperlinkSidebarLicense" />
</BootstrapperApplication>
<Chain DisableSystemRestore="yes">
<PackageGroupRef Id="NetFx462Redist" />
<RollbackBoundary />
<MsiPackage Id="SetupAdmin" Compressed="yes" SourceFile="$(var.MSIInstaller.TargetDir)MyApp.msi" Vital="yes">
<MsiProperty Name="INSTALLLOCATION" Value="[INSTALLDIR]" />
<MsiProperty Name="BUNDLEKEY" Value="[WixBundleProviderKey]" />
</MsiPackage>
</Chain>
</Bundle>
</Wix>
检查日志。几乎可以肯定,这表明加载主题时出现问题。自定义主题文件没有自动转换器。