Sign in to follow this  
Followers 0
gcue

get a list of applications installed

5 posts in this topic

is there a way to get a list of applications installed?

i know hkey_local_machine\software\microsoft\windows\currentversion\uninstall lists all the applications (each under its own folder)

i know i can do some sort of reg read with autoit, but i wouldnt know each and every path.

there has to be a way to do this...

id like to read the DisplayName, and DisplayVersion string values for every application

any ideas?

thanks

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

WMI can do it.

This VB code will work but don't ask for converison, I'll be at it for a week :)

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\software.csv", True)
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
 & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
 ("SELECT * FROM Win32_Product")
objTextFile.WriteLine "Caption" & vbtab & _
"Description" & vbtab & "Identifying Number" & vbtab & _
"Install Date" & vbtab & "Install Location" & vbtab & _
"Install State" & vbtab & "Name" & vbtab & _
"Package Cache" & vbtab & "SKU Number" & vbtab & "Vendor" & vbtab _
 & "Version"
For Each objSoftware in colSoftware
 objTextFile.WriteLine objSoftware.Caption & vbtab & _
 objSoftware.Description & vbtab & _
 objSoftware.IdentifyingNumber & vbtab & _
 objSoftware.InstallLocation & vbtab & _
 objSoftware.InstallState & vbtab & _
 objSoftware.Name & vbtab & _
 objSoftware.PackageCache & vbtab & _
 objSoftware.SKUNumber & vbtab & _
 objSoftware.Vendor & vbtab & _
 objSoftware.Version
Next
objTextFile.Close

Found on MS TechNet

@WeaponX, Nice Link!!! I wish I seen that sooner!!!!!!

Edited by Legacy99

Share this post


Link to post
Share on other sites

Converting VB Script to AutoIt is the easiest thing on earth. Fortunately you can download AutoIt Scriptomatic which will generate the WMI code for you.

http://www.autoitscript.com/forum/index.ph...amp;showfile=29

Just run it and choose Win32_Product from the dropdown.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0