How To Check If The .Net Framework Is Installed [C# / WPF] -


before starting application (on form load) want check , ensure .net framework (3.5 or higher) installed on machine - if not want prompt user download , install (simple messagebox internet link microsoft webpage best idea no?) so, entails 2 questions...

a) how determine if .net framework 3.5 or higher installed? (i don't trust or want c:\program files\microsoft.net folder, seems error-prone no?) seeing crucial there must nice way in c# determine version of .net user has running on machine? have no clue how..

b) how paste internet link (hyperlink?) in messagebox? if user not have .net framework (1.1 or 2.0) installed can have them click on link go download it?

any help/hints appreciated.

thanks, din

a) have bootstrap program non .net language (c++, vb6, etc) instead of form_load (other posters correct - if framework isn't installed, .net program won't run). example here:

http://www.codeproject.com/kb/mcpp/dotnettester.aspx

b) can't put hyperlink in messagebox, have create own popup dialog (a form). edit: form / dialog have in bootstrap program.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -