tdp.nephlim Posted September 10, 2006 Share Posted September 10, 2006 Hi folks, my company wants a script to uninstall and reinstall a software. The clue is, that no user should take notice that we do something on his/her machine. So what I need is, hiding windows before the user is able to see it. Is this possible in AutoIT? Here's what I've until now: Run( "d:\daten\vpn\setup.exe ADD_REMOVE", "", @SW_HIDE ) $do = 1 While $do = 1 If WinExists( "Confirm File Deletion" ) Then ExitLoop EndIf WEnd WinSetState( "Confirm File Deletion", "", @SW_HIDE ) ControlClick( "Confirm File Deletion", "", "Button2" ) HINT: It's only a small part of the complete script... So is anybody out there who is able to help a frustrated programming guy...? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 10, 2006 Moderators Share Posted September 10, 2006 Most uninstall software have switches to run them silently. The "clue" is to check the software and find out what those switches are. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tdp.nephlim Posted September 10, 2006 Author Share Posted September 10, 2006 Yes, I tried that, but I found no switches to do that... Is there no possibility in AutoIT? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 10, 2006 Moderators Share Posted September 10, 2006 Yes, I tried that, but I found no switches to do that...Is there no possibility in AutoIT?I've never been satisfied with the way to do it, because they always see the window first, even if it's for a split second.You want a silent install it sounds like, why don't you tell us the name of the vpn program, and maybe someone already knows the switches you'd need. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tdp.nephlim Posted September 10, 2006 Author Share Posted September 10, 2006 (edited) The program is Checkpoint SecuRemote. And it is a silent uninstall.Thanks a lot!!EDIT:I've found it myself... The commandline is: [Drive]\[Program Files Dir]\InstallShield Installation Information\[installShield ID]\setup.exe ADD_REMOVE -s -f1[Drive]\[Program Files Dir]\InstallShield Installation Information\[installShield ID]\uninst.issBut anyway thanks for your help!! Edited September 10, 2006 by tdp.nephlim 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