Discussion:
[WiX-users] Managed bootstrapper on a PC without .NET framework 4.0
sky
2014-01-24 02:32:19 UTC
Permalink
I made a managed bootstrapper using wix burn following instructions on the
book Wix 3.6: A Developer's Guide to Windows Installer XML(Chapter 16). I
used Prism 4.1 and targeted dotnet framework 4.0. It runs well on my Windows
7 PC where dotnet 4.0 and 4.5 are installed. But it doesn't run on another
Windows 7 PC which doesn't have dotnet framework 4.0 installed. Log file
shows an error 0x8013101b: Failed to create the managed bootstrapper
application. If I install dotnet 4.0 manually then it runs well. Is this
right behavior?



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrapper-on-a-PC-without-NET-framework-4-0-tp7592017.html
Sent from the wix-users mailing list archive at Nabble.com.
Sean
2014-01-24 02:46:48 UTC
Permalink
sky
2014-01-24 05:57:04 UTC
Permalink
Thanks for the reply. I set the value of WixMbaPrereqPackageId variable to
the id of dotnet 4.0 package included in my bundle. So it now runs well on a
Windows Xp PC where dotnet 4.0 is not installed. But it still doesn't run on
the Windows 7 PC where dotnet 4.0 is not installed. Log files of
installation on the two environments are as follows:

Windows Xp:
[0124:012C][2014-01-24T14:22:33]i001: Burn v3.8.1128.0, Windows v5.1 (Build
2600: Service Pack 3), path: ..., cmdline: ''
[0124:012C][2014-01-24T14:22:33]i000: Setting string variable 'WixBundleLog'
to value ...
[0124:012C][2014-01-24T14:22:33]i000: Setting string variable
'WixBundleOriginalSource' to value ...
[0124:012C][2014-01-24T14:22:33]i000: Setting string variable
'WixBundleName' to value ...
[0124:012C][2014-01-24T14:22:33]i000: Loading prerequisite bootstrapper
application because managed host could not be loaded, error: 0x8007007e
...
[00A4:07EC][2014-01-24T14:23:12]i301: Applying execute package: dotNetFX4.0,
action: Install, path: C:\Documents and Settings\All Users\Application
Data\Package
Cache\58DA3D74DB353AAD03588CBB5CEA8234166D8B99\dotNetFx40_Full_x86_x64.exe,
arguments: '"C:\Documents and Settings\All Users\Application Data\Package
Cache\58DA3D74DB353AAD03588CBB5CEA8234166D8B99\dotNetFx40_Full_x86_x64.exe"
/q'
[0124:012C][2014-01-24T14:26:52]i319: Applied execute package: dotNetFX4.0,
result: 0x0, restart: None
[0124:012C][2014-01-24T14:26:52]i399: Apply complete, result: 0x0, restart:
None, ba requested restart: No

Windows 7:
[0608:0C70][2014-01-24T14:26:21]i001: Burn v3.8.1128.0, Windows v6.1 (Build
7601: Service Pack 1), path: ..., cmdline: ''
[0608:0C70][2014-01-24T14:26:22]i000: Setting string variable 'WixBundleLog'
to value ...
[0608:0C70][2014-01-24T14:26:22]i000: Setting string variable
'WixBundleOriginalSource' to value ...
[0608:0C70][2014-01-24T14:26:22]i000: Setting string variable
'WixBundleName' to value ...
[0608:0C70][2014-01-24T14:26:22]i000: Loading managed bootstrapper
application.
[0608:0C70][2014-01-24T14:26:22]e000: Error 0x8013101b: Failed to create the
managed bootstrapper application.
[0608:0C70][2014-01-24T14:26:22]e000: Error 0x8013101b: Failed to create UX.
[0608:0C70][2014-01-24T14:26:22]e000: Error 0x8013101b: Failed to load UX.
[0608:0C70][2014-01-24T14:26:22]e000: Error 0x8013101b: Failed while running

What could be the problem?



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrapper-on-a-PC-without-NET-framework-4-0-tp7592017p7592026.html
Sent from the wix-users mailing list archive at Nabble.com.
Farrukhw
2014-05-16 08:27:14 UTC
Permalink
Sky, I faced same problem. At the end, we discovered that on Win 7 with no
SP, we are getting this error. When we installed Net Framework 4
(dotNetFx40_Full_x86_x64.exe) on same windows, it started working fine.

So finally we got to know that on Windows 7 + Service Pack 1, it may work
fine.

However, I haven't got a chance to test is on fresh Windows 7 with SP1.

Now I'm trying to find out how to avoid this, in case there in Windows 7
with No SP on target machine??



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrapper-on-a-PC-without-NET-framework-4-0-tp7592017p7594766.html
Sent from the wix-users mailing list archive at Nabble.com.
Farrukhw
2014-05-16 10:42:44 UTC
Permalink
Ok, just solved this. On Windows 7 without SP1, there is Net FW 3.5. In my
BootstrapperCore.Config file, it was:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
<supportedFramework version="v4\Client" />
*<supportedRuntime version="v2.0.50727" />*
</startup>

*I removed <supportedRuntime version="v2.0.50727" />.* This causes
bootstrapper to launch .Net FW 4.0 installation (Packed with as payload). It
updated the machine with .Net FW 4 and then launched my bootstrapper, and
now working like charm.. :)

Hope, it would help you as well.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrapper-on-a-PC-without-NET-framework-4-0-tp7592017p7594767.html
Sent from the wix-users mailing list archive at Nabble.com.

unknown
1970-01-01 00:00:00 UTC
Permalink
Are you including the .NET 4.0 framework package in your bundle and setting the WixMbaPrereqPackageId like here? http://blogs.msdn.com/b/heaths/archive/2011/10/28/introducing-managed-bootstrapper-applications.aspx
WixMbaPrereqPackageId lets the core managed bootstrapper know which package is the .NET framework so that it can install it before it starts your bootstrapper.
Date: Thu, 23 Jan 2014 18:32:19 -0800
Subject: [WiX-users] Managed bootstrapper on a PC without .NET framework 4.0
I made a managed bootstrapper using wix burn following instructions on the
book Wix 3.6: A Developer's Guide to Windows Installer XML(Chapter 16). I
used Prism 4.1 and targeted dotnet framework 4.0. It runs well on my Windows
7 PC where dotnet 4.0 and 4.5 are installed. But it doesn't run on another
Windows 7 PC which doesn't have dotnet framework 4.0 installed. Log file
shows an error 0x8013101b: Failed to create the managed bootstrapper
application. If I install dotnet 4.0 manually then it runs well. Is this
right behavior?
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrapper-on-a-PC-without-NET-framework-4-0-tp7592017.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Loading...