laasunde
August 16th, 2007, 04:12 AM
How can I check if .NET 2.0 is installed on a computer? Would checking if %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 exists be sufficient?
|
Click to See Complete Forum and Search --> : Check .NET 2.0 installed laasunde August 16th, 2007, 04:12 AM How can I check if .NET 2.0 is installed on a computer? Would checking if %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 exists be sufficient? Shuja Ali August 16th, 2007, 04:33 AM This is just one way of checking. But a proper way would be to look in the registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy]. This key will give you details of each framework. The million dollar question would be, how are you planning to check which version is installed. What language are you going to use. A C++ 6.0 implementation is present in this article http://www.codeproject.com/cpp/DotNetTester.asp laasunde August 17th, 2007, 01:16 AM Thanks for the reply. Considered just using a simple script to check the version; if not exist %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 dotnetfx.exe However if I need to read from the registry I might need to re-think my plan. gnarlydude November 13th, 2007, 10:12 AM I am using NSIS (http://nsis.sourceforge.net/) to create my installation file, and it has way to find what .Net version is installed (http://nsis.sourceforge.net/Get_.NET_Version), if any. lovesafron November 25th, 2007, 01:15 AM Better to check from registry and also most cases from pc performance you also can judge as it is known to slower speed..... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |