Sample ASP page to list installed software

  • Thread starter Thread starter Anthony Lizza
  • Start date Start date
A

Anthony Lizza

Hi,

does anyone know where I can get a sample asp page that will list the
installed software on a computer by checking the uninstall key in the
registry. I only need to be able to input the computer name in a form and
return the list.

Thanks
 
You could list uninstall registry key with this procedure. You may need run
your asp page with admin rights.

On Error Resume Next

const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

For Each subkey In arrSubKeys
WScript.Echo subkey
Next

//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top