[wix-users] supportedFramework versions

William Fisher wfisher at summa.com
Thu Aug 3 06:19:54 PDT 2017


The BA is targeted to 3.5.  However, I got the .NET prerequisite installer
(instead of my custom installer bit for .NET).

On Wed, Aug 2, 2017 at 6:39 PM Sean Hall <r.sean.hall at gmail.com> wrote:

> What is the target .NET framework for your managed BA dll? Your first
> config you posted should have worked if it's compiled against .NET 3.5.
>
> On Wed, Aug 2, 2017 at 1:37 PM, William Fisher <wfisher at summa.com> wrote:
>
> > OK, back to not getting the .NET prompt when .NET Framework 4.6.2 is
> > already installed.  However, still need help with why .NET 3.5 isn't
> > sufficient to run the installer, even just to run the .NET 4.6.2
> installer.
> >
> > On Wed, Aug 2, 2017 at 1:52 PM William Fisher <wfisher at summa.com> wrote:
> >
> > > Now I can't even get my installer to recognize .NET in any way.  My
> > > BootstrapperCore.config looks 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" sku=
> ".NETFramework,Version=v4.6.2"/>
> > >   </startup>
> > >   <wix.bootstrapper>
> > >     <host assemblyName="ApplicationBootstrapper">
> > >       <supportedRuntime version="v4" />
> > >     </host>
> > >   </wix.bootstrapper>
> > > </configuration>
> > >
> > > I get the ".NET must be installed prior to installation" dialog, which
> > > fails when I click "Accept and Continue".  Here's the log for that:
> > >
> > > [2D80:2A74][2017-08-02T13:40:45]i001: Burn v3.11.0.1701, Windows v10.0
> > > (Build 10586: Service Pack 0), path:
> > > C:\Users\310284~1\AppData\Local\Temp\{68B89A0F-6D31-
> > 445F-90AB-1B1F51028E74}\.cr\Client.Application.Setup.exe
> > > [2D80:2A74][2017-08-02T13:40:45]i009: Command Line:
> > > '"-burn.clean.room=C:\Users\310284944\Documents\Visual Studio
> > > 2015\Projects\Client.Application.Setup\Client.Application
> > .Setup\bin\Debug\Client.Application.Setup.exe"
> > > -burn.filehandle.attached=432 -burn.filehandle.self=428'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'WixBundleOriginalSource' to value 'C:\Users\310284944\Documents\Visual
> > > Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\Client.Application.Setup.exe'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'WixBundleOriginalSourceFolder' to value
> > > 'C:\Users\310284944\Documents\Visual Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'WixBundleLog' to value
> > > 'C:\Users\310284~1\AppData\Local\Temp\Client_Application_
> > 20170802134045.log'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'WixBundleName' to value 'Client Application'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'WixBundleManufacturer' to value 'Client'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Loading prerequisite bootstrapper
> > > application because managed host could not be loaded, error:
> 0x80131700.
> > > [2D80:2FAC][2017-08-02T13:40:45]i000: Setting numeric variable
> > > 'WixStdBALanguageId' to value 1033
> > > [2D80:2FAC][2017-08-02T13:40:45]i000: Setting version variable
> > > 'WixBundleFileVersion' to value '1.0.0.0'
> > > [2D80:2A74][2017-08-02T13:40:45]i100: Detect begin, 8 packages
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting string variable
> > > 'NETFRAMEWORK4' to value '394806'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Registry key not found. Key =
> > > 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL12.ApplicationDB'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting numeric variable
> > > 'ISSQLSERVER32INSTALLED' to value 0
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Registry key not found. Key =
> > > 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL12.ApplicationDB'
> > > [2D80:2A74][2017-08-02T13:40:45]i000: Setting numeric variable
> > > 'ISSQLSERVER64INSTALLED' to value 0
> > > [2D80:2A74][2017-08-02T13:40:45]i102: Detected related bundle:
> > > {a0be0e75-72b5-4327-85fe-20900c5b0976}, type: Upgrade, scope:
> > PerMachine,
> > > version: 1.0.0.0, operation: None
> > > [2D80:2A74][2017-08-02T13:40:45]i052: Condition 'NETFRAMEWORK4 >=
> > 394802'
> > > evaluates to true.
> > > [2D80:2A74][2017-08-02T13:40:46]i052: Condition 'Installed OR
> > > ISSQLSERVER64INSTALLED' evaluates to false.
> > > [2D80:2A74][2017-08-02T13:40:46]i052: Condition 'Installed OR
> > > ISSQLSERVER32INSTALLED' evaluates to false.
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > NetFx462FullRedist, state: Present, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > Client.Application.Database.Uninstaller64, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > Client.Application.Database.Uninstaller32, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > SQLEXPR_x64_ENU.exe, state: Absent, cached: Complete
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > SQLEXPR_x86_ENU.exe, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > Client.Application.Installer64, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > Client.Application.Installer32, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i101: Detected package:
> > > Client.Application.Database.Installer, state: Absent, cached: None
> > > [2D80:2A74][2017-08-02T13:40:46]i199: Detect complete, result: 0x0
> > > [2D80:2A74][2017-08-02T13:40:52]i500: Shutting down, exit code: 0x642
> > > [2D80:2A74][2017-08-02T13:40:52]i000: The prerequisites were already
> > > installed. The bootstrapper application will not be reloaded to prevent
> > an
> > > infinite loop.
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: ISSQLSERVER32INSTALLED
> > = 0
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: ISSQLSERVER64INSTALLED
> > = 0
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: NETFRAMEWORK4 = 394806
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleAction = 5
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleElevated = 0
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleFileVersion =
> > > 1.0.0.0
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleLog =
> > > C:\Users\310284~1\AppData\Local\Temp\Client_Application_
> > 20170802134045.log
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleManufacturer =
> > > Client
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleName = Client
> > > Application
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleOriginalSource
> > =
> > > C:\Users\310284944\Documents\Visual Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\Client.Application.Setup.exe
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable:
> > > WixBundleOriginalSourceFolder = C:\Users\310284944\Documents\Visual
> > Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleProviderKey =
> > > {e6cd6808-ac17-4a97-8f92-8ffeac00226f}
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable:
> > > WixBundleSourceProcessFolder = C:\Users\310284944\Documents\Visual
> > Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable:
> > WixBundleSourceProcessPath
> > > = C:\Users\310284944\Documents\Visual Studio
> > > 2015\Projects\Client.Application.Setup\Client.
> > Application.Setup\bin\Debug\Client.Application.Setup.exe
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleTag =
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleUILevel = 4
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixBundleVersion =
> > 1.0.0.0
> > > [2D80:2A74][2017-08-02T13:40:52]i410: Variable: WixStdBALanguageId =
> > 1033
> > > [2D80:2A74][2017-08-02T13:40:52]i007: Exit code: 0x642, restarting: No
> > >
> > > I have no idea where to go from here.  Any help would be greatly
> > > appreciated.
> > >
> > >
> > > On Tue, Aug 1, 2017 at 4:47 PM William Fisher <wfisher at summa.com>
> wrote:
> > >
> > >> More follow up, sorry for spamming (last time until I get a reply for
> > >> this issue):
> > >>
> > >> For supportedRuntime tag:
> > >>
> > >> According to Microsoft (
> > >> https://docs.microsoft.com/en-us/dotnet/framework/configure-
> > apps/file-schema/startup/supportedruntime-element),
> > >> the following are true:
> > >>
> > >> Preferred supportedRuntime first (4.0, sku=4.6.2), least preferred
> last
> > >> (3.5, written as "2.0.50727").  So, since we'd LIKE them to have
> 4.6.2,
> > but
> > >> we can get by with 3.5, I have them in this order:
> > >>
> > >>   <startup useLegacyV2RuntimeActivationPolicy="true">
> > >>     <supportedRuntime version="v4.0"
> sku=".NETFramework,Version=v4.6.2"
> > />
> > >>     <supportedRuntime version="v2.0.50727" />
> > >>   </startup>
> > >>
> > >> For supportedFramework tag, I've tried a variety of solutions,
> including
> > >> no supportedFramework tag at all, <supportedFramework version="v4.0"
> />
> > by
> > >> itself, or with <supportedFramework version="v3.5">, or just v3.5 on
> its
> > >> own.
> > >>
> > >> THanks for any suggestions,
> > >> Bill
> > >>
> > >>
> > >>
> > >> On Tue, Aug 1, 2017 at 3:08 PM William Fisher <wfisher at summa.com>
> > wrote:
> > >>
> > >>> As a follow up, here's a link to the .NET version information on my
> > >>> Windows 7 test machine http://imgur.com/fz6R2dF
> > >>>
> > >>> On Tue, Aug 1, 2017 at 3:03 PM William Fisher <wfisher at summa.com>
> > wrote:
> > >>>
> > >>>> I'm trying to get my installer to run on anything Windows 7 SP 1 all
> > >>>> the way up to Windows 10.  I'm creating a custom bootstrapper.  When
> > I run
> > >>>> it in Windows 10, where I have .NET Framework 4.6.2 installed, it
> > comes up
> > >>>> no problem.  When I run it on Windows 7, where I don't have 4.6.2
> > >>>> installed, execution fails with the following error:
> > >>>>
> > >>>> [045C:0E30][2017-08-01T14:54:09]e000: Error 0x8013101b: Failed to
> > >>>> create the managed bootstrapper application.
> > >>>> [045C:0E30][2017-08-01T14:54:09]e000: Error 0x8013101b: Failed to
> > >>>> create UX.
> > >>>> [045C:0E30][2017-08-01T14:54:09]e000: Error 0x8013101b: Failed to
> > load
> > >>>> UX.
> > >>>> [045C:0E30][2017-08-01T14:54:09]e000: Error 0x8013101b: Failed while
> > >>>> running
> > >>>>
> > >>>> Google tells me that the proper version of .NET Framework isn't
> > >>>> installed, therefore the installer exe won't run.  Here's my
> > >>>> BootstrapperCore.config:
> > >>>>
> > >>>> <?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.
> > 6.2"
> > >>>> />
> > >>>>     <supportedRuntime version="v2.0.50727" />
> > >>>>   </startup>
> > >>>>   <wix.bootstrapper>
> > >>>>     <host assemblyName="ApplicationBootstrapper">
> > >>>>       <supportedFramework version="v3.5" />
> > >>>>       <supportedFramework version="v4.0\Client" />
> > >>>>       <supportedFramework version="v4.0\Full" />
> > >>>>     </host>
> > >>>>   </wix.bootstrapper>
> > >>>> </configuration>
> > >>>>
> > >>>> I need it to run on anything from .NET 3.5 to 4.6.2.  Does anyone
> have
> > >>>> any ideas how to solve that?
> > >>>>
> > >>>> Thanks,
> > >>>> Bill
> > >>>> --
> > >>>> Bill Fisher   |  Technical Consultant
> > >>>> [ *m* ] 412.427.9804 <(412)%20427-9804> <(412)%20427-9804>
> > >>>> wfisher at summa.com
> > >>>> [image: [ l ]] billfishersumma
> > >>>> <https://linkedin.com/in/billfishersumma>
> > >>>> 611 William Penn Place
> > >>>> Pittsburgh, PA 15219
> > >>>> summa.com <http://www.summa.com/> [image: Summa]
> > >>>> <http://www.summa.com/>
> > >>>>
> > >>> --
> > >>> Bill Fisher   |  Technical Consultant
> > >>> [ *m* ] 412.427.9804 <(412)%20427-9804> <(412)%20427-9804>
> > >>> wfisher at summa.com
> > >>> [image: [ l ]] billfishersumma
> > >>> <https://linkedin.com/in/billfishersumma>
> > >>> 611 William Penn Place
> > >>> Pittsburgh, PA 15219
> > >>> summa.com <http://www.summa.com/> [image: Summa] <
> > http://www.summa.com/>
> > >>>
> > >> --
> > >> Bill Fisher   |  Technical Consultant
> > >> [ *m* ] 412.427.9804 <(412)%20427-9804> <(412)%20427-9804>
> > >> wfisher at summa.com
> > >> [image: [ l ]] billfishersumma
> > >> <https://linkedin.com/in/billfishersumma>
> > >> 611 William Penn Place
> > >> Pittsburgh, PA 15219
> > >> summa.com <http://www.summa.com/> [image: Summa] <
> http://www.summa.com/
> > >
> > >>
> > > --
> > > Bill Fisher   |  Technical Consultant
> > > [ *m* ] 412.427.9804 <(412)%20427-9804> <(412)%20427-9804>
> > > wfisher at summa.com
> > > [image: [ l ]] billfishersumma   <https://linkedin.com/in/
> > billfishersumma>
> > > 611 William Penn Place
> > > Pittsburgh, PA 15219
> > > summa.com <http://www.summa.com/> [image: Summa] <
> http://www.summa.com/>
> > >
> > --
> > Bill Fisher   |  Technical Consultant
> > [ *m* ] 412.427.9804 <(412)%20427-9804>
> > wfisher at summa.com
> > [image: [ l ]] billfishersumma   <
> https://linkedin.com/in/billfishersumma>
> > 611 William Penn Place
> > Pittsburgh, PA 15219
> > summa.com <http://www.summa.com/> [image: Summa] <http://www.summa.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/
>
-- 
Bill Fisher   |  Technical Consultant
[ *m* ] 412.427.9804
wfisher at summa.com
[image: [ l ]] billfishersumma   <https://linkedin.com/in/billfishersumma>
611 William Penn Place
Pittsburgh, PA 15219
summa.com <http://www.summa.com/> [image: Summa] <http://www.summa.com/>



More information about the wix-users mailing list