Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


listing all the runnable exes

Posted on 1999-06-28
Medium Priority
Last Modified: 2010-04-06
I want to create a menu (much like the start menu) which lists all the registered exes on the computer (and stores the execution path), together with their icons.  It will operate much like a custom start menu.  So i need a bit of code to pull out all the icons, exenames and executable paths for all the registered programs from wherever it all live in the registry.
Question by:Heapster
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 12

Accepted Solution

rwilson032697 earned 200 total points
ID: 1385051
You can read the list of registered EXEs from HKEY_LOCAL_MACHINE/software/microsoft/windows/current version/app paths

Each entry is the EXE name, with a default key holding the path and exename and a key 'path' holding just the path to the exe.

You can get the icon from the EXEs like this:

procedure LoadIconFromEXE( ExeName : string; IconIndex: integer);
 var pExeName: pchar;
  // first, make a the EXE name a pchar:
 pExeName := pChar( ExeName );
  // the index of the first icon is 0, so lower iconindex by one.
 IconIndex := IconIndex -1;
  // now extract it.
 Image1.Picture.Icon.Handle := ExtractIcon( HInstance, pExeName, IconIndex);



Author Comment

ID: 1385052
ok that looks fine - thanks raymond.  

Author Comment

ID: 1385053
ok that looks fine - thanks raymond.  

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question