How to check .net framework version installed programatically?
Hi, i want to check the .net framework version of the target system, if it doesn't meet 3.X then i wil l start the re-distributable .net framework package. Please don't suggest .net codes to check it. Because to execute the .net application, i am going to check the framework. Then the code to check is in .net means, how it works. So, I need the code in c language or in terms of Batch file. Please Help me!
Thanks in advance
Lalit MPosted Dec 14, 2009, 2:35 AM
more info:
if you want to in C# Code
kannanPosted Dec 15, 2009, 12:11 AM
Sam HobbsPosted Dec 14, 2009, 2:06 PM
Kirtan PatelPosted Dec 14, 2009, 6:20 AM
Here is your Solution .
if my answer helps you then check "Do you like this answer" check box please :)
you don't have to check it programatically because the Setup of your Program will do it for you . :)when you create Setup Project in visual Studio Just Add .net framework 3.5 as Dependency . and Build Setup now. when you run the setup setup will check if .net framework is there in system or not if it not find then it will install it automatically :) . you can create this type of setup by creating Setup Project .
Step 1:
In visual Studio >> File >> new >>Project >> Other Project Types >> Setup and deployment >>Setup Project .
Step 2 :
Add the exe(s) and other files in Application Folder of SetupProject
Step 3:
Now in Solution Explorer Right Click your Project >> Properties
Click Prerequisites Button and Check the packages you want to automatically installed if not present on system .
Step 4 :
Build the Project .
Step 5 :
you will get Setup :) thats it :)