<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="t1bundle" Version="$(var.Version)" Manufacturer="Chanjet Ltd" UpgradeCode="87714fb5-9cdb-4323-af55-821c05974378" Compressed="yes" >
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" >
<bal:WixStandardBootstrapperApplication LicenseFile="License.rtf" LogoFile="banner.bmp"/>
</BootstrapperApplicationRef>
<!--<BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost"> IconSourceFile="$(var.Photoes)diaapp.ico"
<bal:WixStandardBootstrapperApplication LicenseFile="$(var.Photoes)license.rtf" LogoFile="$(var.Photoes)scon.ico" />
</BootstrapperApplicationRef>-->
<Chain>
<!--<PackageGroupRef Id="NetFx40Web" />-->
<!--<PackageGroupRef Id="Netfx4Full" />-->
<MsiPackage Id="t1plus" SourceFile="$(var.Version)/Sample.msi" Compressed="no" DisplayInternalUI="yes"/>
</Chain>
</Bundle>
<Fragment>
<PropertyRef Id="WIX_IS_NETFRAMEWORK_40_OR_LATER_INSTALLED"/>
<!--<PackageGroup Id="Netfx4Full">
<ExePackage Id="Netfx4Full" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" InstallCommand="/q"
SourceFile="$(var.Dia)dotNetFx40_Full_x86_x64.exe"
DetectCondition="(Netfx4FullVersion="4.0.30319") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.0.30319"))"
DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=164193"
InstallCondition="(VersionNT >= v5.1 OR VersionNT64 >= v5.1) AND (NOT (Netfx4FullVersion="4.0.30319" OR Netfx4x64FullVersion="4.0.30319"))"/>
</PackageGroup>-->
<util:RegistrySearchRef Id="NETFRAMEWORK40"/>
<PackageGroup
Id="Netfx4Full">
<ExePackage
Id="Netfx4FullExe"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="$(var.Version)/dotNetFx40_Full_x86_x64.exe"
InstallCommand="/q /norestart "
DetectCondition="WIX_IS_NETFRAMEWORK_40_OR_LATER_INSTALLED"
DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=164193"/>
</PackageGroup>
</Fragment>
</Wix>
如您所见,我想在安装MSI之前进行.NET Framework检查。
我用:
light.exe -loc WixUI_zh-cn.wxl -ext WixUIExtension -ext WixNetFxExtension -ext WixUtilExtension -ext WixBalExtension 1.0.0/bundle.wixobj
但是bundle.exe只有567KB。 MSI和dotNetFx40_Full_x86_x64.exe不在包中。
答案 0 :(得分:0)
更改您的ExePackage属性压缩为&#34;是&#34;
示例:
<ExePackage Id="Netfx4FullExe"
Cache="no"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="$(var.Version)/dotNetFx40_Full_x86_x64.exe"
InstallCommand="/q /norestart "
DetectCondition="WIX_IS_NETFRAMEWORK_40_OR_LATER_INSTALLED"
DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=164193"/>