.Net Application crash when .net framework is not installed

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

How can I show a dialog to the user to indicate the .net framework is not
installed?

thank you
 
You can create a setup package for your project. When a user tries to
install it, he will be notified to install the framework first.
 
thank you...I know it...

but I'd still like to know if there's any 'offical' way to display a dialog
in case .net framework is not installed..

as it may happens like:
- user install the msi (.net framework + my program)
- user uninstall the .net framework
- user run my program..

it is undesirable to see a program crash in any situration....giving our
error message is definitely a better way to do it..

or should I write a win32 application which check if the .net framework is
installed and the call createprocess to invoke the .net application?

thank you very much!
 
Have your application get kicked off by a batch file or vbscript that first
checks for the existance of necessary files, this could even check for the
proper versions of the framework.

Mitch Ruebush
Microsoft Regional Director -
http://www.microsoftregionaldirectors.com
Visual Developer - .NET MVP -
Architect | Evangelist | Teacher
Online Consulting, Inc. - http://www.onlc.com
MCSD, MCAD, MCDBA, MCSE, MCT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top