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?
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.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
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).
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 !!
Member
26 Points
29 Posts
Installer doesnot uninstall previous version
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?
Please help.
Regards
Amita.
All-Star
54877 Points
5589 Posts
Re: Installer doesnot uninstall previous version
Apr 06, 2009 12:13 AM|Thomas Sun – MSFT|LINK
Hi,
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 http://msdn.microsoft.com/en-us/library/y63fxdw6%28VS.80%29.aspx
I look forward to receiving your test results.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Member
26 Points
29 Posts
Re: Installer doesnot uninstall previous version
Apr 15, 2009 02:07 AM|amita.deo|LINK
Hi Thomas
Thanks for the solution...it worked out.
Regards
Amita
None
0 Points
2 Posts
Re: Installer doesnot uninstall previous version
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
None
0 Points
3 Posts
Re: Installer doesnot uninstall previous version
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?
upgrade code two installation product code multiple installations msi build
None
0 Points
3 Posts
Re: Installer doesnot uninstall previous version
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 !!
Anil Marar