473,397 Members | 1,949 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,397 software developers and data experts.

probing for CLR

How can I test in a culture- and operating system independent way if the
..NET Framework is installed (and in a certain version) on the target
machine using vc++ 6 ?
Nov 17 '05 #1
5 1499
Hi bonk!
How can I test in a culture- and operating system independent way if the
..NET Framework is installed (and in a certain version) on the target
machine using vc++ 6 ?


By reading the registry.

..NET Framework 1.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.0
Key: 3705
Value (string): 3321-3705

..NET Framework 1.1:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1
Key: 4322
Value (string): 3706-4322

..NET Framework 2.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1
Key: 50727
Value (string): 50727-50727
See also: How to detect the version of the .NET Framework that is
installed in a deployment package in Visual Studio .NET
http://support.microsoft.com/kb/315291/en-us

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #2
..NET Framework 2.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1


Should be
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v2.0

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #3
I've written an article on this :-

[The coding gentleman's guide to detecting the .NET Framework]
http://www.codeproject.com/dotnet/DetectDotNet.asp

--
Regards,
Nish [VC++ MVP]
"bonk" <sc******************@gmx.de> wrote in message
news:eG*************@TK2MSFTNGP15.phx.gbl...
How can I test in a culture- and operating system independent way if the
.NET Framework is installed (and in a certain version) on the target
machine using vc++ 6 ?

Nov 17 '05 #4
Jochen Kalmbach [MVP] schrieb:
..NET Framework 2.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1

Should be
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v2.0

For version 2.0 how do I differentiate the different beta/ctp versions ?

Nov 17 '05 #5
Hi bonk!
..NET Framework 2.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v1.1

Should be
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\v2.0

For version 2.0 how do I differentiate the different beta/ctp versions ?


Is it not enough to differentiate between RTM and pre-RTM?

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Scheer | last post by:
Hi. The docs say the <probing> element needs to refer to subdirectories of the application main directory. My windows application needs to locate an assembly in a directory above the application...
2
by: Richard | last post by:
I am writing an installer for our application. The installer places the application .exe in the install directory and then creates a \bin subfolder and places all .dlls in the \bin subfolder. ...
2
by: Pavils Jurjans | last post by:
Hello, This is my test.aspx page: <%@ Page Language="C#" enableSessionState="true" inherits="MyPage"%> This is code in CodeBehind.cs: using System;
2
by: Jiho Han | last post by:
This has been asked many times before but it seems there haven't been clear answers. I have an application root at http://localhost and subdirectories http://localhost/app1
2
by: Joel D Kraft | last post by:
I'm using controls in my ASP.NET application from a couple of vendors. Between the vendors and thier versioning, I've set up subfolders under my bin directory: bin bin\Infragistics\v5.2...
2
by: Shiraz | last post by:
Alright, I think I have a better perception of assemblies and environment variables now. The question I had initially posted was pertaining setting of environment variables using the VSI installer....
1
by: CorporateCoder | last post by:
Is there a way to group dll files by putting them in a subdirectory in the bin directory for ASP.net 2.0 Web Site projects and have the CLR find them? I tried using <probing> and adding the...
0
by: Boni Lopez | last post by:
Hi there, Supposed I have loaded into an current domain an assembly myasm.dll i.e. Appdomain.CurrentDomain.Load(bytes_of_myasm.dll) myasm.dll is signed and has a strong name Now I have a...
0
vaibhavgaikwad
by: vaibhavgaikwad | last post by:
Hi All, My problem is I generate and compile web-services on the fly. I want to keep the .dll files of the web-services in the "\bin\WebServices" directory. But at the time of invocation of the...
4
by: =?Utf-8?B?anVhbkBtc2RuQ29tcGFueS5jb20=?= | last post by:
I have a mixed mode application that uses several dlls, which most are native and my new one is mixed. My new dll uses several dependent .NET assemblies. I wanted to place these dependent .NET...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.