Automa Blog

Uninstall programs automatically

Automa can be used to automate repetitve tasks such as uninstalling programs. Take a look at the script below:

import sys
assert len(sys.argv) > 2
press(LWIN + "r")
write("control.exe appwiz.cpl")
press(ENTER)
click(sys.argv[2])
click("Uninstall")
click("Yes")
uninstall.at

In order to run this script and uninstall an application run:

>Automa.exe uninstall.at "Name of the application"
blog comments powered by Disqus