question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked saldana-msft edited

uninstall an application

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.

mem-cm-generalmem-cm-applicationmem-cm-co-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, you have an option to create the package and push it to those machines, where it has been installed

for simple way, you can create a VB script to run that command and make it exe file and create a package in the SCCM and push it to those machines
or you can create a TS and add this command to run



0 Votes 0 ·
SunnyNiu-MSFT avatar image
0 Votes"
SunnyNiu-MSFT answered SunnyNiu-MSFT edited

@GlennMaxwell-2309
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.



26.png (28.0 KiB)
27.png (24.8 KiB)
28.png (33.1 KiB)
29.png (31.3 KiB)
30.png (30.1 KiB)
31.png (40.7 KiB)
32.png (28.1 KiB)
25.png (36.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GaryBlok avatar image
0 Votes"
GaryBlok answered GaryBlok commented

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ok i will bite why do you say reporting and packages??? I love packages and you can report on them... And i love them.... And you..... <insert inside joke here> onesies....

0 Votes 0 ·

ok, wrong choice of words there.

I personally like Baselines & Apps due to the detection method to determine if it ran and succeeded with your goal. Vs a Package which reports it run status.
Personal preference, I like the extra safe guards that packages don't have.

0 Votes 0 ·
YoussefSaad avatar image
1 Vote"
YoussefSaad answered

Hi @GlennMaxwell-2309,

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!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.