Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Please help me?
How to distinguish a executable which is a installation package and a executable which is a free installation in my program?
Posted
Comments
Indivara 14-Apr-11 8:54am    
What's a free installation?
silent1000 15-Apr-11 20:14pm    
A free installation is a executable that not need to install.Such as a simple MFC program.
If there any ways to distinguish them though file attribute?
Sandeep Mewara 15-Apr-11 1:51am    
Not clear.
silent1000 15-Apr-11 20:29pm    
It's all my fault.My Chinglish.I want to analysis a executable,then I know whether the executable needs to be installation or just like a simple MFC program.

1 solution

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!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900