Software Deployment Question

Software Distribution for Uninstalling?

06/20/2016 1023 views

I'm back with another question about software distribution, since I last posted the information given to me has helped us quite a bit with distribution.

I attempted to add in an uninstall batch too, to test if a earlier version of a program pre-existed. In this case, IBM SPSS 21. 

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C3BA73A4-2A45-4036-8541-4F5F8146078B} >NUL 2>NUL && MSIEXEC.EXE /qn /norestart /x{C3BA73A4-2A45-4036-8541-4F5F8146078B}

If I run this local on the machine, everything works fine. If it's like, uninstall.bat. But if I use the bat file from the k1000, I get no-where trying to uninstall it.

Basically I'm acting as if it is an install.
I add it as software, as IBM SPSS 21 Unintaller. I then make a distribution to my target group, and send a .bat file with that above in it's contents. What normally happens, is the box will flash open and just close. Versus if we do it local, it works fine. 

Can anyone point me in the right direction for getting this to work? 


0 Comments   [ + ] Show comments


All Answers

I have never performed an uninstall that include a registry call. I do many from the K1000 via .bat by calling the uninstall string, as you have at the end. Here is an example of one for 2 versions of Flash

@echo off

MsiExec.exe /X {A4488E5C-1022-432A-8066-72E1C4023310} /QN

MsiExec.exe /X {44CF4DB9-707A-4395-839C-573FBC206CB9} /QN


You are right about adding it as a software inventory item then a Managed Install. I do that frequently. Verify you have the applicable Operating Systems selected in your software inventory item. Otherwise it won't run against your machines. 
Answered 06/20/2016 by: rockhead44
Red Belt

  • The reg query is to ensure the software exists on the system, but I will try it now and post back.

    Thank you!
    • Sadly, it worked one time, restart the system.. then it doesn't work any further. It seems to fail when /QN is thrown, instead of /QB.

      Any ideas what may cause this?
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