bqp2 Posted November 18, 2010 Share Posted November 18, 2010 1 - Part of my script installs a app, then when done with it it uninstalls it, i used mouse click and it works when program actually installs, but sometimes it messes up and doesn't install app, so i tried control id but the id just returns one id for whole add remove program box, I tried _rundos(rundll32 app with wild cards cause there is a part that changes every time example app\1.bin, or app\2.bin so i used app\*.bin that doesnt work so whats happening if app doesn't exist it trys to uninstall what ever is where its usually at and the confirm boxs are in different places so when script continues to click else where these boxes are blocking it, Is there a work around am i doing something wrong cause you can use wild cards in dos so why when i run a dos command from script it doesnt let me? 2 - Make a saftey check at the end of script do a check to see if any iexplorer is active and if it is close it. thanks in advance Link to comment Share on other sites More sharing options...
wakillon Posted November 18, 2010 Share Posted November 18, 2010 Try to see if your uninstall executable have silent switches It should be more easy... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
bqp2 Posted November 18, 2010 Author Share Posted November 18, 2010 your awesome ,o at end was stopping wild cards thanks first issue is serious at the end of scrip i simply want something like close all if anything is open and hit ok on any of them stupid confirm boxxes Link to comment Share on other sites More sharing options...
AdamUL Posted November 18, 2010 Share Posted November 18, 2010 The programs listed in the Add/Remove Programs are listed in the following registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall (For the 32-bit programs on a 64-bit OS.)Enumerate through them while searching for the DisplayName value that matches the name of the program you want to uninstall. Use the UninstallString value for the DisplayName, and Run the UninstallString. Look at this for an example function for uninstalling MSIs on how to do this.Adam 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