473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 6274
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: zZ | last post by:
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
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
5
by: zimmy | last post by:
Hi, Is it possible to check whether ASP.NET is installed on a machine, within a program that I'm writing in C#? And if it's installed, can I check if it is enabled? How? Thanks
6
by: John Blair | last post by:
Hi, I would like to be able to detect when a session ends in a page_load event in asp.net - is this possible? Thanks.
4
by: Maileen | last post by:
Hi, I would like to know if exist a way how to control if .NET framework is installed or not ? thanks, Maileen
2
by: peterbf | last post by:
I have a homepage where I instanciate a .Net 2.0 component in an object tag, but before instanciating the component, I would like to to check first if the machine has the .Net 2.0 framework...
1
by: Steve.Goodman | last post by:
Appologies if this has already been asked, but after scanning the web and this news group I could find no decent solution. We have a windows App that calls a webservice, using this bit of basic...
2
by: Saber | last post by:
To detect if .net framework is installed or not on client's computer, and if yes, what is its version, I found an article: http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291 But...
2
by: ads | last post by:
How can i detect if framework 2.0 is installed using asp.net web app if in the first place the web app will not run without the framework? I just need to catch the error in case there is no...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.