Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 10 Jun 2006 09:05:34 +0530,    group: microsoft.public.dotnet.faqs        back       


How to know if .Net framework is installed on the machine?   
I am a newbie to .Net environment. I am writing a small network program in
C#. How can I make sure that the end user machine has .Net framework?
Because if it doesn't my program probably won't even run.

Thanks
Kumar
date: Sat, 10 Jun 2006 09:05:34 +0530   author:   Kumar Bhogaraju

Re: How to know if .Net framework is installed on the machine?   
"Kumar Bhogaraju"  a crit dans le message de news: 
C0B03BDE.486%kumar@unosofttech.com...

|I am a newbie to .Net environment. I am writing a small network program in
| C#. How can I make sure that the end user machine has .Net framework?
| Because if it doesn't my program probably won't even run.

If you mean, can your program detect whether the framework is installed, 
then you would need to have a "bootstrap" program written for Win32 without 
..NET that checks for the framework and then launches your real .NET program.

Otherwise your .NET only program would not even run to check for the 
framework, because the framework isn't there.

I suppose the ultimate check is, if it doesn't run, the framework isn't 
installed :-))

Joanna

-- 
Joanna Carter [TeamB]
Consultant Software Engineer
date: Sat, 10 Jun 2006 08:16:53 +0100   author:   Joanna Carter [TeamB]

Re: How to know if .Net framework is installed on the machine?   
The NET runtime installs a registry key, you can check it.

For example,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1

for version 1.1.

    -- Tom



"Kumar Bhogaraju"  wrote in message 
news:C0B03BDE.486%kumar@unosofttech.com...
>I am a newbie to .Net environment. I am writing a small network program in
> C#. How can I make sure that the end user machine has .Net framework?
> Because if it doesn't my program probably won't even run.
>
> Thanks
> Kumar
>
date: Sun, 11 Jun 2006 20:46:30 -0500   author:   Tom main

Re: How to know if .Net framework is installed on the machine?   
> |I am a newbie to .Net environment. I am writing a small network program 
> in
> | C#. How can I make sure that the end user machine has .Net framework?
> | Because if it doesn't my program probably won't even run.
>
> If you mean, can your program detect whether the framework is installed,
> then you would need to have a "bootstrap" program written for Win32 
> without
> .NET that checks for the framework and then launches your real .NET 
> program.

for more information, look at this example: 
http://msdn2.microsoft.com/en-us/library/ydh6b3yb.aspx
date: Mon, 12 Jun 2006 21:21:46 +0300   author:   Roman

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us