473,386 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Access to Windows "Add/Remove Programs"?

Hi all,

I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. I thought of a few hacks that might
partially work, and then thought about "Add/Remove Programs" Seems
like the right way to go. I looked over the pywin32 docs a bit, but
nothing slapped me in the face.

Is there any reliable way to get at that info?

Thanks in advance,

~Sean
Sep 4 '08 #1
4 2328
Sean DiZazzo wrote:
Hi all,

I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. I thought of a few hacks that might
partially work, and then thought about "Add/Remove Programs" Seems
like the right way to go. I looked over the pywin32 docs a bit, but
nothing slapped me in the face.

Is there any reliable way to get at that info?

Thanks in advance,

~Sean
I would guess that that program gets the information from the registry.
Maybe looking at HKEY_LOCAL_MACHINE\SOFTWARE or HKEY_CURRENT_USER\Software branches?

-Larry
Sep 4 '08 #2
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <ha**********@gmail.com>
escribi�:
I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. I thought of a few hacks that might
partially work, and then thought about "Add/Remove Programs" Seems
like the right way to go. I looked over the pywin32 docs a bit, but
nothing slapped me in the face.

Is there any reliable way to get at that info?
You may enumerate the entries under this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall

--
Gabriel Genellina

Sep 4 '08 #3
On Sep 3, 7:13*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.arwrote:
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@gmail.com>*
escribi :
I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. *I thought of a few hacks that might
partially work, and then thought about "Add/Remove Programs" *Seems
like the right way to go. *I looked over the pywin32 docs a bit, but
nothing slapped me in the face.
Is there any reliable way to get at that info?

You may enumerate the entries under this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall

--
Gabriel Genellina
Thank both of you. Perfect!

~Sean
Sep 4 '08 #4
On Sep 3, 9:41*pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Sep 3, 7:13*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.arwrote:
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@gmail.com*
escribi :
I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. *I thought of a few hacks that might
partially work, and then thought about "Add/Remove Programs" *Seems
like the right way to go. *I looked over the pywin32 docs a bit, but
nothing slapped me in the face.
Is there any reliable way to get at that info?
You may enumerate the entries under this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall
--
Gabriel Genellina

Thank both of you. *Perfect!

~Sean
I have used both of these methods, but it should be noted that not all
programs register themselves in the registry. The usual suspects are
spyware related. But there are still a few programs that you can just
download and unzip that don't write anything to the registry.

But this does work for probably 99% of programs on Windows.

Mike
Sep 4 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruce | last post by:
I have three tables in SQL serve tblareas (w/autoincrement ID tblprograms (w/autoincrement ID tblphases (w/autoincrement ID I've build cascading relation from tblareas <one-many> tblprograms...
0
by: Alf P. Steinbach | last post by:
The seventh part of my attempted Correct C++ tutorial is now available, although for now only in Word format (use free Open Office if no Word), and also, it's not yet been reviewed at all -- ...
1
by: Dan Bass | last post by:
I'm looking to develop a listbox with in-place editing where as each item is selected, it grows to fit in all the text boxes. When the item is deselected, it shrinks back to its original size. The...
4
Cyberdyne
by: Cyberdyne | last post by:
In your All Programs Menu, some of your programs are in alphabetical order and others are not. This makes it very difficult to seek out a program that may be hidden in a maze of program folders and...
1
by: =?Utf-8?B?V2luIERlZmVuZGVyIEluc3RhbGF0aW9uIGVycm9y | last post by:
I atempted to instal Windows Defender program. But a error: " first remove Windows one care program first" I uninstaled the program via the uninstal wizard & rebooted my HP Media Center 2005 xp....
1
by: UKishore | last post by:
Hi All, Am generating a new profile by running my standalone application using the API "NetUserAdd". After logging to the newly created profile , I couldn't see default "Recently Used Programs"...
1
by: =?Utf-8?B?U3B1dG5pY2s=?= | last post by:
I am experiencing problems with add/ remove programs, It take about 3-5 minutes to build the installed programs list. I have tired cleaning out all rubbish and uninstalled unnecessary prgrams. Any...
1
by: Heather | last post by:
I keep selecting and selecting, but it just doesn't show up. I also have no button in the ribbon for this, or any ability to get into other modes via the Office button. It's very frustrating; I had...
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.