PRB: Error Message When You Reinstall a Web Setup Project (316144)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft .NET Framework SDK 1.0

This article was previously published under Q316144

SYMPTOMS

When you rebuild the setup project for a Web project, and then you try to reinstall it on the client computer, on which that Web project was installed before, you receive the following error message:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
If you have selected the Web bootstrapper option, you receive the following error message instead:
An error occurred installing the package. Windows Installer returned '1638'.

CAUSE

This behavior occurs because you must change the Version property of the setup project when you rebuilt the project.

RESOLUTION

To resolve this problem, before you rebuild the project, follow these steps:
  1. On the Properties tab of the setup project, change the Version property to a later (higher) version number. If prompted, click Yes to accept the recommendation.
  2. Rebuild the setup project.
You may also resolve this problem by doing one of the following:
  • Run the install again on the first package. Select to remove the original program.

    -or-
  • Use any Windows Installer authoring tool to change the version number property in the Property table.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Create a new Web Setup Project from the Setup and Deployment Projects group.
  2. Add a new Empty Web Project from either the Visual C# Projects or the Visual Basic Projects group.
  3. Right-click the setup project, and then click Properties.
  4. Turn on the Web bootstrapper option in the Build dialog box for the setup project, and then set the Setup folder URL property to a folder in InetPub.
  5. Build the setup project, and then copy the .msi file to the Web location specified in step 2.
  6. Locate and then run Setup.exe on the client computer.
  7. Rebuild the setup project on the development computer.
  8. Run Setup.exe again from the same client computer.

Modification Type:MajorLast Reviewed:1/30/2003
Keywords:kbprb KB316144