If you dont know registry, I dont recommend you change anything, can cause major disasters if you play around with it
Main Topics
Browse All TopicsI hae two similar questions.
1 .Is it possible to run a batch file to simply place into a text document a list of all the applications installed on your computer
2. Is it possible to run a batch file to check that an particular application has been installed ?
Many thanks
GISVPN
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Based on rockiroads's idea, you could use VBS. There is an example at http://www.winnetmag.com/F
(link found from http://www.winnetmag.com/W
I made some simple tests and it proved working. For exporting a listing in a text file, I just used
> listapps.txt cscript ListApps.vbs
a oneliner you can easily plug into a batch file, which would solve your question 1. For Q 2., it's possibly just a matter of piping that output into a find command, something like
cscript ListApps.vbs | find /I "Microsoft Windows 2000 Server Resource Kit"
which would check whether the resource kit is installed or not.
GISVPN:
Yes on both accounts, but I think what you want should be accomplished using another means...
The problem as to whether or not a piece of software is installed has come up MANY times. What does installed mean? Does it mean the app works 100%? If that is the definition you are looking for, one simple reg Query will not suffice. If all you are looking for is if the application has at one time been installed AND it has not been officially uninstalled, then using
regedit /e c:\reg.txt "HKEY_LOCAL_MACHINE\SOFTWA
%b%=notinstalled
for /F %%a in (c:\reg.txt) do %b%=installed
2 special notes, do not use find on win2k and xp
now you have a variable in a batch that tells you whether or not your software is installed
The problem is that you have no Idea if the program is REALLY installed, for one, the uninstall key may not be populated but the application is still there (happens a lot when a tech doesn't have install software and they are pressured into fixing an issue) For 2, the application may be installed but "Damaged" to the point that it doesn't work.
What we have done to solve / get around this issue:
We use TSCensus and SMS2003 both of these provide very detailed informtation on software inventory.
hello all and thanks for your comments :)
rockiroads
thanks this works well......however a little extra thing is that i would like to be able to filter out alot of the stuff it returns to the text file. I wish to only see what Hotfixes have been installed on the computer. They all contain the word HOTFIX somewhere in the display name... is it possible to only return the keys with the word HOTFIX somewhere in the display name ?
_nn_
thanks for the vbs however i cannot get it to work :(
Kavar
Sounds good, could i ask why cannot i not use find on Win XP and 2000 ? :) do you know how i can search for all the keys at "HKEY_LOCAL_MACHINE\SOFTWA
Im not sure how to do it within regedit, you would need to know keys
there might be a filter within DOS to search for specific strings. I think its FIND
FIND /I "string to find" "filename"
where /I is ignore case
e.g.
find /i "hotfix" "myfile.txt"
Unix has grep which is a great utility but for a windows version, you can get a evalution version of wingrep http://www.wingrep.com
that might help u
Business Accounts
Answer for Membership
by: rockiroadsPosted on 2004-04-14 at 01:43:40ID: 10821484
To get a list of applications installed on your computer, you can do it by registry or directory
if you do by registry, you will proabably have to write some code (I can do it in VB but not in DOS)
with a directory, you can assume everything has been installed in C:\Program Files (this is the usual location, although it can be overridden)
then list all directories under that, but it gives you a directory name, not name of application
registry:
if you open up RegEdit then go to
HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows
CurrentVersion
Uninstall
Open that branch and you will see a series of subbranchs, just click on each one and it gives you details of the applicaton installed
if you highlite Uninstall, then select menu Registry, Export Registry file, you can export all this info into a file (called .reg, just rename to .txt)