Discussion:
[WiX-users] .NET FX 4.5 as the supportedRuntime and supportedFramework in BootstrapperCore.config
Yari Serve
2014-09-17 19:40:29 UTC
Permalink
Greetings,



I'm currently writing my own Bootstrapper Application with WPF and .NET 4.5.



Because all applications installed with the BA will be run using .NET 4.5, I
want set this as the supportedFramework. Unfortunately, this does not work
and only opens the Prereq-Installer instead of my custom BA UX.



This works:

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0" />

</startup>

<wix.bootstrapper>

<host assemblyName="Company.Product.Installer">

<supportedFramework version="v4\Full" />

<supportedFramework version="v4\Client" />

</host>

</wix.bootstrapper>



This does not:

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />

</startup>

<wix.bootstrapper>

<host assemblyName="MyHorizon.ImmoCRM.Installer">

<supportedFramework version="v4.5\Client" />

</host>

</wix.bootstrapper>



Why? Maybe it's just supposed to work with v4.0 as the supportedRuntime,
because 4.5 is an in-place upgrade. But better safe than sorry.



Thanks!
Sean Hall
2014-09-17 20:50:46 UTC
Permalink
Starting with .NET 4.5, there is no client profile.
Post by Yari Serve
Greetings,
I'm currently writing my own Bootstrapper Application with WPF and .NET 4.5.
Because all applications installed with the BA will be run using .NET 4.5, I
want set this as the supportedFramework. Unfortunately, this does not work
and only opens the Prereq-Installer instead of my custom BA UX.
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
<wix.bootstrapper>
<host assemblyName="Company.Product.Installer">
<supportedFramework version="v4\Full" />
<supportedFramework version="v4\Client" />
</host>
</wix.bootstrapper>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<wix.bootstrapper>
<host assemblyName="MyHorizon.ImmoCRM.Installer">
<supportedFramework version="v4.5\Client" />
</host>
</wix.bootstrapper>
Why? Maybe it's just supposed to work with v4.0 as the supportedRuntime,
because 4.5 is an in-place upgrade. But better safe than sorry.
Thanks!
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Yari Serve
2014-09-17 21:02:29 UTC
Permalink
Sean,

Even this does not work:

<supportedFramework version="v4.5" />

Still opening the PreReq BA instead of my custom BA.

-----Original Message-----
From: Sean Hall [mailto:***@gmail.com]
Sent: Mittwoch, 17. September 2014 22:51
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] .NET FX 4.5 as the supportedRuntime and
supportedFramework in BootstrapperCore.config

Starting with .NET 4.5, there is no client profile.
Post by Yari Serve
Greetings,
I'm currently writing my own Bootstrapper Application with WPF and .NET 4.5.
Because all applications installed with the BA will be run using .NET
4.5, I want set this as the supportedFramework. Unfortunately, this
does not work and only opens the Prereq-Installer instead of my custom
BA UX.
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
<wix.bootstrapper>
<host assemblyName="Company.Product.Installer">
<supportedFramework version="v4\Full" />
<supportedFramework version="v4\Client" />
</host>
</wix.bootstrapper>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<wix.bootstrapper>
<host assemblyName="Company.Product.Installer">
<supportedFramework version="v4.5\Client" />
</host>
</wix.bootstrapper>
Why? Maybe it's just supposed to work with v4.0 as the
supportedRuntime, because 4.5 is an in-place upgrade. But better safe than
sorry.
Post by Yari Serve
Thanks!
----------------------------------------------------------------------
--------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce Perforce version control.
Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.
clktrk _______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
----------------------------------------------------------------------------
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce Perforce version control.
Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Sean Hall
2014-09-17 21:19:14 UTC
Permalink
It's impossible to tell what's wrong without looking at the log in the
%TEMP% directory.
Post by Yari Serve
Sean,
<supportedFramework version="v4.5" />
Still opening the PreReq BA instead of my custom BA.
-----Original Message-----
Sent: Mittwoch, 17. September 2014 22:51
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] .NET FX 4.5 as the supportedRuntime and
supportedFramework in BootstrapperCore.config
Starting with .NET 4.5, there is no client profile.
Yari Serve
2014-09-17 21:24:47 UTC
Permalink
I believe the following line is the interesting one:
[1E2C:0F98][2014-09-17T23:23:07]i000: Loading prerequisite bootstrapper
application because managed host could not be loaded, error: 0x80070490.

For the sake of completion, here's the log:
[1E2C:0F98][2014-09-17T23:23:07]i001: Burn v3.8.1128.0, Windows v6.3 (Build
9600: Service Pack 0), path:
D:\Development\Company\Source\Product\Main\Installer\Company.Product.Install
er.Bootstrapper\bin\Debug\Company Product Installer.exe, cmdline: ''
[1E2C:0F98][2014-09-17T23:23:07]i000: Setting string variable 'WixBundleLog'
to value 'C:\Users\User1\AppData\Local\Temp\Company
Product_2015_20140917232307.log'
[1E2C:0F98][2014-09-17T23:23:07]i000: Setting string variable
'WixBundleOriginalSource' to value
'D:\Development\Company\Source\Product\Main\Installer\Company.Product.Instal
ler.Bootstrapper\bin\Debug\Company Product Installer.exe'
[1E2C:0F98][2014-09-17T23:23:07]i000: Setting string variable
'WixBundleName' to value 'Company Product 2015'
[1E2C:0F98][2014-09-17T23:23:07]i000: Loading prerequisite bootstrapper
application because managed host could not be loaded, error: 0x80070490.
[1E2C:0F98][2014-09-17T23:23:07]i100: Detect begin, 2 packages
[1E2C:0F98][2014-09-17T23:23:07]i000: Setting string variable
'NETFRAMEWORK45' to value '378675'
[1E2C:0F98][2014-09-17T23:23:07]i052: Condition 'NETFRAMEWORK45 >= 378389'
evaluates to true.
[1E2C:0F98][2014-09-17T23:23:07]i101: Detected package: NetFx45Web, state:
Present, cached: None
[1E2C:0F98][2014-09-17T23:23:07]i101: Detected package:
ProductClientPackage, state: Absent, cached: None
[1E2C:0F98][2014-09-17T23:23:07]i199: Detect complete, result: 0x0
[1E2C:0F98][2014-09-17T23:23:09]i500: Shutting down, exit code: 0x642
[1E2C:0F98][2014-09-17T23:23:09]i000: The prerequisites were already
installed. The bootstrapper application will not be reloaded to prevent an
infinite loop.
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: NETFRAMEWORK45 = 378675
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleAction = 4
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleElevated = 0
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleInstalled = 0
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleLog =
C:\Users\User1\AppData\Local\Temp\Company Product_2015_20140917232307.log
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleManufacturer =
Company
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleName = Company
Product 2015
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleOriginalSource =
D:\Development\Company\Source\Product\Main\Installer\Company.Product.Install
er.Bootstrapper\bin\Debug\Company Product Installer.exe
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleProviderKey =
{1525682b-1b58-43a7-8166-ab90295e099f}
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleTag =
[1E2C:0F98][2014-09-17T23:23:09]i410: Variable: WixBundleVersion = 14.1.0.0
[1E2C:0F98][2014-09-17T23:23:09]i007: Exit code: 0x642, restarting: No

-----Original Message-----
From: Sean Hall [mailto:***@gmail.com]
Sent: Mittwoch, 17. September 2014 23:19
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] .NET FX 4.5 as the supportedRuntime and
supportedFramework in BootstrapperCore.config

It's impossible to tell what's wrong without looking at the log in the
%TEMP% directory.
Post by Yari Serve
Sean,
<supportedFramework version="v4.5" />
Still opening the PreReq BA instead of my custom BA.
-----Original Message-----
Sent: Mittwoch, 17. September 2014 22:51
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] .NET FX 4.5 as the supportedRuntime and
supportedFramework in BootstrapperCore.config
Starting with .NET 4.5, there is no client profile.
----------------------------------------------------------------------------
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce Perforce version control.
Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Loading...