[wix-users] .Net Framework install not working

Rob Mensching rob at firegiant.com
Wed Sep 23 16:11:49 PDT 2015


See: http://wixtoolset.org/issues/4180/

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Patterson, Brent
Sent: Wednesday, September 23, 2015 3:57 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] .Net Framework install not working

We've decided that instead of installing 4.5.2 as part of the bundle installer, we'd make it a pre-req for the installer itself, and make the installer target 4.5.2.  I've updated the configuration file so it looks like this:

<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>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  </startup>
  <wix.bootstrapper>
    <host assemblyName="CustomUI" />
  </wix.bootstrapper>
</configuration>

My question is, this shows a dialog before the installer's window, with ".NET Framework needs to be installed", and contains a link to the license agreement page.  However, this link points to "www.wixtoolset.net/net452" or something like that, which isn't a valid page.  Where does this link gets this from?  Is this supposed to be a valid address but isn't implemented yet?  Or am I supposed to redirect it to a valid page, and if so, how?

Thanks again for all of your help!

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Tuesday, September 22, 2015 10:49 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] .Net Framework install not working

Yes, what is specified in your mentioned blog is done in my BootstrapperCore.config file and so it is working as expected..
Btw, using Dism.exe or fondue.exe is not a bad idea. I say, it would be more simpler to manage....


On 23 September 2015 at 00:36, Phill Hogland <phill.hogland at rimage.com>
wrote:

> >> If any superior Net framework is installed or installed by bundle
> itself, then it should go fine with that.
> >>If any lower Net Framework is installed, it needs to be upgraded to
> >>3.5
> or higher...
>
> Not in my experience.  .Net 3.51 is in the .Net 2.0 family, in 
> contrast to the NetFx4.x family.  I have a third-party setup which 
> does not run on systems which have .Net 4.x or later, when NetFx3 is 
> not installed.  I have not been successful in getting the vendor to update yet the package, yet.
>
>
> http://www.davidmoore.info/blog/2010/12/17/running-net-2-runtime-appli
> cations-under-the-net-4-runtime/
>
> In situations where I have to install this third-party InstallShield 
> based setup (with a CA which "requires" .Net 3.51) I have to make sure 
> that
> NetFx3 is "enabled" using DISM.exe (Windows 7 or later) or fondue.exe 
> (Windows 8 or later).  It's a pain but possible to achieve.  For my 
> mba and all other applications which my group manages, I make sure 
> that managed apps target NetFx4 or later (and lately NetFx451 to take 
> advantage to bug fixes and performance improvements).
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On 
> Behalf Of Farrukh Waheed
> Sent: Tuesday, September 22, 2015 1:47 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] .Net Framework install not working
>
> If any superior Net framework is installed or installed by bundle 
> itself, then it should go fine with that.
> If any lower Net Framework is installed, it needs to be upgraded to
> 3.5 or higher...
>
> My managed bootstrapper needs FW 4, but when its basic screen installs 
> 4.5.1, it went fine...
>
> On 22 September 2015 at 22:26, Patterson, Brent 
> <bcpatterson at xactware.com>
> wrote:
>
> > Thanks for the explanations!  If a program requires .NET 3.5, at 
> > least, and Windows 8 and later don't have .NET frameworks installed, 
> > what is the outcome of launching such a program and having the .NET
> dialog pop up?
> > Does it try and install lowest .NET version that it can (4.0?), or 
> > does it simply fail?  By having 4.0 or higher installed, 3.5 .NET 
> > programs should run fine, right?
> >
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On 
> > Behalf Of Sean Hall
> > Sent: Monday, September 21, 2015 6:34 PM
> > To: WiX Toolset Users Mailing List
> > Subject: Re: [wix-users] .Net Framework install not working
> >
> > 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/redistributab
> > > le s_ 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/
> > >
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant 
> > http://www.firegiant.com/
> >
> > ________________________________
> >
> > 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/

________________________________

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/


More information about the wix-users mailing list