Need help with a deployment.
I would like to first say thank-you in advance for any help you may provide here.
I am not sure if this is the proper location to post this but...
How do I get the MSinstaller to remove a previous version of an application and install the latest version without adding additional application listings in the registry?
The project details are below.
Using Visual Studio 2005 I am working with a C# non web solution using the single solution model, the solution has multiple project components that are ultimatly built into an msi file that utilizes a bootstrapper setup.exe with dependencies of .Net and SQL Server 2005 Express.
Below are the Properties settings for the deployment.
Setup:Deployment Project Properties | |
AddRemoveProgramsIcon | (None) |
Author | Company |
Description | The Project |
DetectNewerInstalledVersion | TRUE |
InstallAllUsers | TRUE |
Keywords | Blah… |
Localization | English (US) |
Manufacturer | Company |
ManufacturerUrl | www. |
PostBuildEvent | |
PreBuildEvent | |
ProductCode | {TheProductCode} |
ProductName | Product |
RemovePreviousVersions | TRUE |
RunPostBuildEvent | On successful build |
SearchPath | |
Subject | Product |
SupportPhone | |
SupportUrl | www. |
TargetPlatform | x86 |
Title | The Project |
UpgradeCode | {TheUpgradeCode} |
Version | 0.1.0002 |
Todate, I have been manually incrementing the program component versions manually and not incrementing the installer's version number. Which left its Product code and version number unchanged. All of the previous installations installed fine but required we use the Control Panel (Add & Remove Programs) to remove the previous installation before installing the latest revision.
Before I built the most recent revision I wanted to address this and make sure that the installer removed the previous installation (version 0.1.0001) and installed the latest (version 0.1.0002).
So after a bit of reading and searches I concluded that I needed to increase the installers version number and also change the Product Code. I did both of these and left the UpgradeCode untouched. I proceeded to build the project successfully.
I was concerned that making this change to the product code might add a seond listing of the application in the registry.
I installed the project running the bootstrapper setup.exe to a successful completion. I went to control panel (Add & Remove Programs) to check if there was an extra listing for it and found there was.
How do I keep this from happening?
Again, thank-you in advance for any help on this.

