water1 Posted November 26, 2012 Share Posted November 26, 2012 Hello, I used autoit for automatic uninstallation of installshield application. The problem is that I am unable to close the last GUI screen using autoit. the last GUI screen asks to click "Finish" to confirm the close of the successful uninstalled application. The code below works fine for the first GUI button, but doesn't work for the last GUI. WinWait("Confirm Uninstall", "Do you want to completely remove the selected appl ication and all of its components?") WinActivate("Confirm Uninstall", "Do you want to completely remove the selected application and all of its components?") ControlClick("Confirm Uninstall", "OK", "Button1") WinWait("InstallShield Wizard", "xxxx de-installation is complete") WinActivate("InstallShield Wizard", "xxxx de-installation is complete") ControlClick("InstallShield Wizard", "xxxx de-installation is complete", "Button2") During the installation, the GUI with title "InstallShield Wizard" showed the option of "Cancel" button, and then finally changed to the button "Finish". I wonder if I need to add a special WinWait() to skip such GUI Thanks. Peter Link to comment Share on other sites More sharing options...
Chimaera Posted November 26, 2012 Share Posted November 26, 2012 (edited) usually for automation of installshield you need to create a setup.iss which is you predetermined respones to the installer saved in a fileBut ive never made one for uninstaller so i dont know if its possible as it normally relies on the setup exesome info here if you havent read alreadyhttp://unattended.sourceforge.net/installers.phpMaybe use ussf (universal silent switch finder)and run it on the uninstall file to see what switches it may support Edited November 26, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 26, 2012 Moderators Share Posted November 26, 2012 (edited) Actually, if it is InstallShield, it should use the MSI switches for silent uninstall. @water1, Look on a machine that has the software, in the registry at HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall. Find the product you're trying to uninstall, and look at what it says for the value of UninstallString. Edited November 26, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now