WIX检查是否已安装VS2015 C ++可再发行组件 [英] WIX check if VS2015 C++ redistributable is installed

查看:207
本文介绍了WIX检查是否已安装VS2015 C ++可再发行组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否安装了实际的C ++可再发行软件包,是否有人知道如何检入WIX项目?此链接描述了服务器产品ID,但是它们有问题.随着C ++ redist软件包的每次更新,它们都会更改.基于此,每次发布新的VC redist软件包更新时,我都必须在WIX项目中进行检查,这不是可用的解决方案.

Does anybody know how to check in a WIX project, if the actuall C++ redistributable package is installed or not? This link describes the serveral product IDs, but there is a problem with them. They change with every update of a C++ redist package. Based on that I've to apapt my checks in the WIX project every time a new VC redist package update is released, which is not a useable solution.

我想使用RegistrySearch WIX元素解决此问题.因此,我需要知道一个注册表项,如果安装了更新版本的C ++ redist软件包,则该注册表项不会更改.我还检查了 link ,但似乎没有一个人可靠.

I want to use the RegistrySearch WIX element to solve this problem. Therefore I need to know a registry key that doesn't change if a newer version of a C++ redist package is installed. I've also checked the registry key described in this link, but no one seems to be reliable.

推荐答案

Visual Studio 2013/2015将添加其他注册表项:

Visual Studio 2013/2015 will add additional registry keys:

Hive: HKEY_LOCAL_MACHINE\SOFTWARE\classes\installer\Dependencies


Name                           Property
----                           --------
Microsoft.VS.VC_RuntimeAdditio Version     : 12.0.21005
nalVSU_amd64,v12               (default)   : {929FBD26-9020-399B-9A7A-751D61F0B942}
                               DisplayName : Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.21005
Microsoft.VS.VC_RuntimeAdditio Version     : 14.0.23026
nalVSU_amd64,v14               (default)   : {BC958BD2-5DAC-3862-BB1A-C1BE0790438D}
                               DisplayName : Microsoft Visual C++ 2015 x64 Additional Runtime - 14.0.23026

它们还包括像Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v12这样的键.这些密钥将指向当前安装的redist软件包,并且在安装redist软件包时将被删除/添加.

They also include keys like Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v12. These keys will point to the currently installed redist packages, and will be removed/added when you install a redist package.

这篇关于WIX检查是否已安装VS2015 C ++可再发行组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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