So I've cobbled this together from a couple of different segments I found
googling. It downloads .Net 3.5 SP1 and installs it (if needed)
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework
Setup\NDP\v3.5" Value="Version" Variable="Netfx35Version" />
<Chain>
<!--<PackageGroupRef Id="Netfx35" />-->
<ExePackage Id="Netfx35"
Cache="no"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="yes"
Name="Prerequisites\dotnetfx35.exe"
DownloadUrl="http://go.microsoft.com/fwlink/?linkid=118076"
InstallCommand="/q /norestart /lang:ENU"
RepairCommand="/q /norestart /lang:ENU"
UninstallCommand="/q /norestart /lang:ENU"
InstallCondition="NOT Netfx35Version OR (Netfx35Version <
v3.5.30729.1)"
DetectCondition="Netfx35Version AND (Netfx35Version >=
v3.5.30729.1)">
<ExitCode Value ="3010" Behavior="forceReboot" />
<RemotePayload
CertificatePublicKey="F321408E7C51F8544B98E517D76A8334052E26E8"
CertificateThumbprint="D57FAC60F1A8D34877AEB350E83F46F6EFC9E5F1"
Description=".NET Framework 3.5 Setup"
Hash="3DCE66BAE0DD71284AC7A971BAED07030A186918"
ProductName=".NET Framework 3.5"
Size="242743296"
Version="3.5.30729.1" />
</ExePackage>
<MsiPackage> My stuff </MsiPackage>
</Chain>
However, if it can't download the package (which is actually somewhat
likely with our customers), it just delivers, "0x80072ee7 - Unspecified
Error". I'd like to catch that it couldn't download the file and deliver a
more intelligent message. Something like: "Unable to download the .Net
Framework 3.5 SP1. Please install and try again."
Any way to do that?
Karl
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users