Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
chloroform

Checking for .NET framework ....

6 posts in this topic

I was wondering if there was a way to make an installer for C# applications that would check and see if the .NET framework was installed, and installs if it's not present? Also, can the framework be installed on earlier versions of Windows (before 2k)? Thanks :).

0

Share this post


Link to post
Share on other sites

I'm no good with programming, but it should be possible to check the existance of .NET Framework by programming your installer to check in:

Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322

Folder: %systemroot%\Microsoft.NET\Framework\v1.1.4322

0

Share this post


Link to post
Share on other sites

yeah that be right aaron i think.. as for installing on other OS's, i think its possible to install on older windows, but probably only as far as 2000

0

Share this post


Link to post
Share on other sites

So I can check for the .NET framework. I'm gussing I can write a batch file that checks the registry and installs the needed files if the framework is absent, and then launches my C# application?

0

Share this post


Link to post
Share on other sites

i guess you could, all i'd actually suggest is when u run your program, if it cant find the Latest .NET framework registry key or keys, make it popup with a message box "Unable to continue without .Net Framework" and make it kill the app.

0

Share this post


Link to post
Share on other sites

Or ask the user if he wants to go ahead and install the framework. I'll try that, thanks :).

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.