I am writing a script that will do one thing if outlook is installed, and do another if outlook isn’t installed. I tried all kinds of logical file checks etc to see if the outlook binaries existed, but it got complicated.
I decided to see if the outlook object would successfully initialize. If I cannot connect to the outlook application, then I can probably assume that outlook is not installed:
on error resume next
Set objOutlook = CreateObject("Outlook.Application")
If objOutlook Is Nothing Then
wscript.echo "Outlook 2007 is NOT installed, or is not installed correctly!"
wscript.echo "Outlook 2007 is installed on this PC."