GithubHelp home page GithubHelp logo

fagan2888 / listprograms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mavenlin/listprograms

0.0 2.0 0.0 120 KB

C++ Code to Show all Installed Programs on Windows

C++ 96.97% QMake 3.03%

listprograms's Introduction

ListPrograms

C++ Code to Show all Installed Programs on Windows

There are many codes to list all programs installed on windows.

Most frequently seen is:

  1. Listing all keys in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall.

  2. Win32_Product WMI (Windows Management Instrumentation) class.

  3. MSI API.

However, none of these is clean way to obtain all the softwares. By all, I mean all the software listed in Control Panel > Programs > Programs and Features > Uninstall or change a Program.

This post on stackoverflow http://stackoverflow.com/questions/802499/how-can-i-enumerate-list-all-installed-applications-in-windows-xp/9757013#comment22371865_9757013

One of the answers showed some code on some VB forum, which works out and is able to show the same programs as listed in Control Panel. Though I don't understand why that answer has only one vote up (I did it). But this code is the best I ever see.

However, it is written in VB, not so popular language.

I ported here using C++.

Things changed:

  1. Using the standard method to access Wow6432Node.
  2. More Informations are collected, InstallLocation, Icon and Architecture of the binary (X86 or X64).
  3. Qt Wrapper.
  4. Icon is extracted from the icon path, and stored in QPixmap.

listprograms's People

Contributors

iclr-zz avatar mavenlin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.