I want to uninstall any application in my system using python
I tried using wmic command but it only shows few applications in your system not all of them . I am trying but not getting solution for this problem . Any advice would be helpful
I want to uninstall any application in my system using python
I tried using wmic command but it only shows few applications in your system not all of them . I am trying but not getting solution for this problem . Any advice would be helpful
This is because wmic only shows those installed via .MSI installers.
wmic only checks HKEY_CLASSES_ROOT\Installer\Products
.
Other installers have different locations such as:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
You'd need to search more than the wmic location for the program you want and grab the SilentUninstallString or UninstallString values to execute from the relevant registry location.