获取程序的exe位置

编程入门 行业动态 更新时间:2024-10-20 16:38:26
本文介绍了获取程序的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位置

本文发布于:2023-11-10 02:33:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574093.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位置   程序   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!