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
"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
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 >
> |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