管理员权限运行命令windows提示符
将代码命名为remove.py
from util import *
if __name__ == '__main__':
#first, get names of all the installed software .
softwares=get_software()
print(softwares)
#second, select the software you want to uninstalled.
software=softwares[0]
uninstall_software('先图AGI模盒 2020(x64)')
运行 python remove.py
完成卸载!
附件代码:
util.py
import get_reg_value
import os
import subprocess
def get_software():