Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get the information of the software installed with .exe

Status
Not open for further replies.

hartlen

IS-IT--Management
Aug 31, 2004
24
CN
if i want to get the information of a software installed in my computer,which is installed by setup.exe file
such as get the software's version and serial

i use the win32_product but can get, it only get the software installed by .msi

my friends tell me to search the registry but i dont know how to do

thanks
 
Hello hartlen,

Try this.
Code:
const hklm=&h80000002
const skey="Software\Microsoft\Windows\CurrentVersion\Uninstall"

set odic=createobject("scripting.dictionary")
set svcreg=getobject("winmgmts:root\default:stdregprov")
iret=svcreg.enumkey(hklm,skey,asubkey)
for i=0 to ubound(asubkey)
    iret=svcreg.getstringvalue(hklm,skey & "\" & asubkey(i),"displayname",sinfo)
    if not isnull(sinfo) then
        'echo is for testing 
        wscript.echo skey & "\" & asubkey(i) & vbcrlf & sinfo
        odic.add skey & "\" & asubkey(i), sinfo
    end if
next
wscript.echo "Installed software displayed : " & odic.count
set svcreg=nothing
'info is stored in odic, make further use or save as needed
regards - tsuji
 
thank you very much

you make me known how to get the information
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top