gcue Posted March 4, 2008 Share Posted March 4, 2008 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 Link to comment Share on other sites More sharing options...
weaponx Posted March 4, 2008 Share Posted March 4, 2008 See this post for computer info UDF's:http://www.autoitscript.com/forum/index.ph...alled++programs Link to comment Share on other sites More sharing options...
Legacy99 Posted March 4, 2008 Share Posted March 4, 2008 (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.CloseFound on MS TechNet@WeaponX, Nice Link!!! I wish I seen that sooner!!!!!! Edited March 4, 2008 by Legacy99 Link to comment Share on other sites More sharing options...
weaponx Posted March 4, 2008 Share Posted March 4, 2008 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=29Just run it and choose Win32_Product from the dropdown. Link to comment Share on other sites More sharing options...
gcue Posted March 4, 2008 Author Share Posted March 4, 2008 that works great!!!thank you muchSee this post for computer info UDF's:http://www.autoitscript.com/forum/index.ph...alled++programs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now