uninstall an application

Glenn Maxwell 10,146 Reputation points
2021-02-25T22:44:52.313+00:00

Hi Experts

I am new to Configuration Manager, I have an application installed on windows servers and i want to uninstall it using sccm.

from the registries i get the below uninstall string.

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\App01
C:\Program Files (x86)\App01\App01 Client\uninst.exe

from the command line i have tried the below string on one server and it worked fine, the application got uninstalled.(is the silent switch correct)
"C:\Program Files (x86)\App01\App01 Client\uninst.exe" /qn

I am not sure how to uninstall it using sccm, do i need to create an application or package. experts guide me how to uninstall it.

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
460 questions
Microsoft Configuration Manager
{count} votes

Accepted answer
  1. SunnyNiu-MSFT 1,696 Reputation points
    2021-02-26T10:23:32.96+00:00

    @Glenn Maxwell
    Here is an answer to your question that hopefully you find helpful!
    In my lab, I did experiments to uninstall an application using SCCM. The specific process is as follows:
    1)Firstly, we create an application on the SCCM console.
    Software Library>Overview>Applications, right-click and select Create Application. Select the location of the application file(DiagnosticToolWSUSAgentInstaller.msi).
    72434-25.png

    No need to modify other places, select Next to finish creating the application.
    2)Next, select the newly created application, navigate to Deployment Types, and right-click Properties.
    72435-26.png

    3)Under the Content tab, change the Uninstall content location through Browse to the installation path of the application on the machine.
    72481-27.png

    No need to modify other places.
    4) Right-click the application to deploy it to the machine that needs to be uninstalled.
    72397-28.png

    72350-29.png

    Select uninstall.
    72482-30.png

    Complete the remaining configuration according to our needs, select Next to finish deployment.

    5)After the deployment is completed, we may check PolicyAgent.log on the machine according to the Deployment ID to view the process of receiving the policy and uninstalling the application.
    72483-31.png

    72475-32.png


    If the response is helpful, please click "Accept Answer"and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Youssef Saad 3,401 Reputation points
    2021-02-26T12:45:33.24+00:00

    Hi @Glenn Maxwell ,

    It depends of the application, there is no standard way to uninstall all kind of applications but based on my experience and in the most use cases, you can use either the EXE or MSI file installation and add uninstall parameter as mentioned below by @SunnyNiu-MSFT .

    If you want use the uninstall command in the registry, you can create a package and deploy the command line on the target device collection. Then you can monitor the progress in the Monitoring node.

    Regards,


    Youssef Saad | New blog: https://youssef-saad.blogspot.com
    Please remember to ** “Accept answer” ** or upvote for useful answers, thank you!

    1 person found this answer helpful.
    0 comments No comments

  2. Gary Blok 1,736 Reputation points
    2021-02-26T01:45:51.96+00:00

    It's hard to make an application with the sole purpose of uninstalling something.
    If you have the original installation payload, you could create the application like you're going to deploy it as an install, and as long as you set the uninstall command, you could deploy it to uninstall. You have to make sure the detection method you use detects the application is installed, so it tries then to uninstall.

    If all you are doing is running a command, I'd recommend using a Baseline
    You can then have it discover if the application is on the machine, then run your remediation to remove it. This will also provide nice reporting.

    If you don't care about reporting, you could use a package.

    My vote = Baseline.