Microsoft KB Archive/315914

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

Article ID: 315914

Article Last Modified on 3/14/2007

-

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:

http://msdn2.microsoft.com/en-us/library/ms994395.aspx



STATUS
This behavior is by design.



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 &quot;Symptoms&quot; section of this article.

