Uninstall-ADTApplication (4.1.0)

Hi, I wonder why this command won't uninstall the Android Studio, when looking in log it says no matching application

Uninstall-ADTApplication -Name "Android Studio" -ApplicationType All -FilterScript { $_.Publisher -match 'Google LLC' } -ErrorAction SilentlyContinue

 get-ADTApplication -Name *android*

PSPath                           : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cu
                                   rrentVersion\Uninstall\Android Studio
PSParentPath                     : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cu
                                   rrentVersion\Uninstall
PSChildName                      : Android Studio
ProductCode                      :
DisplayName                      : Android Studio
DisplayVersion                   : 2025.1
UninstallString                  : C:\Program Files\Android\Android Studio\uninstall.exe
UninstallStringFilePath          : C:\Program Files\Android\Android Studio\uninstall.exe
UninstallStringArgumentList      : {}
QuietUninstallString             :
QuietUninstallStringFilePath     :
QuietUninstallStringArgumentList :
InstallSource                    :
InstallLocation                  :
InstallDate                      : 15-08-2025 00:00:00
Publisher                        : Google LLC
HelpLink                         :
EstimatedSize                    :
SystemComponent                  : False
WindowsInstaller                 : False
Is64BitApplication               : True

PSPath                           : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cu
                                   rrentVersion\Uninstall\{B5A57BF9-FC7A-4FA6-BAEB-46E173986DF3}
PSParentPath                     : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cu
                                   rrentVersion\Uninstall
PSChildName                      : {B5A57BF9-FC7A-4FA6-BAEB-46E173986DF3}
ProductCode                      : b5a57bf9-fc7a-4fa6-baeb-46e173986df3
DisplayName                      : Microsoft.NET.Sdk.Android.Manifest-8.0.100 (x64)
DisplayVersion                   : 34.0.43
UninstallString                  : MsiExec.exe /X{B5A57BF9-FC7A-4FA6-BAEB-46E173986DF3}
UninstallStringFilePath          : MsiExec.exe
UninstallStringArgumentList      : {/X{B5A57BF9-FC7A-4FA6-BAEB-46E173986DF3}}
QuietUninstallString             :
QuietUninstallStringFilePath     :
QuietUninstallStringArgumentList :
InstallSource                    : C:\ProgramData\Package Cache\{B5A57BF9-FC7A-4FA6-BAEB-46E173986DF3}v34.0.43\
InstallLocation                  :
InstallDate                      : 21-03-2025 00:00:00
Publisher                        : Microsoft Corporation
HelpLink                         :
EstimatedSize                    : 656
SystemComponent                  : True
WindowsInstaller                 : True
Is64BitApplication               : True

This looks fine, but if I was following the reference for Uninstall-ADTApplication to the letter you would probably need to single quote All, so it should look like this:

Uninstall-ADTApplication -Name "Android Studio" -ApplicationType 'All' -FilterScript { $_.Publisher -match 'Google LLC' } -ErrorAction SilentlyContinue

Maybe it doesn't know what to do with the Application Type All?

well i have tried with 7-zip, all without 'All' and there it could uninstall the MSI
but here with this software now per you suggestion:

Uninstall-ADTApplication -Name "Android Studio" -ApplicationType 'All' -FilterScript { $_.Publisher -match 'Google LLC' } -ErrorAction SilentlyContinue

I get this

If the app doesn't have a QuietUninstallString in the registry, not much we can do to address that. There's an -AdditionalArgumentList parameter, this is where you'd specify the necessary silent arguments for the uninstaller.

you need the /S parameter targeting that uninstall .exe.

You need to consider removing all the residual files and folders post uninstall as well.

i.e. AppData\local and i think it leaves a load of start menu shortcuts too. v4 has a nice cmdlet to remove files from all user profiles and doesn't error out if not found (multiple user folders on one device as an example).

Forgot to add... some developers kindly leave out the silent uninstall params in registries!

Its one big game.

seems that this one work in the end, must to say it should be capital S:

Uninstall-ADTApplication -Name "Android Studio" -ApplicationType EXE -ArgumentList "/S"

Which cmdlet do you have in mind for the user context cleanup?

Remove-ADTFileFromUserProfiles · PSAppDeployToolkit

The one above.