• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
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.