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>