Blog

July 02 2009 1:05 PM

I had a customer in need of truly instant gratification related to a small software component. This trick will work in OpsMgr 2007 as well, but is not something I encourage.

Scenario:

Support engineer is required to uninstall and reinstall a small software component prone to failure on demand. In the past, this required the engineer to login as local administrator (users do not have local admin rights), uninstall, reinstall and logoff with the user waiting on the phone.

Given this has to be performed on demand, several times a week, using the normal software deployment functionality with the wuauclt /detectnow task really just did not meet support the need for instant gratification.

Workaround:

Create uninstall and installation tasks using the Windows Installer (msiexec), which provides well known command line parameters to silently install uninstall. This can can easily be accomplished using the msiexec -x (uninstall) and /qn (silent) flags.

As long as the package does not run beyond the task timeout limit specified when creating the task, it works well, and reports success or failure in the task window.

The Uninstall Task

Here's how you'd configure the task. Notice the software package is located on a network share with Everyone READ permissions. FYI- This was not the point from which the package was originally installed.

Uninstall

The Install Task

This looks much like the Uninstall Task, just minus the -x flag.

Install

Hope you find this tip useful! Please post feedback via comments on this post

 Print  

Quick Links
Top Contributors
Pete Zerger
Points: 25235
Level: System Center Expert
Simon Skinner
Points: 20333
Level: System Center Expert
Tommy Gunn
Points: 19054
Level: System Center Expert
MadHatter
Points: 11573
Level: System Center Expert
Stefan Koell
Points: 10134
Level: System Center Expert