/build/static/layout/Breadcrumb_cap_w.png

Checking target machine for a running process or service and returning value, Installshield Best practice?

I am just starting to re-package several applications and also send updates to existing installations in my business environment.

I want to check for a running process or service and return the value of running or not status back to SCCM.

What is best practice to check for a running process and have the MSI fail and return code?

 

I am using installshield 2012 spring and adminstudio 11.5 sp2

 

thanks all


0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 11 years ago
Red Belt
0

There is no BP for this scenario. Use whatever tools you would normally for detecting a running process. If you need to return a code to SCCM, that will probably be a scripted call to a WMI method, be that VBS, PS or whatever your preferred language is.

Posted by: Ifan 11 years ago
Second Degree Green Belt
0

For mandatory updates i use a wrapper script that has a countdown window that asks the user to close the conflicting applications within 60 minutes.

The user is allowed to postpone the update once, and it exits with the exit code 1602 (same as user canceled from MSI, non critical failure). The SCCM advertisement is set to rerun if failed previous attemt every other day. This works well in my environment.

I haven't tried recreating this in windows installer, but it is possible.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ