如何检测我是否需要安装VCRedist? [英] How to detect whether I need to install VCRedist?

查看:536
本文介绍了如何检测我是否需要安装VCRedist?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常类似于此问题的问题,但答案确实如此不适合我.

I have a question very similar to this one but the answer does not work for me.

我维护的安装程序取决于VC ++ 2008(确切地说是SP1),因此,如果尚未安装VCRedist,则需要找到一种解决方案. 我知道正确的方法是使用合并模块构建msi,但这不是我的手.

Software I am maintaining the setup for depends on VC++ 2008 (SP1, precisely), thus I need to find a solution to install VCRedist if not yet installed. I understand the correct way would be to build msi with merge modules, but it's not on my hands.

我所指的重复问题(被接受的问题)的答案对我不起作用,因为每个微小的发行版(例如9.0.30729.01与9.0.30729.17)都具有正确的GUID,我无法猜测或预测对于将来的版本.此外,我认为这不会检测到Visual Studio,因此在开发人员机器上已经安装了VCRedist程序包时就不必要地安装了它.我不想以此来打扰任何人,当然不是已经安装了DevStudio的人.

The answer of the duplicate question I am referring to (the accepted one) does not work for me because every tiny release (e.g. 9.0.30729.01 vs 9.0.30729.17) has proper GUIDs, which I am not able to guess or predict for future versions. Furthermore, I reckon that this would not detect Visual Studios and thus unnecessarily install the VCRedist Package when it's already on a developers machine. I do not want to bug anybody with this, certainly not somebody who has already a DevStudio installed.

现在,另一个答案是说我应该像$WINDIR\WinSxS\x86_Microsoft.VC80.CRT_一样查看WinSxs文件夹,但这(尚未)帮助我暗示SP1,或者此时我还缺少什么吗?在内部是否有带有内部和外部"版本号的表,所以我可以暗示某个次要版本号?

Now another answer says I should look in the WinSxs-folder like $WINDIR\WinSxS\x86_Microsoft.VC80.CRT_ but this does not (yet) help me to imply SP1, or is there anything I am missing at this point ? Is there a table somewhere with the internal and "external" version numbers, so I could imply a certain minor version number ?

我不敢相信Microsoft在这种情况下没有提供任何东西,但是现在搜索互联网已经太久了,这使我回到了很好的状态:)

I cannot believe that there is nothing provided by Microsoft for this scenario, but searching the interwebs for already far too long now brings me back to good ol' SO :)

推荐答案

您可以采用推荐的方法来安装DirectX:始终运行可再发行组件.由于它是必需的,并且您已经在发货,因此即使已安装它也不会对运行造成任何伤害.

You could take the recommended approach for installing directx: always run the redistributable. Since it's required and you're already shipping it there's no harm in running it even if it's already installed.

这篇关于如何检测我是否需要安装VCRedist?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆