如何检查与C#安装一个程序, [英] How to check with C# where a program is installed

查看:83
本文介绍了如何检查与C#安装一个程序,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检查,其中程序由程序名(出现在添加或删除程序名)安装。什么是最好的方式,这样它会正常工作于所有语言。

I need to check where a program is installed by program name (name that appears in Add or Remove Programs). What is the best way to that so that it'd work fine for all languages.

推荐答案

看看进入注册表

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

只需遍历所有子项和看一看入值的显示名称 INSTALLLOCATION 。在这里你可以找到你想要的相关信息等等; - )

Just iterate over all subkeys and take a look into the values DisplayName and InstallLocation. Here you'll find the infos you want and much more ;-)

这篇关于如何检查与C#安装一个程序,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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