I'm new to scripting and want to create a script which will check if 4 or 5 programs are installed on client machines or not. Would the best of doing this be to check registry entries?
So far I have:
Which doesn't seem to work. Is the "If error.number > 0 Then " correct?
All help welcome.
So far I have:
Code:
Dim WSHShell
Dim objAdr
On error resume next
Set WSHShell = WScript.CreateObject("WScript.Shell")
test = wshshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\...")
If error.number > 0 Then
msgbox "not installed"
else msgbox "installed"
end if
wscript.echo test
Which doesn't seem to work. Is the "If error.number > 0 Then " correct?
All help welcome.