获取程序的exe位置 [英] Get exe location for a program

查看:75
本文介绍了获取程序的exe位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种标准的方法来获取Windows上已安装程序及其EXE文件位置的列表?

我更喜欢用C#.

我可以从注册表的卸载"键中获取程序列表.
(HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall)

但是它还包含所有驱动程序组件,一些服务.etc,并且提供了卸载程序的位置(或指向MsiExec的链接),而不是主exe位置.

WMI吗?

Is there a standard way of getting a list of installed programs and their EXE file locations on Windows ?

I prefer in C#.

I can get a list of program from "Uninstall" key from Registry.
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall)

But it also contains all the driver components, some services .etc and it gives the un-installer''s location (or a link to MsiExec), not the main exe location.

WMI ?

推荐答案

您可以看到此链接

点击

点击
You can see this links

Click

Click


要获取具有完整安装路径的已安装软件列表,您可以导航给定的链接以获取完整的解决方案

获取已安装软件的列表,以及该软件的安装路径(如果已知) [
To Get a list of Installed Software with its complete installed path you can navigate given Link for a complete Solution

Gets a list of installed software and, if known, the software''s install path[^]
All steps are mention there to use code with valuable comments.
Hope it will works for you. :)


我认为在Windows中这是不可能的,因为许多已安装的应用程序包含多个可执行文件.
I don''t think this is possible in Windows, since a lot of Installed Applications consist of more than one executable.


这篇关于获取程序的exe位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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