views:

203

answers:

2

Hi All,

I have a msi created for a project which uses C# & Jscript. version-1.0 is currently public. I want to release a bug-fixed version v-1.0.1 of this package but while testing it, I am getting "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 program on the Control Panel".

I want this bug-fixed version to install silently without asking user to uninstall and install new one. Please help me how can I achieve this, I am using visual studio 2008.

Thanks in Advance!

Sam

Update: I have tried changing the package code but that creates two instances of the package using same working directory. Visual Studio geeks please help.

+1  A: 

You must specify the UpgradeCode and increment the ProductVersion to update a product. The UpgradeCode will remain the same for newer versions.

The UpgradeCode property indicates a family of related applications consisting of different versions and different language versions of the same product.

This article explains the ProductCode, ProductVersion and UpgradeCode:

http://msdn.microsoft.com/en-us/library/aa370837%28v=VS.85%29.aspx

fletcher
Following is what I have in my .vdproj file: "Name" = "8:Microsoft Visual Studio" "ProductCode" = "8:{8A3BC7ED-563E-42C1-ABEA-AAB14133E1AC}" "PackageCode" = "8:{24D081CF-EA46-4CA0-B3F7-D4DC60BC5FD8}" "UpgradeCode" = "8:{6F11B335-5F1E-4B4A-8565-6CCE50A8C599}"..."ProductVersion" = "8:0.0.26"When I change the ProductVersion to "8:0.0.27" and build the msi. I still get the same 'Another version of this package....' message. Please Help!
Sam
A: 

I would follow this process

In your main project

  • Increment your Assembly Version no.

In your Visual Studio Setup project

  • Set "Remove Previous Version" to true
  • Increment the Version No. (this will change the product code for you too)
Peter Kelly
Incremented the assembly version no [assembly: AssemblyVersion("1.0.3.7")][assembly: AssemblyFileVersion("1.0.3.7")]for the main component of the package. Set the "RemovePreviousVersion" to "8:TRUE"Changed the version number to "1.0.3.7" from "0.0.28"The problem still persists.
Sam