Hey guys,
Whats the easiest to check if the client has the Dot Net framework installed on their pc via C Sharp code?
This is a discussion on Dot Net Question within the C# Programming forums, part of the General Programming Boards category; Hey guys, Whats the easiest to check if the client has the Dot Net framework installed on their pc via ...
Hey guys,
Whats the easiest to check if the client has the Dot Net framework installed on their pc via C Sharp code?
If the .NET Framework isn't installed, your C# code won't run.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Thank you for your response. Ok so what would be the best way to do this then? I have an app that requires the .NET 2.0 be installed before it runs.
You could check the registry entries to see the installed .NET version, some info here:
http://support.microsoft.com/default...5BLN%5D;315291
Then maybe have a plain C++ program to validate .NET and, if present, launch your real .NET program?
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
You could use an installer to do that. If you have a Standard of Professional edition of Visual Studio, it will be a cinch.
Otherwise, you can use a free installer and a script or a plain C/C++ app to check if it's installed.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Thank you both for your replies! Much appreciated!