File holding Add/Remove Programs text?

Posted on 2006-07-05
Last Modified: 2010-04-13
I'm looking to find the actual file that holds the information which Add/Remove Programs loads. Ie how it populates the names and sizes of all the programs installed. I need to find this file as I am writing a program to check version'ing on multiple programs. Yes I'm aware I can do cmd.exe ProgramName -version, as I'm able to do this for most. However for example MSXML cannot be version'd in any normal way( i.e. I can figure out that a MSXML 4.0 folder exists in C:\Program Files\ , but this doesn't tell me whether it's SP2 or not, I've only found that information available in Add/Remove Programs under its listing).

Question by:cl0ckwork
  • 2
  • 2
  • 2

Author Comment

ID: 17047168
I've found a registry key

That has a key called DisplayVersion with the value of 4.20.9818.0. This is what i'm looking for. However I'm highly doubtful that the exact location in which I found this will be universal for all machines. Crawling the entire registry with a script probably isn't very fun either.
LVL 10

Assisted Solution

jasfout earned 125 total points
ID: 17047408
It should be the same for >Win95 (i dont know about vista)

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ Current Version\Uninstall

LVL 26

Accepted Solution

Pber earned 125 total points
ID: 17047414
I think it's in the registry


all the keys below that relate to software.  If you delete one of the values below that they disappear from add/remove programs.
There are values within the software key called Version, VersionMajor,VersionMinor which I think is what you are looking for.

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

LVL 10

Expert Comment

ID: 17047442
>Title: File holding Add/Remove Programs text?

there is no text file, but there are several files which make up the registry which contains the "Add/Remove Programs" list

Author Comment

ID: 17047491
Ok so it seems HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
is where I need to look, however, is there a way I can create the hash dynamically so that I know what its name is?
ie instead of parsing through tons of keys in \Uninstall\ is there an algo where the hashstring (ex 4302B2DD-D958-40E3-BAF3-B07FFE1978CE ) is created that I can utilize?
LVL 26

Expert Comment

ID: 17050289
Not really this is done by the OS and the installer.  You'll notice some programs have keys others are guids.  You are pretty much stuck with that.  I would suggest renaming the keys as it might break things.

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL SERVER 2000 mdf file defragmentation 4 56
Adprep 12 84
Windows 2000 undelete (free program?) 6 435
Old Schema existing from Windows 2000 DC that is no longer available 14 137
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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