EEssam
asked on
How can I check whether .NET Framwork 2.0 is installed or not?
Hi,
How can I check whether .NET Framwork 2.0 is installed or not through a Win32 Delphi app?
Thanks.
How can I check whether .NET Framwork 2.0 is installed or not through a Win32 Delphi app?
Thanks.
In control pannel open "add/Remove programs" the list is in alphabetic order. Look for Microsoft .Net Framwork
or I could finnish reading the entire question before I hit post...sorry didnt notice the "a Win32 Delphi app?" part.
The NET runtime installs a registry key, you can check it.
For example,
HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\.NETFram ewor k\policy\v1.1
for version 1.1.
http://msdn2.microsoft.com/en-us/library/ydh6b3yb.aspx
For example,
HKEY_LOCAL_MACHINE\SOFTWAR
for version 1.1.
http://msdn2.microsoft.com/en-us/library/ydh6b3yb.aspx
i should have done the same thing.... finish reading!!!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have got to check my spelling!
uses
Registry;
John
uses
Registry;
John
ASKER
Thanks, it worked but why you're checking "policy" folder not just:
\SOFTWARE\Microsoft\.NETFr amework\vX XX
?
\SOFTWARE\Microsoft\.NETFr
?
Because there is no key there, that I can find, with that designator, I.E.,
\SOFTWARE\Microsoft\.NETFr amework\v1 .1 does not exist.
Those keys are listed under policy,
SOFTWARE\Microsoft\.NETFra mework\pol icy\v1.1 and does exist.
John
\SOFTWARE\Microsoft\.NETFr
Those keys are listed under policy,
SOFTWARE\Microsoft\.NETFra
John
ASKER
Are you sure you don't have the key? I have it:
\SOFTWARE\Microsoft\.NETFr amework\v1 .1.4322
Please check it again.
\SOFTWARE\Microsoft\.NETFr
Please check it again.
I do not on my PC here. But I do have
\SOFTWARE\Microsoft\.NETFr amework\2. 0.40607
and
\SOFTWARE\Microsoft\.NETFr amework\2. 0.40903
and
\SOFTWARE\Microsoft\.NETFr amework\2. 0.50727
You should still have the core version listed under policy and I believe that is what you were seeking.
John
\SOFTWARE\Microsoft\.NETFr
and
\SOFTWARE\Microsoft\.NETFr
and
\SOFTWARE\Microsoft\.NETFr
You should still have the core version listed under policy and I believe that is what you were seeking.
John