My application work with the only Net 4.0. But we have seen some minor problems 
that were fixed with an hotfix made by microsoft and bundled only with the net 
4.5.So if it's possible to install the Net 4.5 I prefer to install this 
versione to make my application working good at 100%If this is not possible to 
install the net 4.5 (on WindowsXP systems) I can accpet that my application 
works at 99% with some minor problems.
For doind this I can set the Net 4.0 as necessary prerequisite for the setup, 
and add the net 4.5 as a normal package (installed only on Windows 7-8 systems) 
in the Burn install chain as it will be installed after the net 4.0.
My problem is that on a Windows 7-8 machine without the net 4.0 installed, the 
setup need to install the net 4.0 as prerequisite for the setup (to make the 
WPF Burn UI working) then It will install the net 4.5. In this way I have to 
install 2 package (an it takes a lot of time) when I could install inly the net 
4.5 before the setup run. But I don't know how to change the WixVariable that 
define the prerequisite for the Burn setup depending on a condition, can I use 
this kind of condition on the WixVariable that define the prerequisites?
<?if Windows 7 and Net 4.0 not installed?><WixVariable 
Id="WixMbaPrereqPackageId" Value="Netfx45Full" /> <?else?><WixVariable 
Id="WixMbaPrereqPackageId" Value="Netfx40Full" /> 


> From: jocoo...@jackhenry.com
> To: wix-users@lists.sourceforge.net
> Date: Thu, 16 May 2013 22:04:17 +0000
> Subject: Re: [WiX-users] Install Net Framework 4.5 as prerequisite only if on 
> windows 7-8 and not installed
> 
> It is possible, but there will be a lot of edge cases. 
> 
> It may be better to simplify.  What does your application really need?  It 
> sounds like it needs .NET Frame 4.0.  If that's the case, .NET 4.5 is  a 
> superset and will satisfy the need for 4.0 in most cases.  In which case, 
> you'd be better off with just a dependency on .NET 4.0.
> 
> Things only really get tricky when you've got to work with assemblies like 
> Microsoft.IdentyModel.dll which was not in .NET 4.0 but is present in .NET 
> 4.5 AND requires and additional assembly, System.IdentityModel.dll.  Although 
> we tried and tried to make something deployable on both Server 2008 R2 and 
> Server 2012 with the .NET 3.5 version of Microsoft.IdentityModel.dll, in the 
> end, we will support only .NET 4.5--just too much of a mess.
> --
> John M. Cooper
> 
> -----Original Message-----
> From: Marco Tognacci [mailto:mark...@live.it] 
> Sent: Thursday, May 16, 2013 4:51 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Install Net Framework 4.5 as prerequisite only if on 
> windows 7-8 and not installed
> 
> The NetFX extension make the trick but it work with a web based installation 
> of the Net Framework, so if you want to install the full version without 
> douwnloading it while running the setup you have to add the net framework by 
> yourself as posted by Nick.I use exactly this fragment of code, but this 
> doesn't answer my question.I can install the Net framework without problems. 
> But the question is.I have set the net framework 4.0 as prerequisite for the 
> Burn setup. but if I run the setup on a Windows 7 machine with no framework 
> 4.0 and no framework 4.5, I want to set the Net framework 4.5 as prerequisite 
> instead of the 4.0.Any idea if is it possible to do?
> 
> > From: jocoo...@jackhenry.com
> > To: wix-users@lists.sourceforge.net
> > Date: Thu, 16 May 2013 20:35:32 +0000
> > Subject: Re: [WiX-users] Install Net Framework 4.5 as prerequisite 
> > only if on windows 7-8 and not installed
> > 
> > There's an undocumented NETFRAMEWORK45 Property in the NetFX extension in 
> > Wix 3.6 that does the business.
> > 
> > --
> > John Merryweather Cooper
> > Build & Install Engineer - ESA
> > Jack Henry & Associates, Inc.(r)
> > Shawnee Mission, KS  66227
> > Office:  913-341-3434 x791011
> > jocoo...@jackhenry.com
> > www.jackhenry.com
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Nick Miller [mailto:nmil...@livetechnology.com]
> > Sent: Thursday, May 16, 2013 3:16 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Install Net Framework 4.5 as prerequisite 
> > only if on windows 7-8 and not installed
> > 
> > Here is what I use:
> > 
> > <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework 
> > Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" />
> >     <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net 
> > Framework Setup\NDP\v4\Full" Value="Version" 
> > Variable="Netfx4x64FullVersion" Win64="yes" />
> > 
> > <PackageGroup Id="Netfx45">
> >     <ExePackage Id="Netfx45" Cache="no" Compressed="yes" PerMachine="yes" 
> > Protocol="netfx4" Permanent="yes" Vital="yes" InstallCommand="/norestart 
> > /passive /showrmui"
> >                 SourceFile="dotNetFx45_Full_setup.exe"
> >                 DetectCondition="(Netfx4FullVersion=&quot;4.5.50709&quot;) 
> > AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&quot;4.5.50709&quot;))"
> >                 InstallCondition="(VersionNT >= v6.0 OR VersionNT64 >= 
> > v6.0) AND (NOT (Netfx4FullVersion=&quot;4.5.50709&quot; OR 
> > Netfx4x64FullVersion=&quot;4.5.50709&quot;))"/>
> > 
> > <Chain>
> >       <PackageGroupRef Id="Netfx45"/>
> >       ...
> > </Chain>
> > 
> > Note the /passive /showrmui in the installcommand:  This will prompt the 
> > user to close .Net applications to avoid a reboot.
> > 
> > Hope this helps,
> > 
> > Nick
> > 
> > -----Original Message-----
> > From: Marco Tognacci [mailto:mark...@live.it]
> > Sent: Thursday, May 16, 2013 3:59 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] Install Net Framework 4.5 as prerequisite only if 
> > on windows 7-8 and not installed
> > 
> > I have a Burn setup with managed UI in WPF so I need to install The net 
> > framework 4 as prerequisite for the installer and my application, but as in 
> > the Net Framework 4.5 there are some usefull fix, I want to install the net 
> > framework 4.5 if possible.I'd like to make this:
> > 1 - On WIndows XP - I want to Install Net Framework 4.0 as prerequisite for 
> > Burn setup.2 - On Windows 7-8 and no Net Framework 4.0 installed - I want 
> > to install Net Framework 4.5 as prerequisite for the Burn setup.3 - On 
> > Windows 7-8 and with Net Framework 4.0 installed - I want to install Net 
> > Framework 4.5 with the burn UI, (not as a prerequisite) Now I was able only 
> > to set Net Framework as prerequisite for the Burn setup, and only with 
> > Windows 7-8 I install even the Net Framework 4.5 during Burn setup.This way 
> > works, but if I want to install on a Windows 7-8 system with no Net 
> > Framework 4.0 installed I have to Install Net Framework 4.0 as prerequisite 
> > for the setup then I have to install the Net Framework 4.5 inside the Burn 
> > setup chain. I'd like to skip the installing of the Net Framework 4.0 and 
> > install only the Net Framework 4.5 Is there any way for doing this?
> >                                       
> > ----------------------------------------------------------------------
> > -------- AlienVault Unified Security Management (USM) platform 
> > delivers complete security visibility with the essential security 
> > capabilities. Easily and efficiently configure, manage, and operate all of 
> > your security controls from a single console and one unified framework. 
> > Download a free trial.
> > http://p.sf.net/sfu/alienvault_d2d
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > 
> > 
> > 
> > ----------------------------------------------------------------------
> > -------- AlienVault Unified Security Management (USM) platform 
> > delivers complete security visibility with the essential security 
> > capabilities. Easily and efficiently configure, manage, and operate all of 
> > your security controls from a single console and one unified framework. 
> > Download a free trial.
> > http://p.sf.net/sfu/alienvault_d2d
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > 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.
> > 
> > 
> > ----------------------------------------------------------------------
> > -------- AlienVault Unified Security Management (USM) platform 
> > delivers complete security visibility with the essential security 
> > capabilities. Easily and efficiently configure, manage, and operate 
> > all of your security controls from a single console and one unified 
> > framework. Download a free trial.
> > http://p.sf.net/sfu/alienvault_d2d
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>                                         
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete 
> security visibility with the essential security capabilities. Easily and 
> efficiently configure, manage, and operate all of your security controls from 
> a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 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.
> 
> 
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to