473,387 Members | 1,493 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,387 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 6276
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.