[wix-users] .Net Framework install not working

Sean Hall r.sean.hall at gmail.com
Mon Sep 21 17:34:14 PDT 2015


We really need to the bundle log in %temp% to diagnose the issue, but there
are some issues with the BootstrapperCore.config.

The host element is used to tell mbapreq which assembly contains your
BootstrapperApplication class, you should only specify one host element.

The order of the supportedRuntime elements shouldn't cause your problem,
but be aware that by putting 4.0 first that you will be running in the v4
CLR if it's installed.

By leaving out supportedFramework elements, you're saying that the BA can
be loaded under the v2 CLR without the 3.5 upgrade.  Since you say your BA
requires .NET 3.5, you should add a supportedFramework for 3.5 under the
host element.

Finally, be aware that there is no redistributable to install .NET 3.5 on
Windows 8/Server 2012 or later.

On Mon, Sep 21, 2015 at 4:13 PM, Phill Hogland <phill.hogland at rimage.com>
wrote:

> Maybe I should not try to comment on this, as others may understand the
> issue better than I.  It seems like your supportedRuntime is saying that
> you prefer to use .Net 4.0 (but if the mba is not compiled for .Net 4.0
> that seems like a problem.)  Your wix.bootstraper statement does not have a
> supportedFramework so I am not sure how Burn is to negotiate the correct
> framework.
>
>
> http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_dotnet.html
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Patterson, Brent
> Sent: Monday, September 21, 2015 3:43 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] .Net Framework install not working
>
> Sorry, yes you're correct.  It's my managed bootstrapper application that
> I was referring to, not the burn itself.  This is what I have in
> configuration:
>
>     <startup useLegacyV2RuntimeActivationPolicy="true">
>         <supportedRuntime version="v4.0" />
>         <supportedRuntime version="v2.0.50727" />
>     </startup>
>     <wix.bootstrapper>
>         <host assemblyName="CustomUI" />
>         <host assemblyName="CustomUI.Res" />
>     </wix.bootstrapper>
>
> Apparently 3 and 3.5 is "v2.0.50727" according to MSDN help.  The thing
> is, it DOES show the prompt that the user needs to install .NET framework
> to run the application, but after the user confirms, it closes and does
> nothing.  Is this a bug with Windows Installer or something, or with my
> application?  The target framework for the bootstrapper application is 3.5.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Phill Hogland
> Sent: Monday, September 21, 2015 1:33 PM
> To: WiX Toolset Users Mailing List
> Subject: Re: [wix-users] .Net Framework install not working
>
> Burn does not require any .Net support.  If you have a managed
> bootstrapper application then the dependency on .Net is introduced and you
> control which version of .Net you need in your
> managedApp.BottstrapperCore.config file.  It sounds like your
> supportedRuntime does not match your expectations.
>
> This is from a mba which runs on 4.5 or later
>   <startup>
>     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
>     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
>   </startup>
>   <wix.bootstrapper>
>       <host assemblyName="MyMbaAssembly">
>         <supportedFramework version="v4\Client" />
>         <supportedFramework version="v4\Full" />
>       </host>
>   </wix.bootstrapper>
>
> Then the first item in the in the bundle chain should be the package ID
> for the .Net required by your managed bootstrapper application (in this
> case 4.5.1.
>       <PackageGroupRef Id="NetFx451Web" />
>
> Any other .Net dependencies would be later in your chain.
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Patterson, Brent
> Sent: Monday, September 21, 2015 2:01 PM
> To: wix-users at lists.wixtoolset.org
> Subject: [wix-users] .Net Framework install not working
>
> I've ran into a problem with .NET framework.  My burn bundle requires 3.5
> to run, and installs 4.5.2 as part of pre-req mechanism for the software
> it's installing.  The 4.5.2 part works correctly.  But if the machine the
> user is installing on does not have 3.5 or higher installed, it prompts the
> user with Microsoft's "Download and Install .Net Framework" when launching
> the bundle.  If the user clicks cancel, it simply closes and not launch the
> burn bundle.  If the user clicks "Download & Install", it seem to do
> something for a short while, then closes.  But it doesn't install 3.5
> .Net.  I don't see a progress bar or anything to indicate that it's
> running.  Checking task manager does not reveal anything.
>
> To clarify, this is NOT a part of the burn bundle pre-req install, as the
> burn requires 3.5 to operate.  Is there some kind of setting or something
> for when building the burn bundle that affects this?  Why is this not
> working?  We're targeting operating systems that should have 3.5 already
> installed at minimum, but need to handle cases where some users may have
> all .net framework uninstalled.  I would assume that with the burn
> targeting 3.5, Windows should handle .Net installation required to run the
> bundle.  We're currently using WiX 3.9.
>
> ________________________________
>
> Join us for Xactware User Conference 2016 on Feb. 9-10 in Salt Lake City.
> Stay February 11 for an extra day of free training. Visit
> xactwareuserconference.com for more information.
>
> ________________________________
>
> This email is intended solely for the recipient. It may contain
> privileged, proprietary or confidential information or material. If you are
> not the intended recipient, please delete this email and any attachments
> and notify the sender of the error.
>
> ____________________________________________________________________
> 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/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list