[wix-users] Burn can't find .net framework installer

Kentie, Marijn ma.kentie at royalihc.com
Wed Mar 16 08:40:32 PDT 2016


Hi,

I'm trying to install the .net framework without requiring an internet connection.
I've got an issue where the bootstrapper looks for a .net framework installer in the wrong location. Here's my bundle:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <?define VERSION=!(bind.packageVersion.Installer) ?>
  <Bundle Name="$(var.PRODUCT) $(var.VERSION)" Version="$(var.VERSION)" Manufacturer="aaa" UpgradeCode="488CDFD7-9E72-41B5-B880-AC4EA1B7EF4F" >
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkSidebarLicense" >
      <bal:WixStandardBootstrapperApplication LicenseUrl="" SuppressOptionsUI="yes" LogoSideFile="$(var.RESOURCEPATH)\Images\BootStrapLeft.png" LogoFile="$(var.RESOURCEPATH)\Images\BootStrapSmall.png" LocalizationFile="Strings1.wxl" />
      <PayloadGroupRef Id="NetFx46RedistPayload" />
    </BootstrapperApplicationRef>

    <Chain>
      <PackageGroupRef Id="NetFx46Redist"/>
      <!-- DisplayInternalUI as we need the feature selection dialog -->
      <MsiPackage Id="Installer" SourceFile="$(var.DPDTSetup.TargetPath)" DisplayInternalUI="yes" />
    </Chain>

    <PayloadGroup Id="NetFx46RedistPayload">
      <Payload Name="redist\NDP46-KB3045557-x86-x64-AllOS-ENU.exe" SourceFile="$(var.SolutionDir)..\ThirdParty\DotNet\NDP46-KB3045557-x86-x64-AllOS-ENU.exe" />
      </PayloadGroup>
    </Bundle>
</Wix>

I have to say that the documentation (http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_dotnet.html) isn't too clear on the necessity of the PayloadGroupRef item, however after having added it, the framework installer is correctly unpacked to C:\Users\User\AppData\Local\Temp\{2EB3D3D2-3BC3-44B1-B9F8-34D86BE4BB33}\.ba\redist\NDP46-KB3045557-x86-x64-AllOS-ENU.exe

However, the bootstrapper seems to search in a location relative to its original location (in this case the desktop), instead of relative to the temp files, the log file says

Prompt for source of package: NetFx46Redist, payload: NetFx46Redist, path: C:\Users\User\Desktop\redist\NDP46-KB3045557-x86-x64-AllOS-ENU.exe
Acquiring package: NetFx46Redist, payload: NetFx46Redist, download from: http://go.microsoft.com/fwlink/?LinkId=560369

Of course, the download fails, as there's no internet connection. I've found people reporting similar issues, but no clear solution other than re-implementing the functionality offered by the WixNetFxExtension.

Thanks,

Marijn


More information about the wix-users mailing list