[wix-users] Burn ManagedBA unable to resolve packaged .Net Framework redistributable

Farrukh Waheed farrukh1 at gmail.com
Mon Apr 3 22:15:08 PDT 2017


Hi Julius,
You may want to consider ResolveSource element i.e.
http://wixtoolset.org/documentation/manual/v3/xsd/wix/resolvesource.html

In your Managed BA, you may need to handle ResolveSource event handler.
When this would trigger, you can show a message and a dialog
(LocateFileDialog) to allow user to provide the location of your missing
source i.e. Net framework in your case.

Another good solution can be considered here:
https://stackoverflow.com/questions/18969167/managed-bootstrapper-application-failed-to-resolve-source-for-file

Hope it would be some help.


On 4 April 2017 at 04:33, Julius Zint <julius.zint at awin-software.de> wrote:

> Hi,
>
> I followed this guide http://wixtoolset.org/document
> ation/manual/v3/howtos/redistributables_and_install_
> checks/install_dotnet.html to install the .Net Framework 4.6.2 with burn.
> I performed Step 3 (there is a typo on the closing tag i guess
> <PayloadGroup/> instead of </PayloadGroup>) and packaged the .Net Framework
> redistributable as part of the Bootstrapper Application. While everything
> is compiling fine the Setup is not able to install .Net Framework from the
> packaged redistributable.
>
> [02E0:0BD4][2017-04-04T01:12:35]w343: Prompt for source of package:
> NetFx462Redist, payload: NetFx462Redist, path:
> C:\Users\testuser\Desktop\redist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe
> [02E0:0BD4][2017-04-04T01:12:35]e054: Failed to resolve source for file:
> C:\Users\testuser\Desktop\redist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe,
> error: 0x80070002.
> [02E0:0BD4][2017-04-04T01:12:35]e000: Error 0x80070002: Failed while
> prompting for source (original path 'C:\Users\testuser\Desktop\red
> ist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe').
> [02E0:0BD4][2017-04-04T01:12:35]e313: Failed to acquire payload:
> NetFx462Redist to working path: C:\Users\testuser\AppData\Loca
> l\Temp\{CADB7E5F-DBFE-4545-91E2-05B45C4212B9}\NetFx462Redist, error:
> 0x80070002.
> [02E0:070C][2017-04-04T01:12:35]e000: Error 0x80070002: Failed while
> caching, aborting execution.
>
> The log shows that it cannot resolve the source of the NetFx462Redist
> package. The BootstrapperApplicationData.xml contains the following xml.
>
>  <WixPackageProperties Package="NetFx462Redist" Vital="yes"
> DisplayName="Microsoft .NET Framework 4.6.2" Description="Microsoft .NET
> Framework 4.6.2 Setup" DownloadSize="62008080" PackageSize="62008080"
> InstalledSize="62008080" PackageType="Exe" Permanent="yes"
> LogPathVariable="NetFx462FullLog" RollbackLogPathVariable="WixBu
> ndleRollbackLog_NetFx462Redist" Compressed="no" DisplayInternalUI="no"
> Version="4.6.1590.0" Cache="yes" />
> <WixPayloadProperties Payload="NetFx462Redist" Package="NetFx462Redist"
> Name="redist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" Size="62008080"
> DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=780600"
> LayoutOnly="no" />
> <WixPayloadProperties Payload="pay786B18719BA0A67F93B9C1082F1CBCB8"
> Container="WixAttachedContainer" Name="redist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe"
> Size="62008080" LayoutOnly="yes" />
>
> In no temporary folder i was able to find the extracted .Net Framework
> executable, therefore i cannot use the SetLocalSource() Method provided by
> the Burn Engine. Im slowly but surley running out of ideas (and coffee). My
> Bundle.wxs for completeness
>
> <PayloadGroup Id="NetFx462RedistPayload">
>      <Payload Name="redist\NDP462-KB3151800-x86-x64-AllOS-ENU.exe"
> SourceFile="..\..\resources\NDP462-KB3151800-x86-x64-AllOS-ENU.exe"/>
> </PayloadGroup>
>
> <Chain>
>      <PackageGroupRef Id="NetFx462Redist"/>
>      <MsiPackage SourceFile="../../output/awin.notenbox.setup.msi" />
> </Chain>
>
> Greetings Julius
>
>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list