/build/static/layout/Breadcrumb_cap_w.png

Software Distribution for Uninstalling?

Hello,

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? 

Thanks.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: rockhead44 7 years ago
Red Belt
1
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

exit


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. 

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

    Thank you! - nolab 7 years ago
    • 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? - nolab 7 years ago

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