469,913 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

Detect whether DotNet Framework installed

zZ
Hi All,

I need to detect the framework installed from both VB.Net and VB6. Can
someone give me an hint?
Thanks for any tip.
Kind regards,
Zen
Nov 20 '05 #1
3 6067
zZ
Thanks Herfried,

I guess I should check the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\
exists from VB6.

I'm not sure if a good idea to check the folder
%windir%\Microsoft.Net\Framework since I forget whether the path is optional
during installation.

Regards,
Zen

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bo*************@ID-208219.news.uni-berlin.de...
* "zZ" <zz@home.ng> scripsit:
I need to detect the framework installed from both VB.Net and VB6. Can
someone give me an hint?


You cannot detect this from VB.NET because the application will require
the .NET framework to be installed in order to be executed.

(Translated to English by HKW, written by Thomas Scheidegger [MVP])

Basic information (link to English version included on top of the page):
<http://support.microsoft.com/?kbid=318785>

%windir%\Microsoft.Net\Framework\v1.0.3705\Mscorcf g.dll
1.0.3705.0 = no SP
1.0.3705.209 = with SP1
1.0.3705.288 = with SP2

With .NET 1.1 Sidce-by-Side execution can be used:

Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\
'InstallRoot' REG_SZ

for example (on Windows XP):
"C:\WINDOWS\Microsoft.NET\Framework\"

Version path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.0\
'3705' REG_SZ

If you concatenate both, you will get:
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705

.NET 1.1 :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1\

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Nov 20 '05 #2
* "zZ" <zz@home.ng> scripsit:
I guess I should check the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\
exists from VB6.

I'm not sure if a good idea to check the folder
%windir%\Microsoft.Net\Framework since I forget whether the path is optional
during installation.


AFAIR it's not optional.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3
http://groups.google.com/groups?sour...ork+installed+
-mike
MVP

"zZ" <zz@home.ng> wrote in message
news:bo**********@news3.tilbu1.nb.home.nl...
Hi All,

I need to detect the framework installed from both VB.Net and VB6. Can
someone give me an hint?
Thanks for any tip.
Kind regards,
Zen

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by John Blair | last post: by
4 posts views Thread by Maileen | last post: by
2 posts views Thread by peterbf | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.