Export (0) Print
Expand All

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

  1. 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.
  2. 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.
  3. Save and compile your application project.
  4. 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.
  5. Save and compile your deployment project.
  6. 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.

See Also

Adding Installation Components to Your Projects | Configuring Installation Components | Overriding Default Methods on Installation Components

Show:
© 2014 Microsoft