We check for a minimum version of mscoree.dll, like this: <Property Id="MINFRAMEWORK"> <DirectorySearch Id="MinFrameworkDir" Depth="0" Path="[SystemFolder]"> <FileSearch Id="MinFrameworkFile" MinVersion="1.1.4322" Name="mscoree.dll" /> </DirectorySearch> </Property> <Condition Message=".NET Framework 1.1 (or higher) is not present on the computer."> <![CDATA[MINFRAMEWORK <> ""]]> </Condition>
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wix-users- > [EMAIL PROTECTED] On Behalf Of Neil Sleightholm > Sent: Sunday, June 08, 2008 5:21 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or higher > isinstalled > > Who knows what MS will do for 4.0, I don't think we can guess. .Net 3.0 > and 3.5 are just marketing labels, they are really 2.0 plus service > packs. I know that doesn't help but I don't see what we as install > writers can do. > > Neil > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jason > Sent: 08 June 2008 22:18 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or higher > is installed > > While that is true for 3.0 and 3.5, that might not necessarily be true > for "4.0". > For example, if they have 2.0 they do not necessarily have 1.1 or 1.0, > as they were both different CLR versions. > The reason it is true for 3.0 and 3.5 is because they are library > extensions and run on the same CLR version as 2.0. > > > On Sun, Jun 8, 2008 at 1:57 PM, Neil Enns <[EMAIL PROTECTED]> > wrote: > > Right. A user can't just install .NET 3.5 as the installer will > automatically install .NET 2.0 and 3.0 as well. If your installer does > a > check for .NET 2.0 via the reg key (or using the NetFxExtension that > comes with WiX), the check will pass if the user has "only" installed > .NET 3.5 since the other two frameworks will automatically be there as > well. > > > > Neil > > > > ________________________________ > > From: [EMAIL PROTECTED] > [EMAIL PROTECTED] On Behalf Of Ryan O'Neill > [EMAIL PROTECTED] > > Sent: Sunday, June 08, 2008 11:51 AM > > To: 'General discussion for Windows Installer XML toolset.' > > Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or > higher > is installed > > > > I think that's what he said. It will detect .Net 2.0 or greater, so > 2.0, > > 3.0, 3.5 and 4.x will be covered as any future .Net installation is > > backwards compatible and has the previous runtimes installed too. > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Ravit > Shapira > > Sent: 08 June 2008 18:26 > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or > higher > is > > installed > > > > I actually thought about your suggestion. The problem is that we will > have > > to search the registry key of each version of .NET and I'm trying to > find a > > general solution that will work for all versions of .NET 2.0 and > higher, so > > that we will not have to change the setup code when .NET version 4.0 > will > > release. > > > > Thanks, > > -Ravit > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Neil > > Sleightholm > > Sent: Sunday, June 08, 2008 6:08 AM > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or > higher > is > > installed > > > > I think that key should be present if 3.5 is installed as the 3.5 > > install installs 2.0. > > > > If you are using WiX v3 you can also do something like this: > > > > <PropertyRef Id="NETFRAMEWORK20"/> > > <Condition Message=".NET Framework 2.0 is not present on this > > computer."> > > Installed OR NETFRAMEWORK35 > > </Condition> > > > > Neil > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Ravit > > Shapira > > Sent: 08 June 2008 10:01 > > To: wix-users@lists.sourceforge.net > > Subject: [WiX-users] How to detect if .NET framework 2.0 or higher is > > installed > > > > Hi, > > > > I want to be able to detect if .NET framework 2.0 or higher is > > installed. > > I've found how I can look for the .NET framework 2.0 in wix: > > > > <Property Id="NETFRAMEWORK20"> > > <RegistrySearch Id="NetFramework20" Root="HKLM" > > Key="Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" > > Name="Install" Type="raw" /> > > </Property> > > > > <Condition>Installed or NETFRAMEWORK20</Condition> > > .... > > > > The problem with my current implementation is that it looks for the > > registry key of v2.0, while the setup that I create should run on > .NET > > 2.0 or higher (3.5 for example). > > > > Thanks, > > Ravit > > > > > > > ----------------------------------------------------------------------- > - > > - > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ----------------------------------------------------------------------- > - > - > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ----------------------------------------------------------------------- > - > - > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > No virus found in this incoming message. > > Checked by AVG. > > Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: > 07/06/2008 > > 11:17 > > > > > > > ----------------------------------------------------------------------- > - > - > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ----------------------------------------------------------------------- > - > - > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ----------------------------------------------------------------------- > - > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ----------------------------------------------------------------------- > -- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users