|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Creating Installation Components - High-Level Process
These are the overall steps in creating and testing an installation component for one of your resource-dependent components. See the procedures referenced in this section for more details on each step.
To create an installation component
- For each component in your application that needs a system resource installed during deployment, add an installation component to your application. For details, see Adding Installation Components to Your Projects.
- In the ProjectInstaller class for your project, customize any properties or methods for which you want to override the defaults. For details, see Configuring Installation Components or Overriding Default Methods on Installation Components.
Note If you are working in the Microsoft .NET Framework SDK, you must instantiate the component installers in the constructor for the ProjectInstaller class and add them to the list of components to install.
- Save and compile your application project.
- Create the deployment project for your project, and add your project's DLL to the Custom Action Editor. For details, see Custom Actions Management in Deployment.
- Save and compile your deployment project.
- Deploy the project to the destination computer, and verify that your resource was created correctly. For details, see Deploying Applications and Components.
Note You can also use the Microsoft Visual Studio .NET tool installutil.exe to deploy the installation of the DLL you created in step 3, rather than creating and testing the deployment package.