How to make an installer for my C# application?

Add a new install project to your solution. Add targets from all projects you want to be installed. Configure pre-requirements and choose “Check for .NET 3.5 and SQL Express” option. Choose the location from where missing components must be installed. Configure your installer settings – company name, version, copyright, etc. Build and go!

How to properly exit a C# application?

From MSDN: Application.Exit Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed. This is the code to use if you are have called Application.Run (WinForms applications), this method stops all running message loops on all threads and closes all windows of the application. Environment.Exit … Read more