[wix-users] 答复: .Net Quiet Mode
John Cooper
JoCooper at jackhenry.com
Wed Feb 17 09:06:01 PST 2016
In your managed bootstrapper application project, what is the TargetFrameworkVersion?
--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |JoCooper at jackhenry.com
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Martin
Sent: Wednesday, February 17, 2016 11:03 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] 答复: .Net Quiet Mode
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
Windows 7 SP1 is the OS and if I include
<supportedRuntime version="v2.0.50727"/>
the installer fails to start and I get the following error:
[03FC:0414][2016-02-17T08:42:58]i000: Loading managed bootstrapper application.
[03FC:0414][2016-02-17T08:42:58]e000: Error 0x8013101b: Failed to create the managed bootstrapper application.
[03FC:0414][2016-02-17T08:42:58]e000: Error 0x8013101b: Failed to create UX.
[03FC:0414][2016-02-17T08:42:58]e000: Error 0x8013101b: Failed to load UX.
[03FC:0414][2016-02-17T08:42:58]e000: Error 0x8013101b: Failed while running
I cant for the life of me get the BA to run on Windows 7 SP1 (.Net 3.5.1)
Ive tried the following :
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v2.0.50727" /> <supportedRuntime
version="v4.0" /> </startup> <wix.bootstrapper> <host
assemblyName="TestBA"> <supportedFramework version="v3.0"/>
<supportedFramework version="v3.5" />
<supportedFramework version="v3.5.1" /> <supportedFramework
version="v4\Client" /> <supportedFramework
version="v4\Full"/> </host> </wix.bootstrapper>
I have confirmed the CLR is v2.0.50727 by looking at MSCORWKS.dll in
C:\Windows\Microsoft.NET\Framework\v2.0.50727 as suggestied in this <http://blogs.msdn.com/b/rodneyviana/archive/2014/12/23/identifying-the-net-version-you-are-running-2-0-4-5-4-5-1-or-4-5-2.aspx>MS
blog post.
The only way I can proceed is to remove <supportedRuntime version="v2.0.50727" /> doing so makes Wix show the default basic UI and ask to install .Net 4 before running the BA, obviously afterwards my WPF MBA shows fine but I would really like to run the MBA on .Net
3.5 if the users system has it, why should we have to install .Net 4 for the MBA if its not needed.
So is this intended behavior, is it a bug or am I messing up somewhere?
Martin
On 17 February 2016 at 03:50, uni <unigauldoth at gmail.com> wrote:
> Hi Martin,
>
> Here is my understanding.
>
> This seems to be a .NET issue.
> If the WPF BA can't be load, it will try to install the .NET
> prerequisite, which is specified by
> <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
>
> The supportedRuntime and supportedFramework specified which .NET
> runtime and framework your WPF BA is compatible with.
>
> In my situation, I use following settings to make sure my WPF BA will
> run under .NET 3.0, .NET 3.5, or .NET 4.0, without need to install
> .NET prerequisite.
>
> <startup useLegacyV2RuntimeActivationPolicy="true">
> <supportedRuntime version="v2.0.50727"/>
> <supportedRuntime version="v4.0"/> </startup> <runtime>
> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime>
>
> <host assemblyName="CarrierBA">
> <supportedFramework version="v3.0"/>
> <supportedFramework version="v3.5" />
> <supportedFramework version="v4\Client" />
> <supportedFramework version="v4\Full"/> </host>
>
> If there is no .NET present on the target machine, it will install the
> .NET prerequisite.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> Behalf Of Martin
> Sent: Tuesday, February 17, 2016 9:59 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] .Net Quiet Mode
>
> Ok I see thank you, what im not seeing is which settings govern what,
> ie what do the following influence :
>
> <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
>
> Is the value I use above responsible for telling the BA what .Net
> runtime to use? or is it below?
>
>
> <startup useLegacyV2RuntimeActivationPolicy="true">
> <supportedRuntime version="v4.0" /> </startup>
>
>
> or is it:
>
>
> <wix.bootstrapper> <host assemblyName="TestBA">
> <supportedFramework version="v4\Full" />
> <supportedFramework version="v4\Client" /> </host>
> </wix.bootstrapper>
>
> Ive bought Nicks book A Developers guide to Wix which is very good but
> doesn't cover a lot of ground with the above settings, if it could be
> explained in dumb laymans terms I might start to understand whats going on.
>
>
> Martin
>
>
>
>
>
> On 17 February 2016 at 01:13, John Cooper <JoCooper at jackhenry.com> wrote:
>
> > It could, but you would have to build your BA compatible with .NET
> > 3.5--that doesn't happen automatically. If the MBA will load under
> > .NET 3.5, then you could install .NET 4.6 subsequently.
> >
> > For example, my BA has a .NET 4.0 dependency, and it will load if
> > .NET
> > 4.0 Full or later is present. And I install .NET 4.6 as part of the
> workflow.
> >
> > --
> > John Merryweather Cooper
> > Senior Software Engineer | Integration Development Group |
> > Enterprise Notification Service Jack Henry & Associates, Inc.® |
> > Lenexa, KS
> > 66214 | Ext: 431050 | JoCooper at jackhenry.com
> >
> >
> >
> >
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > Behalf Of Martin
> > Sent: Tuesday, February 16, 2016 7:10 PM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Subject: Re: [wix-users] .Net Quiet Mode
> >
> > The e-mail below is from an external source. Please do not open
> > attachments or click links from an unknown or suspicious origin.
> >
> > Jacob, when you say 'If you don't have .Net installed, how would you
> > expect your MBA to run?'
> >
> > The .Net 'is' installed (im testing on Windows 7 and it has at least
> > .Net
> > 3.5) My app needs .Net 4.6 so why cant the MBA run on 3.5 and the
> > MBA install 4.6?
> >
> > Martin
> >
> >
> >
> >
> >
> > On 15 February 2016 at 17:34, Martin <tino.mclaren at gmail.com> wrote:
> >
> > > Yes I apologise for the post, im new to Wix and would like to
> > > thank you for your answer.
> > >
> > > Lots of testing has shed a lot of light.
> > >
> > > Martin
> > >
> > >
> > >
> > >
> > >
> > > On 15 February 2016 at 15:37, Hoover, Jacob
> > > <Jacob.Hoover at greenheck.com>
> > > wrote:
> > >
> > >> If you don't have .Net installed, how would you expect your MBA
> > >> to
> run?
> > >> The prerequisite installer/fallback is to use WixStdBA to install
> > >> the missing BA prerequisites.
> > >>
> > >> -----Original Message-----
> > >> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org]
> > >> On Behalf Of Martin
> > >> Sent: Saturday, February 13, 2016 1:23 PM
> > >> To: wix-users at lists.wixtoolset.org
> > >> Subject: [wix-users] .Net Quiet Mode
> > >>
> > >> Hello everyone
> > >>
> > >> First off this is my first message and id like to say its great
> > >> to be part of the wix user group.
> > >>
> > >> My question:
> > >>
> > >> Using WPF as MBA how can I run the .Net installer in quiet mode
> > >> and pipe progress to the MBA?
> > >>
> > >> Currently the WPF MBA is not shown (if .net
> > >> InstallCondition=true), instead a window is displayed (looks like
> > >> a Wix window) with the option to install .Net, if .Net
> > >> InstallCondition=false then the WPF MBA
> > is shown.
> > >>
> > >> If I use WixStandardBootstrapperApplication.RtfLicense in place
> > >> of ManagedBootstrapperApplicationHost (WPF MBA) then this UI
> > >> handles .Net installation fine (showing progress).
> > >>
> > >> How can I get the WPF MBA to handle quiet .Net installation using
> > >> the ManagedBootstrapperApplicationHost an how do i hook up the
> > >> .Net progress pipe?
> > >>
> > >> Any help much appreciated.
> > >>
> > >> Martin
> > >> Mc
> > >>
> > >> _________________________________________________________________
> > >> __ _ 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/
> > NOTICE: This electronic mail message and any files transmitted with
> > it are intended exclusively for the individual or entity to which it
> > is addressed. The message, together with any attachment, may contain
> > confidential and/or privileged information.
> > Any unauthorized review, use, printing, saving, copying, disclosure
> > or distribution is strictly prohibited. If you have received this
> > message in error, please immediately advise the sender by reply
> > email and delete all copies.
> >
> > ____________________________________________________________________
> > 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/
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message,
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution
is strictly prohibited. If you have received this message in error, please
immediately advise the sender by reply email and delete all copies.
More information about the wix-users
mailing list