473,395 Members | 1,974 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,395 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 6277
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.