如何检测哪个VS 2010 Edition或SKU [英] how to detect which VS 2010 Edition or SKU

查看:72
本文介绍了如何检测哪个VS 2010 Edition或SKU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个要求,前提是必须具备VS 2010 Ultimate或VS 2010 Test Professional.使用WIX,我们可以检测到安装了哪个版本的VS2010?
我发现的一件事是,如果安装了VS2010,则在Windows注册表中,我们有此键
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Ultimate - ENU"
同样,如果安装了VS 2010 Professional,我们将提供
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Professional - ENU"

这是查找的唯一方法,还是找到安装哪个版本的VS2010的更好方法?

预先感谢,
Kiran

Hello all,
I have an requirement, for which VS 2010 Ultimate or VS 2010 Test professional is a pre-requisite. Using WIX can we detect which edition of VS2010 is installed?
One thing I found is in windows registry if VS2010 is installed we have this key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Ultimate - ENU"
Similarly if VS 2010 professional is installed we have
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Professional - ENU"

Is this the only way to find or is there any better way of finding which edition of VS2010 is installed

Thanks in advance,
Kiran

推荐答案

我更倾向于使用AppSearch并找到vs2010每种口味的组件guid.
I''d be more inclined to use AppSearch and find the component guid for each flavour of vs2010


这篇关于如何检测哪个VS 2010 Edition或SKU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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