[wix-users] 答复: .Net Quiet Mode
uni
unigauldoth at gmail.com
Tue Feb 16 19:50:20 PST 2016
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/
More information about the wix-users
mailing list