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

Test if .NET is installed

What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app we're
distributing.

Test for existence of a directory under %WINDIR%?

Jul 21 '05 #1
9 15822
Theres a bunch of information below on how to do it - I never wrote it and I
cant recall who did, but credit to them. Best tip is probably the uninstall
registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the Framework
are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433
57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in
the windows\microsoft.net\framework..but checking it from the Registry is
more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app we're distributing.

Test for existence of a directory under %WINDIR%?

Jul 21 '05 #2
Michael A. Covington wrote:
What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app
we're distributing.

Test for existence of a directory under %WINDIR%?


How about running csc --version
Jul 21 '05 #3
Many thanks!

Jul 21 '05 #4
Just a quick question, if you are going to give him a program to test if he
has the .NET system wont he need the .NET system to run the test application
anyway? I'm looking into the distriution of .NET applications and trying to
see which files need to be distributed and when. Thanks for the info
"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Theres a bunch of information below on how to do it - I never wrote it and
I
cant recall who did, but credit to them. Best tip is probably the
uninstall
registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the Framework
are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433
57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in
the windows\microsoft.net\framework..but checking it from the Registry is
more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app

we're
distributing.

Test for existence of a directory under %WINDIR%?


Jul 21 '05 #5

"David Pendrey" <fa*******@dodo.com.au> wrote in message
news:42******@news.comindico.com.au...
Just a quick question, if you are going to give him a program to test if
he has the .NET system wont he need the .NET system to run the test
application anyway? I'm looking into the distriution of .NET applications
and trying to see which files need to be distributed and when. Thanks for
the info


Obviously, the program to perform the test will have to be written in a
non-.NET framework. If I proceed with this, I'll probably use Delphi.
Jul 21 '05 #6
Take a look at the "Stand Alone EXE" thread.

Thinstall is really what you need.

Jim Hubbard

"David Pendrey" <fa*******@dodo.com.au> wrote in message
news:42******@news.comindico.com.au...
Just a quick question, if you are going to give him a program to test if
he has the .NET system wont he need the .NET system to run the test
application anyway? I'm looking into the distriution of .NET applications
and trying to see which files need to be distributed and when. Thanks for
the info
"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Theres a bunch of information below on how to do it - I never wrote it
and I
cant recall who did, but credit to them. Best tip is probably the
uninstall
registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the
Framework
are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433
57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in
the windows\microsoft.net\framework..but checking it from the Registry is
more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app

we're
distributing.

Test for existence of a directory under %WINDIR%?



Jul 21 '05 #7
Hi John,

I am developing a set up programm for my web application using
InstalledShield. Before set up starts, I want to check if .net framework
installed or not? So how can I check this from my installedshied script?

Plz guide me.

"John Timney (ASP.NET MVP)" wrote:
Theres a bunch of information below on how to do it - I never wrote it and I
cant recall who did, but credit to them. Best tip is probably the uninstall
registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the Framework
are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433
57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in
the windows\microsoft.net\framework..but checking it from the Registry is
more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
What is the best way to test whether .NET 1.1 is installed on someone's
machine? I'd like to give him a small program to run to test this, and
based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app

we're
distributing.

Test for existence of a directory under %WINDIR%?


Jul 21 '05 #8
I have no idea unfortunately. I'm sure it has facilities that allow you to
evaluate certain criteria for an install, I would check with their site.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Shailesh" <Sh******@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
Hi John,

I am developing a set up programm for my web application using
InstalledShield. Before set up starts, I want to check if .net framework
installed or not? So how can I check this from my installedshied script?

Plz guide me.

"John Timney (ASP.NET MVP)" wrote:
Theres a bunch of information below on how to do it - I never wrote it and I cant recall who did, but credit to them. Best tip is probably the uninstall registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the Framework are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433 57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in the windows\microsoft.net\framework..but checking it from the Registry is more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
What is the best way to test whether .NET 1.1 is installed on someone's machine? I'd like to give him a small program to run to test this, and based on the answer, he'll download either the big version (with
dotnetfx.exe) or the small version of the install package for the app

we're
distributing.

Test for existence of a directory under %WINDIR%?


Jul 21 '05 #9
let me know as soon as u get any idea about this.

"John Timney (ASP.NET MVP)" wrote:
I have no idea unfortunately. I'm sure it has facilities that allow you to
evaluate certain criteria for an install, I would check with their site.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Shailesh" <Sh******@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
Hi John,

I am developing a set up programm for my web application using
InstalledShield. Before set up starts, I want to check if .net framework
installed or not? So how can I check this from my installedshied script?

Plz guide me.

"John Timney (ASP.NET MVP)" wrote:
Theres a bunch of information below on how to do it - I never wrote it and I cant recall who did, but credit to them. Best tip is probably the uninstall registry setting, as thats the most lieky indicator that the framework
runtime is actually still installed.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

There are lot of ways you can check for .NET framework installation.

The registry actually contains this information. It is located somewhere
like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v1.1.4322\1033

The .NET Framework 1.0 is version 1.0.3705
The .NET Framework 1.1 is version 1.1.4322

1033 means English, so you can also check which languages of the Framework are also present on the machine.

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{B433 57AA-3A6D-4D94-B56E-43C44D09E548}

I suppose you can check the subkeys under
HKLM\Software\Microsoft\.NETFramework or
HKLM\Software\Microsoft\ASP.NET
registry key. There should be seperate subkeys for each version.

Also check this links

HOW TO: Detect Which Version of the .NET Framework Is Installed in a
Deployment Package
http://support.microsoft.com/?id=315291

http://support.microsoft.com/default...5BLN%5D;315291

http://www.microsoft.com/indonesia/m...otstrapper.asp

Also you can check for the .NET framework installation folder presence in the windows\microsoft.net\framework..but checking it from the Registry is more accurate.

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:us****************@TK2MSFTNGP12.phx.gbl...
> What is the best way to test whether .NET 1.1 is installed on someone's > machine? I'd like to give him a small program to run to test this, and > based on the answer, he'll download either the big version (with
> dotnetfx.exe) or the small version of the install package for the app
we're
> distributing.
>
> Test for existence of a directory under %WINDIR%?
>
>
>


Jul 21 '05 #10

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

Similar topics

3
by: Vik Rubenfeld | last post by:
I'm a newbie to Apache. This week I installed my first Apache 2.0 server, and it's working fine. I then installed PHP. When I ran the PHP test file ("test.php"), the actual text contents of the...
1
by: Rahul Apte | last post by:
How do I programmatically check whether ASP and Server Side Includes sub-components of the World Wide Web service are installed on a Windows 2003 Box? I want to do these checks as pre-install...
29
by: DraguVaso | last post by:
Hi, I'm having this error in a VB.NET-application at the moment that I attempt to read data from an SQL Server: The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data...
1
by: Mansi | last post by:
I'm trying to automate excel from visual c#. One thing I need to be able to test is if excel is even installed on the target machine and what version of excel is installed on the target machine. ...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
9
by: Michael A. Covington | last post by:
What is the best way to test whether .NET 1.1 is installed on someone's machine? I'd like to give him a small program to run to test this, and based on the answer, he'll download either the big...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
7
by: ray well | last post by:
how can i test during install time if the .NET Framework 2.0 has been installed. i'm assuming it is in the registry somewhere, but i don't know where to look, what to look for, and how to test for...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.