[wix-users] WPF .Net 4.6 using Burn

Roni Fuchs ronif at microsoft.com
Mon Oct 26 03:41:20 PDT 2015


Thanks!

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Saturday, October 24, 2015 00:17
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] WPF .Net 4.6 using Burn

Add <PackageGroupRef Id="NetFx46Web" /> as the first item in your Bundle/Chain.

And in your bootstrapperApp.dll.config
<startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /> </startup>

I have not actually done this with 4.6, but I do it with 4.5.1.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Friday, October 23, 2015 4:01 PM
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] WPF .Net 4.6 using Burn

Hi Andreas, thanks for your answer,

So if my BA is targeting .Net 4 and it can't load, Burn will install .Net 4 prior to running my managed BA? and if that installation requires a restart?

and anyway, if it's possible for .Net 4, what is the difference in .Net 4.6? 
Is there a way to make Burn install .Net 4.6 as well if it's not previously installed on the machine before my managed BA starts?

Thanks,
Roni

________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Orzyszek Andreas <andreas.orzyszek at sirona.com>
Sent: Friday, October 23, 2015 10:27 AM
To: 'WiX Toolset Users Mailing List'
Subject: Re: [wix-users] WPF .Net 4.6 using Burn

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

the burn engine triggers the contained .Net framework installer only if your managed BA could not be loaded.
Normally you have a BootstrapperApp.dll.config like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="wix.bootstrapper" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore">
            <section name="host" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, BootstrapperCore" />
        </sectionGroup>
    </configSections>
    <startup useLegacyV2RuntimeActivationPolicy="true">
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
    </startup>
    <wix.bootstrapper>
      <host assemblyName="BootstrapperApp">
        <supportedFramework version="v4\Full" />
      </host>
    </wix.bootstrapper>
</configuration>

As you can see the burn engine just can't force the installation before your BA runs. If a user has installed .Net 4.0 for example your BA won't crash and the installation of .NET 4.6 will just be the first element in the chain that is getting installed.

I think the forced install of a specific .Net framework is a feature request for the burn engine.

Andreas Orzyszek

- -----Ursprüngliche Nachricht-----
Von: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Im Auftrag von Roni Fuchs
Gesendet: Donnerstag, 22. Oktober 2015 17:03
An: WiX Toolset Users Mailing List
Betreff: [wix-users] WPF .Net 4.6 using Burn

Hi everyone,

I see support for .Net 4.6 was added using the <PackageGroupRef Id=" NetFx46Redist " />, which is awesome because our app uses .Net 4.6.
We also wrote an installer, managed BA, and we want to also write it using .Net 4.6, How can I make sure that before my WPF BA is started Burn ensured .Net 4.6 was installed if needed?



Thanks,

Roni (Aron) Fuchs


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 3.2.0 (Build 2068)
Charset: iso-8859-1

wsBVAwUBVinhS8cXUKvaafDuAQhrpQf+J3r1g2idlkqSnKLD+AMZLwc/hGqKtvVw
aerabXAZ6ZLWInEXRxIIdKzM9yKEt3ExkPvm1lWjWBCEyv9pDFGxFP0t4mN/MuyB
gPOeL3jKEqbyciRnkMnAYY29aXuWfOBTWLkg9xXHBfYLTV8XGc7aXXF85Y4qsd7j
X2+KLu0g4FP8f/xRAtS/21QZY2zmsV2VRdpKQbbJeemLOy7D7B3VTxfXmix4C3vT
tpAr45SX8OgluB8lp59MJYT5GzvbngaT5puFzqQQ+huybHGJBz5gzkFT8xTcSrg+
6HczoTALTcsB+o4emyFeB+eRtfS5UDp1aFK79ML7YI2z2GTkletxvA==
=0vt5
-----END PGP SIGNATURE-----

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list