Jump to content
Sign in to follow this  

How do I automate uninst.exe

Recommended Posts


Hello all,

I have been trying recently to write a script for installing / uninstalling various apps for our organization. Being one of the first scripts I have went back to do an UNinstall script, I have a problem scripting Auto-IT to close the standard windows removal wizard box. This box comes up with...

TITLE = "Remove programs from Your"

Text = "unInstallShield will remove th"

I have tried with ControlID (of 1) and ClassNameNN (Button1) but honestly I am not familiar enough with working with ControlIDs to comfortably write a certain working script to do this.

The problem lies in that during Windows uninstall of the program, the <OK> button is greyed out until finished. I cannot find a satisfactory way to get AutoIT to wait until the button is active to click it and continue with the remainder of my script.

Does anyone have any suggestions to work through using this standard Microsoft unInstallShield wizard that they would be willing to share??



Share this post

Link to post
Share on other sites

A very bad method would be,

let the program keep pressing on it until

it goes to the next step :whistle:

Share this post

Link to post
Share on other sites

Open the help file,

goto the tab named "Index"

enter "Control" in the field named "Type in the keyword to find:"

read that page and then

read about ControlCommand and "IsEnabled"

A loop like this...

Until ControlCommand ( "title", "text", controlID, "IsEnabled", "")
...should make your script wait around for the button of interest to be enabled - and then it will continue. Edited by herewasplato


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this