Creating and Deploying the Installation Components

Many of your components will make use of additional resources, such as performance counters, event logs, or databases. When you deploy your application, it is important that these additional resources are included in the final installation component. This is accomplished by including an instance of the Installer class in your setup project.

The Installer class derives from the System.Configuration.Install.Installer class and includes the following methods:

  • Commit method— Use this method to write the code that needs to be executed after successful installation.

  • Install method— Use this method to write the code that needs to be executed during the application's installation.

  • Rollback method—

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.