473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2336
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_MACH INE\SOFTWARE or HKEY_CURRENT_US ER\Software branches?

-Larry
Sep 4 '08 #2
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <ha**********@g mail.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_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall

--
Gabriel Genellina

Sep 4 '08 #3
On Sep 3, 7:13*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@g mail.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_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Uninstall

--
Gabriel Genellina
Thank both of you. Perfect!

~Sean
Sep 4 '08 #4
On Sep 3, 9:41*pm, Sean DiZazzo <half.ital...@g mail.comwrote:
On Sep 3, 7:13*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
En Wed, 03 Sep 2008 21:51:59 -0300, Sean DiZazzo <half.ital...@g mail.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_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \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
1227
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 <one-many> tblphase Both relations are one to many left to right I've created a DataSet with all three tables and built relations to mimic the...
0
1449
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 -- comments welcome! "Create beginner's programs" <url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_07.zip> This part focuses on basic...
1
2751
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 editing bit is not a problem, but I can't get the selected item to resize, as the listbox does for the "Add/Remove programs". The initial...
4
5528
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 files. The solution is simple: have the computer re-sort the menu. When you install new programs, Windows XP tacks them to the end of your All...
1
1476
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. The computer actknoledges the One care removal and warns me I have no virus program runing or instaled. BUT the error: " first remove Wimdows one...
1
1722
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" in StartMenu where as by Windows newly created profiles Recently Used Programs got displayed. Note: "Recently Used Programs" items are visible in...
1
1367
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 suggestions please? -- Bryan
1
2075
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 to search online for a keyboard shortcut to be able to access Design Mode at all. I'm sure there is something I'm missing, but it doesn't make...
4
9835
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 this context, in fact some articles from pre-2.0 suggest using any collection class of your choice. So my questions focus more on the syntax of...
0
7432
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.