如何区分程序中的可执行文件和安装包? [英] How to distinguish a executable which is a installation package and a executable which is a free installation in my program?

查看:130
本文介绍了如何区分程序中的可执行文件和安装包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我吗?
如何区分程序中的可执行文件和安装包?

Please help me?
How to distinguish a executable which is a installation package and a executable which is a free installation in my program?

推荐答案

我假设您的意思是可以在以下目录中找到已安装的应用程序添加/删除程序和独立的可执行文件.

请查看以下文章,该文章解释了如何获取已安装的应用程序列表.除了名称之外,还有更多信息(如屏幕截图所示).您可以检查可执行文件是否在这些条目之一的目录之一中,以检查它是否是已安装的应用程序.

如何获取已安装应用程序的列表 [
http://msdn.microsoft.com/en-us/library/aa390887%28v = vs.85%29.aspx [ ^ ]

祝你好运!
I assume you mean installed applications that can be found in Add/Remove Programs and standalone executables.

Have a look at the following article that explains how to get a list of installed applications. There is more info then just the name (as shown in the screenshot). You can check if the executable is in one of the directories of one of those entries to check if it is an installed application.

How to get a list of installed applications[^]

It could be that the uninstall location in the registry isn''t the actual location of the application itself, so you have to keep that in mind. For windows installer support on this you could dive into the Installed Applications Classes. I don''t have any experience with that so cannot help you with this but maybe it isn''t that hard and you can figure it out yourself quite easily.

http://msdn.microsoft.com/en-us/library/aa390887%28v=vs.85%29.aspx[^]

Good luck!


这篇关于如何区分程序中的可执行文件和安装包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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