无法安装,因为已安装此产品的较新版本

时间:2011-04-22 08:14:16

标签: visual-studio windows-installer setup-project

我有一个用VS2010编写的安装项目。用户启动包,填写所有表单,进入最后一个“安装”按钮,单击它并获得“无法安装,因为已安装此产品的较新版本”。 。这很奇怪,因为在显示任何对话框表单之前,安装程序包始终会警告已安装的版本。导致此错误的可能原因是什么? 这可能是因为有另一个产品安装了相同的升级代码,但产品代码不同? 日志如下:

Action 10:03:20: AppSearch. Searching for installed applications
Action start 10:03:20: AppSearch.
Action ended 10:03:20: AppSearch. Return value 0.
Action 10:03:20: FindRelatedProducts. Searching for related applications
Action start 10:03:20: FindRelatedProducts.
Action ended 10:03:20: FindRelatedProducts. Return value 0.
Action 10:03:20: ERRCA_CANCELNEWERVERSION. 
Action start 10:03:20: ERRCA_CANCELNEWERVERSION.
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
Unable to install because a newer version of this product is already installed.
MSI (s) (E8:B4) [10:03:27:248]: Product: Contact Manager -- Unable to install because a newer version of this product is already installed.
Action ended 10:03:27: ERRCA_CANCELNEWERVERSION. Return value 3.
Action ended 10:03:27: INSTALL. Return value 3.

1 个答案:

答案 0 :(得分:0)

是的,确切地说 - 您安装了相同的产品(相同的升级代码),但是从早期版本开始。您需要卸载“较新”版本。