本文介绍了安装程序无法处理较新的可再发行组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在向客户分发Excel加载项。我正在使用标准的Visual Studio 2010安装项目进行部署(而非clickOnce)。突然,安装程序无法在以前工作的计算机(Win7 64位)上运行。



症状:带有以下消息的消息框:

请解决以下问题:Microsoft Visual C ++ 2010的更新版本已在此计算机上检测到可再发行组件。"

继续按钮已禁用,只能关闭取消安装的消息框。



观察1:控制面板\所有控制面板项目\程序和功能显示最近安装了以下内容:

Microsoft Visual C ++ 2010 x86可再发行组件 - 10.0.40219



观察2:安装在另一台计算机(Win7 64bit)上运行正常,其中相同的可再分配版本为10.0.30319。



结论:如果目标具有较新的可再发行组件,则无法安装安装程序。



问题1:假设可再发行组件向后兼容,如何进行安装程序接受较新的可归属项?



问题2,假设是回答问题1是否定的:如何将安装程序升级到较新的可再发行组件?

I'm distributing an Excel add-in to customers. I'm using a standard Visual Studio 2010 setup project for deployment (not clickOnce). Suddenly the setup program doesn't work on a computer (Win7 64bit) where it used to work.

Symptom: Message-box with following message:
Please resolve the following: A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on this machine."
Continue-button is disabled, can only Close the message-box which cancels the install.

Observation 1: Control Panel\All Control Panel Items\Programs and Features shows that the following has recently been installed:
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219

Observation 2: The install works fine on a different computer (Win7 64bit) where the same redistributible has version 10.0.30319.

Conclusion: The setup program cannot install if the target has a newer redistributable.

Question 1: Assuming that redistributables are backwards compatible, how do I make the setup program accept newer restributables?

Question 2, assuming that the answer to question 1 is negative: How do I upgrade the setup program to the newer redistributable?

推荐答案

您可以在"C:\Program Files(x86)\中继续引用此操作Microsoft SDKs\\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\Product.xml"文件。

You can reference this proceed in the "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\Product.xml" file.

在vcredist_x86 \ Product.xml中添加此检查功能以实现您的请求。

Add this check function in the vcredist_x86\Product.xml to implement your request.


这篇关于安装程序无法处理较新的可再发行组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 13:25