I am trying to author a bundle that has .NET 3.5 SP1 as a requirement.
I found the fragment used in the WiX install for .NET 4.0 and changed
the (appropriate) pieces.  I removed the SourceFile and added a Name
attribute.   I ASSUMED that SourceFile meant that it would find the file
on the local system and "embed" in the output.  Given that there is a
DownloadUrl specified, that behavior does not make too much sense. 

My final goal is to have a package that will download standard Microsoft
packages from the Microsoft website and have my msi embedded in the .exe
created by Wix.

Well, anyway, with just the Name I receive a Light 103 error telling me
that it cannot find file 'SourceDir\DorNetFx35setup.exe'.

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
  xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
  <Bundle Name="Bootstrapper1" Version="1.0.0.0"
Manufacturer="Bootstrapper1"
UpgradeCode="1befc64e-be9a-4238-b8b6-7e2357cffa91">
    <BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.HyperlinkLicense" />
    <Chain DisableRollback="yes" ParallelCache="yes">
      <PackageGroupRef Id="Netfx3.5SP1Full"/>
      <PackageGroupRef Id="Bundle.Generated.Packages"/>
    </Chain>
  </Bundle>

  <Fragment>
    <Variable Name="MbaNetfxPackageId" Value="Netfx35Full" />
    <Variable Name="MbaPreqPackageName" Value=".Net Framework 3.5" />

    <util:RegistrySearch Root="HKLM" Key="Software\Microsoft\NET
Framework Setup\NDP\v3.5" Value="Version"
      Variable="Netfx35SP1FullVersion" />
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net
Framework Setup\NDP\v3.5" Value="Version"
      Variable="Netfx35SP1x64FullVersion" Win64="yes" />

    <PackageGroup Id="Netfx3.5SP1Full">
      <ExePackage Id="Netfx3.5SP1Full" Cache="no" Compressed="no"
PerMachine="yes" Permanent="yes" Vital="yes"
        DownloadUrl="http://go.microsoft.com/fwlink/?linkid=118076";
        Name="dotNetFx35setup.exe" InstallCommand="/lang:enu /passive
/norestart"
        DetectCondition="Netfx35SP1FullVersion AND (NOT VersionNT64 OR
Netfx35SP1x64FullVersion)" />
    </PackageGroup>
  </Fragment>
</Wix>

----------------------------------------------------------------------
Roy Chastain





------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to