PRB: Error Message When You Install a Setup Generated by .NET Deployment: Error Installing Component (315914)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition

This article was previously published under Q315914

SYMPTOMS

If you create a setup project with the Dotnetfxredist_x86_enu.msm file, and then you install, uninstall, and then attempt to reinstall your .msi package, you may receive the following error message:
Error installing component
This behavior occurs on computers on which the .NET Framework was not previously installed.

CAUSE

This behavior can occur if the Dotnetfxredist_x86_enu.msm file is included in the deployment project.

RESOLUTION

To resolve this issue, do not include the Dotnetfxredist_x86_enu.msm file in the deployment project. Rather, redistribute the framework through a bootstrapper method. Microsoft provides a sample bootstrapper and instructions that can be used for this purpose. In this way, you run the .msi file by invoking the Setup.exe bootstrapper rather than by running the .msi file directly.

For more information about the bootstrapper and how to redistribute the .NET framework, browse to the following MSDN Web site:

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Use a tool such as Orca.exe to merge the Dotnetfxredist_x86_enu merge module into your .msi package.
  2. Save and close your .msi file.
  3. Install your .msi file, and then uninstall it.

    When you attempt to reinstall your .msi package, you receive an error message similar to that described in the "Symptoms" section of this article.

REFERENCES

For information about how to deploy .NET applications, browse to the following MSDN Web site:

Modification Type:MajorLast Reviewed:1/29/2002
Keywords:kbDSupport kbprb KB315914