Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Checking for .NET framework ....

- - - - -

  • Please log in to reply
5 replies to this topic

#1
chloroform

chloroform

    Newbie

  • Member
  • 14 posts
  • Joined 23-March 04
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 :).


How to remove advertisement from MSFN

#2
Aaron

Aaron

    The MSFN Banana

  • Patrons
  • 5,767 posts
  • Joined 17-August 01
  • OS:Windows 7 x64
  • Country: Country Flag
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

#3
Doggie

Doggie

    I'm very inactive :(

  • Patrons
  • 2,676 posts
  • Joined 13-October 02
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

#4
chloroform

chloroform

    Newbie

  • Member
  • 14 posts
  • Joined 23-March 04
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?

#5
Doggie

Doggie

    I'm very inactive :(

  • Patrons
  • 2,676 posts
  • Joined 13-October 02
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.

#6
chloroform

chloroform

    Newbie

  • Member
  • 14 posts
  • Joined 23-March 04
Or ask the user if he wants to go ahead and install the framework. I'll try that, thanks :).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users