Detection Issue W\Code Attachement.
Hello,
I have attached an image with the code we use to detect an application.
The example shows "Winzip.exe" detection which if running will popup a warning message to will allow them to close it manually and another check and warning in case the user ignores the message and a force task kill of the application.
The issues we are having is detecting the following EXE' at the residing paths listed below on a Vista machines:
Note: We have not tested this on XP machines. The IE detection issues only became an issue once IE 7 was implemented, IE 6 detection never gave us any issues. Altiris has advised us that they were ware of the IE detection issues but have not given us a workaround.
C:\Program Files\Windows Sidebar\sidebar.exe
C:\Program Files\Internet Explorer\iexplore.exe
C:\Windows\notepad.exe
Thanks,
Comments
Check in Use not reliable
If I recall correctly, the "Check in use" command is not reliable.
Have a look in the Wisescript library at Dragonsoft as they have some process monitoring wisescripts which will do the job for you much more reliably. Alternatively, use WMI
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
What is WMI? and how do i use
What is WMI? and how do i use it? I've heard the term before but not familiar with it.
WMI
WMI stands for Windows Management Instrumentation and is a very powerful tool for finding out about the hardware and processes on a windows PC. You basically code in vbscript.
If you want to see how many functions are available in WMI, grab a copy of WMIExplorer (google for it) and have a look on your current system.
So for example, if you want to see if calc.exe is running, this is how you would do it in a simple example:
Dim Wmi, Wql, Processes IsRunning = False Set Wmi = GetObject("winmgmts:") 'Check if the Calc.exe Running Wql = "select * from Win32_Process " & " where name='" & "Calc.exe" & "'" Set Processes = wmi.execquery(wql) If Processes.Count > 0 Then MsgBox "Calc is running Please Close Calc.exe" End IfOf course, once you are coding in vbscript, you can use the session.property method to pass information to and from an MSI via public properties
eg: session.property("PROPERTYNAME") = Processes.count would pass the value in Processes.count from the example above, into a public property called PROPERTYNAME.
Try googling on "WMI" and see how much information is literally at your fingertips !!
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.