<p>I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI was built with a Visual Studio 2008 Setup Project. I have tried setting the "Remove Previous Versions" property to both true and false, in an effort to just make newer versions overwrite the older install, but nothing has worked. At a previous company I know I did not have this problem with installers built by Wise and Advanced Installer. Is there a setting I am missing? Or is my desired functionality not supported by the VS 2008 Setup Project?</p>

[{'answer_id': 40623, 'author': 'McKenzieG1', 'author_id': 3776, 'author_profile': 'https://Stackoverflow.com/users/3776', 'pm_score': 4, 'selected': True, 'text': "<p>I have built numerous MSIs with VS 2005 Pro that do this correctly.</p>\n\n<p>Are you sure that the 'Version' property of the <strong>deployment project</strong> has been incremented? This property is independent of the version of the assemblies in the application, and this is the error message you will see if the Version property of the MSI is the same as it was for the one you are trying to overwrite.</p>\n"}, {'answer_id': 40624, 'author': 'Michael Pryor', 'author_id': 245, 'author_profile': 'https://Stackoverflow.com/users/245', 'pm_score': 3, 'selected': False, 'text': '<p>Increment the version number on your project.</p>\n\n<p>In VS, select the node for your setup app and hit F4 to view the properties.  Find the version field, and increment it.</p>\n'}, {'answer_id': 40685, 'author': 'Rob Bazinet', 'author_id': 2305, 'author_profile': 'https://Stackoverflow.com/users/2305', 'pm_score': 2, 'selected': False, 'text': '<p>You need to change the ProductCode between each version, if you don\'t do this you will get the behavior you are seeing.  The ProductCode is seen in the project properties.  Check out the <a href="http://msdn.microsoft.com/en-us/library/aafz9hx4.aspx" rel="nofollow noreferrer">MSDN Online Help for ProductCode</a> to understand better.</p>\n'}, {'answer_id': 2027354, 'author': 'Muleskinner', 'author_id': 246277, 'author_profile': 'https://Stackoverflow.com/users/246277', 'pm_score': 0, 'selected': False, 'text': '<p>Had the same problem when going from XP to Win7. To solve it I had to set DetectNewerInstalledVersion to False. Also, as mentioned by others, you need to inc the version of the setup project.</p>\n\n<p>Good luck.</p>\n'}, {'answer_id': 5730000, 'author': 'Marcel Toth', 'author_id': 702199, 'author_profile': 'https://Stackoverflow.com/users/702199', 'pm_score': 1, 'selected': False, 'text': '<p>This is little more complex:</p>\n\n<p>To automatically remove previous versions of installed application in Setup Project, it is needed to:</p>\n\n<ol>\n<li>Increment the <strong>Version</strong> property (e.g. from 1.0.0 to 1.0.1 ... also change on 3rd position works)\n<ul>\n<li><strong>Version</strong> is the property of installer project that identifies, which version of application is installed</li>\n</ul></li>\n<li>Change the <strong>ProductCode</strong> property, so installer knows that it is not the same installer executed twice\n<ul>\n<li><strong>ProductCode</strong> is the property of installer project, Visual Studio offers to automatically change it, when <strong>Version</strong> property is changed</li>\n</ul></li>\n<li>Keep the value of "UpgradeCode" property.\n<ul>\n<li><strong>UpgradeCode</strong> is also the property of installer project</li>\n<li>it needs to stay the same among entire "upgrade line", so installer knows what to upgrade</li>\n</ul></li>\n<li>If you also want to remove old application versions from Control Panel\'s list of software, set <strong>RemovePreviousVersions</strong> to true</li>\n</ol>\n'}]
['https://Stackoverflow.com/questions/40603', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3114/']