我有一个用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.
是的,完全正确-您安装了相同的产品(相同的升级代码),但来自较早的版本。您需要卸载"新"版本