Home All Groups Group Topic Archive Search About
Author
24 Feb 2006 7:00 PM
Craig L
Hi All,
I am just wondering if there is test to check if the .net2.0 framework is
installed on a machine?

As a quick'n'dirty test while developing, I am just checking if the folder
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present, but that won't
do for production code.

Any advice is very welcome.

Thanks in advance,
Craig

Author
24 Feb 2006 7:26 PM
Michael Nemtsev
Hello Craig,

Here http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291 detailed
description

CL> Hi All,
CL> I am just wondering if there is test to check if the .net2.0
CL> framework is
CL> installed on a machine?
CL> As a quick'n'dirty test while developing, I am just checking if the
CL> folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present,
CL> but that won't do for production code.
CL>
CL> Any advice is very welcome.
CL>
CL> Thanks in advance,
CL> Craig
---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
24 Feb 2006 7:43 PM
Craig L
Sorry, I guess I should have been a little more specific. I am not doing
this through a .net installer. The main application, which includes the
installer, is Microsoft Great Plains and the language it uses is Dynamics.

So I have to test for .net2.0 from within Dynamics before I deploy the dlls
and use regasm to register them.

-Craig

Show quote
"Michael Nemtsev" <nemt***@msn.com> wrote in message
news:9cc1c8637c9c18c807a8831dc39c@msnews.microsoft.com...
> Hello Craig,
>
> Here http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291
> detailed description
>
> CL> Hi All,
> CL> I am just wondering if there is test to check if the .net2.0
> CL> framework is
> CL> installed on a machine?
> CL> As a quick'n'dirty test while developing, I am just checking if the
> CL> folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present,
> CL> but that won't do for production code.
> CL> CL> Any advice is very welcome.
> CL> CL> Thanks in advance,
> CL> Craig
> ---
> WBR,
> Michael  Nemtsev :: blog: http://spaces.msn.com/laflour
>
> "At times one remains faithful to a cause only because its opponents do
> not cease to be insipid." (c) Friedrich Nietzsche
>
>
Author
24 Feb 2006 8:45 PM
Michael Nemtsev
Hello Craig,

The way to check the installed version is either with Windows directory or
with registry (keys was described in article)

CL> Sorry, I guess I should have been a little more specific. I am not
CL> doing this through a .net installer. The main application, which
CL> includes the installer, is Microsoft Great Plains and the language
CL> it uses is Dynamics.
CL>
CL> So I have to test for .net2.0 from within Dynamics before I deploy
CL> the dlls and use regasm to register them.
CL>
CL> -Craig
CL>
Show quote
CL> "Michael Nemtsev" <nemt***@msn.com> wrote in message
CL> news:9cc1c8637c9c18c807a8831dc39c@msnews.microsoft.com...
CL>
>> Hello Craig,
>>
>> Here
>> http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291
>> detailed description
>>
>> CL> Hi All,
>> CL> I am just wondering if there is test to check if the .net2.0
>> CL> framework is
>> CL> installed on a machine?
>> CL> As a quick'n'dirty test while developing, I am just checking if
>> the
>> CL> folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is
>> present,
>> CL> but that won't do for production code.
>> CL> CL> Any advice is very welcome.
>> CL> CL> Thanks in advance,
>> CL> Craig
>> ---
>> WBR,
>> Michael  Nemtsev :: blog: http://spaces.msn.com/laflour
>> "At times one remains faithful to a cause only because its opponents
>> do not cease to be insipid." (c) Friedrich Nietzsche
>>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
25 Feb 2006 2:42 AM
Ken Cox - Microsoft MVP
You can probably read it from this string:

        Dim MyType As Type = Type.GetType("System.AppDomain")
        Response.Write(MyType.Assembly.FullName & "<br />")

Ken
Microsoft MVP [ASP.NET]


Show quote
"Craig L" <craig.lonsb***@diamondmunicipal.com> wrote in message
news:uONmHSXOGHA.2128@TK2MSFTNGP10.phx.gbl...
> Hi All,
> I am just wondering if there is test to check if the .net2.0 framework is
> installed on a machine?
>
> As a quick'n'dirty test while developing, I am just checking if the folder
> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present, but that won't
> do for production code.
>
> Any advice is very welcome.
>
> Thanks in advance,
> Craig
>
Author
25 Feb 2006 6:35 PM
Michael Nemtsev
Hello Ken Cox - Microsoft MVP,

Hmm, interesting. but it returns only major version
for .NET 2.0 it returns 2.0.0.0 and for 1.1 returns 1.0.5000

Any ideas why is it so?

K> You can probably read it from this string:
K>
K> Dim MyType As Type = Type.GetType("System.AppDomain")
K> Response.Write(MyType.Assembly.FullName & "<br />")
K> Ken
K> Microsoft MVP [ASP.NET]
K> "Craig L" <craig.lonsb***@diamondmunicipal.com> wrote in message
K> news:uONmHSXOGHA.2128@TK2MSFTNGP10.phx.gbl...
K>
>> Hi All,
>> I am just wondering if there is test to check if the .net2.0
>> framework is
>> installed on a machine?
>> As a quick'n'dirty test while developing, I am just checking if the
>> folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present,
>> but that won't do for production code.

---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
27 Feb 2006 2:06 PM
Paul Zimmerman
Hi Craig,

I'm a bit of a "newbie" at using this 2.0 framework so I apologize in
advance if my comment seems a bit naive. I thought that the ASPNET_REGIIS
tool could be used to reveal all ASP.NET versions on any given machine.

Rock 'N Roll,
Paul

Show quote
"Craig L" <craig.lonsb***@diamondmunicipal.com> wrote in message
news:uONmHSXOGHA.2128@TK2MSFTNGP10.phx.gbl...
> Hi All,
> I am just wondering if there is test to check if the .net2.0 framework is
> installed on a machine?
>
> As a quick'n'dirty test while developing, I am just checking if the folder
> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present, but that won't
> do for production code.
>
> Any advice is very welcome.
>
> Thanks in advance,
> Craig
>
>

AddThis Social Bookmark Button