Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
chloroform

Checking for .NET framework ....

Recommended Posts

chloroform    0

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 :).

Share this post


Link to post
Share on other sites
Aaron    0

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

Share this post


Link to post
Share on other sites
Doggie    0

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

Share this post


Link to post
Share on other sites
chloroform    0

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?

Share this post


Link to post
Share on other sites
Doggie    0

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×