Last post Nov 18, 2009 06:48 AM by anil_marar
Apr 01, 2009 06:47 AM|amita.deo|LINK
I have a setup project which gives me a .msi file
When I try to install this on a machine which already had installed its earlier version...it gives me an error and asks me to remove it from Add/Remove programs.
I have enabled the RemovePreviousVersions to RemovePreviousVersions=true
What should i do, so that the installer either repairs or uninstalls and reinstalls it automatically?
Apr 06, 2009 12:13 AM|Thomas Sun – MSFT|LINK
The installer checks UpgradeCode and ProductCode properties to determine whether the earlier version should be removed. The
UpgradeCode must be the same for both versions; the ProductCode must be different.
For more information, see
I look forward to receiving your test results.
Apr 15, 2009 02:07 AM|amita.deo|LINK
Thanks for the solution...it worked out.
Aug 27, 2009 10:01 PM|mpls2000|LINK
I tried. It did install without promting to remove the previous version.
But when I go back to Control Panel->Add/Remove Programs, I see multiple version of my application are shown there. That is to say, the old versions are still in my PC?
I am using Visual Studio 2005. I did set in my Installer project properties that RemovePreviousVerison to true and increment the version (and change the product code).
Please let me know what went wrong. thanks
Nov 17, 2009 11:46 PM|anil_marar|LINK
I also have an issue with msi installer related to the above post.
Somehow I have messed up with the product code and upgrade code in my installer project.
Now I need to make a new setup. I have copied the upgrade code of my previous setup and made a new setup.
But, after the installation I could see two installations in the control panel. Can anybody help me to resolve this issue?
Nov 18, 2009 06:48 AM|anil_marar|LINK
Hi I have a solution now!!
What I have done is , I have extracted the Productcode and Upgradecode from my previous msi file and updated the same in the setup project. Then, I incremented the version property and made a new setup. It worked !!
Thanks everybody !!