Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Installation Process

When you create installation components for your Framework Services components, a default class called ProjectInstaller is created in your project. This file contains all of the installation components you create for that project. The following figure shows this process.

Installation Components and Project

he7xdcc7.vbinstallationcomponents(en-us,VS.71).gif

After you create an installation component and its associated ProjectInstaller class for your project, you compile the project into a DLL or EXE. You then can do one of two things:

  • You can use the installutil.exe tool to install that DLL on your local computer.
  • You can create a deployment package for your application and add your project's DLL to it as a custom action. When deployment occurs, the deployment project recognizes that it needs to run the ProjectInstaller class, and it launches the installation process for your component resources.

Resource installation is transactional. That is, the installation processes through each installer in your ProjectInstaller class (or any class with the RunInstallerAttribute value set to true) and makes sure that no errors occur before committing the installation as final. If any errors occur along the way, all of the resources that have previously been installed are uninstalled in a rollback transaction. Rollback is performed in the reverse order of install. The following figure shows this process.

Installation Process

he7xdcc7.vbinstallationcomponentprocess(en-us,VS.71).gif

In this picture, the ProjectInstaller class is installing two component resources — a message queue and an event log. The message queue installation succeeds without error, so processing is passed on to the event log installation. An error is encountered in this log, so a rollback begins. During the rollback, the message queue is uninstalled and the system is returned to its original state. For more information on how the Rollback method works, see State Storage in the Installation Process.

For a list of the overall steps in creating and testing an installation component, see Creating Installation Components - High-Level Process.

See Also

Introduction to Installation Components | State Storage in the Installation Process | Creating Installation Components - High-Level Process

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.