Anyone have a CA that detects if Outlook is running? I've had no luck
getting my code to run when executed it from within an MSI. I'm using
the VS installer, so it has to be a CA exe, dll or vbscript.
Thanks in advance!
---JHG
Tim Macaulay[MSFT] - 16 Jun 2004 00:40 GMT
You might try something like this:
Sub GetRunningProcesses()
Set svc = GetObject("winmgmts:root\cimv2")
strQuery = "Select * from win32_process where caption = 'outlook.exe'
For Each obj In svc.execQuery(strQuery)
Debug.Print obj.Caption & " Is running"
Next
End Sub
Cheers,
Tim Macaulay, MCSD, MCP.Net
Microsoft Product Support