Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 670657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:17:18+00:00 2026-05-14T00:17:18+00:00

How do I list all programs installed on my computer? I’ve tried using the

  • 0

How do I list all programs installed on my computer? I’ve tried using the MsiEnumProducts and MsiGetProductInfo functions, but they do not return a full list of installed applications like I see in “Add/Remove Programs”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:17:18+00:00Added an answer on May 14, 2026 at 12:17 am

    Enumerate the registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

    bool EnumInstalledSoftware(void)
    {
        HKEY hUninstKey = NULL;
        HKEY hAppKey = NULL;
        WCHAR sAppKeyName[1024];
        WCHAR sSubKey[1024];
        WCHAR sDisplayName[1024];
        WCHAR *sRoot = L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
        long lResult = ERROR_SUCCESS;
        DWORD dwType = KEY_ALL_ACCESS;
        DWORD dwBufferSize = 0;
    
        //Open the "Uninstall" key.
        if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, sRoot, 0, KEY_READ, &hUninstKey) != ERROR_SUCCESS)
        {
            return false;
        }
    
        for(DWORD dwIndex = 0; lResult == ERROR_SUCCESS; dwIndex++)
        {
            //Enumerate all sub keys...
            dwBufferSize = sizeof(sAppKeyName);
            if((lResult = RegEnumKeyEx(hUninstKey, dwIndex, sAppKeyName,
                &dwBufferSize, NULL, NULL, NULL, NULL)) == ERROR_SUCCESS)
            {
                //Open the sub key.
                wsprintf(sSubKey, L"%s\\%s", sRoot, sAppKeyName);
                if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, sSubKey, 0, KEY_READ, &hAppKey) != ERROR_SUCCESS)
                {
                    RegCloseKey(hAppKey);
                    RegCloseKey(hUninstKey);
                    return false;
                }
    
                //Get the display name value from the application's sub key.
                dwBufferSize = sizeof(sDisplayName);
                if(RegQueryValueEx(hAppKey, L"DisplayName", NULL,
                    &dwType, (unsigned char*)sDisplayName, &dwBufferSize) == ERROR_SUCCESS)
                {
                    wprintf(L"%s\n", sDisplayName);
                }
                else{
                    //Display name value doe not exist, this application was probably uninstalled.
                }
    
                RegCloseKey(hAppKey);
            }
        }
    
        RegCloseKey(hUninstKey);
    
        return true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to list all files in a directory Using PyroCMS. Using the Files
How can I list all instantiated objects in all application, using FASTMM4 or default
I'm writing a program that requires the ability to list all applications installed, and
I tried nearly all solutions list on page How to implement WiX installer upgrade?
I am trying to get list of all SQL Servers installed in the machine
I'm on OS X 10.7 Lion and have all the dev tools installed, but
I'm running a program to list info of all files stored in folder. I
List all node as element of an array? my xml data: <videos> <video> <id>1</id>
I need to list all files with size > 0 under a directory (where
I want to list all .xml files in a dir and its subdir. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.