Удаление с пк приложение
При нажатии на кнопку я удаляю приложение, но после выполнения выдает ошибку:
raise ProcessExecutionError(
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 19
Command line: | 'C:\Program Files\Google\Chrome\Application\111.0.5563.65\Installer\setup.exe' --uninstall --channel=stable --system-level --verbose-logging /S
Код:
def buttonSteamDel(self):
for _ in winapps.search_installed('Google Chrome'):
winapps.uninstall('Google Chrome', args=['/S'])
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icon/image/icon/free-icon-download-545759.png"), QtGui.QIcon.Mode.Normal,
QtGui.QIcon.State.Off)
self.pushDownloadGoogle.setIcon(icon1)
Источник: Stack Overflow на русском