/build/static/layout/Breadcrumb_cap_w.png

Building All-In-One uninstaller packages.

I recently embarked on looking for a way to uninstall all versions of QuickTime with the latest security issues.  I searched IT Ninja, Dell Software Forums, and Google trying to find a simplified way to build an all-in-one uninstaller in K1000.  Going version to version just took way to long.  I stumbled across a field in the software inventory that caught my attention.  Here is what I did to make this work:

Go into Inventory > Software.
Click Choose Action > New.

Name the software something like "QuickTime AIO"
Choose the Operating Systems you want to target (Control + Click for multiple).

The magic happens in the next area: Custom Inventory Rule
Note: Click on the blue ? icon to see all of the strings available.
For this example I chose to use the QuickTime executable file.  So I entered "FileExists(c:\program files (x86)\quicktime\quicktimeplayer.exe" into the Custom Inventory Rule box.

V1jXkh.png

Check the box "Don't Replicate Associated File".

Save the software item and force all of your devices to inventory.  

Now you can select this new software item in your Distribution > Managed Installations area.  

I used the setup below to build the uninstaller.

wofKIm.png

The Full Command Line is:  wmic product where "name like 'quicktime%'" call uninstall /nointeractive

Let me know if you have any questions regarding this.  Also if you have any feedback or suggestions please advise.



Comments

  • It's not really a great idea to use the wmic uninstall. You have NO control over reboots. You can however deduce the "IndentifyingNumber" which is merely the ProductCode (GUID) for the app then use the tried and true msiexec /x %IdentifyingNumber% /qn REBOOT=R /L* %TEMP%\%APPNAME%_UNINST.log - jazzlake 8 years ago
    • Agreed I should have mentioned that you do not have control over reboots. I only use WMIC on software that does not reboot the device. My issue with the Identifying Number goes back to the fact that its different for every version of the software. Is there an msiexec string equivalent to "Like"? - Zach_Lundberg 8 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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