Fiedler Posted July 8, 2008 Share Posted July 8, 2008 I want to use AUTOIT to uninstall the old citrix web client. It has no silent uninstall option, so I have been using this: Run("C:\WINDOWS\system32\ctxsetup.exe /uninst C:\PROGRA~1\Citrix\icaweb32\uninst.inf") WinWaitActive("MetaFrame Presentation Server Web Client for Win32") Send("y") WinWaitActive("MetaFrame Presentation Server Web Client for Win32") Send("{ENTER}") I compile it and run it on the Machine. This works fine untill I do it through beyondexec. I think it fails because when ctxsetup is run, no window appears. Is there a way to just have AUTOIT send the correct keystrokes to ctxsetup and not need to "see" the window open? Or maybe there is another option I'm missing... thanks in advance for the help. Link to comment Share on other sites More sharing options...
Airwolf Posted July 8, 2008 Share Posted July 8, 2008 I want to use AUTOIT to uninstall the old citrix web client. It has no silent uninstall option, so I have been using this:Run("C:\WINDOWS\system32\ctxsetup.exe /uninst C:\PROGRA~1\Citrix\icaweb32\uninst.inf")WinWaitActive("MetaFrame Presentation Server Web Client for Win32")Send("y")WinWaitActive("MetaFrame Presentation Server Web Client for Win32")Send("{ENTER}")I compile it and run it on the Machine. This works fine untill I do it through beyondexec. I think it fails because when ctxsetup is run, no window appears. Is there a way to just have AUTOIT send the correct keystrokes to ctxsetup and not need to "see" the window open? Or maybe there is another option I'm missing... thanks in advance for the help.If there is no silent install option, the installer will have to display on screen for Send() or ControlSend() to work. If beyondexec is running it in an admin profile or something, then that is the problem. I ran into a "no silent install" java installer once, and I ended up creating my own installer with AutoIT (sniff the registry for changes and watch for file changes / dependencies). Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
Fiedler Posted July 8, 2008 Author Share Posted July 8, 2008 so what you're saying is unless a window appears, autoit has no way of sending commands. Link to comment Share on other sites More sharing options...
Airwolf Posted July 8, 2008 Share Posted July 8, 2008 so what you're saying is unless a window appears, autoit has no way of sending commands.Correct. Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 8, 2008 Moderators Share Posted July 8, 2008 so what you're saying is unless a window appears, autoit has no way of sending commands.Correct.muttley If there is a window at all (visible or not), and you can get the Title/Class or Title/Class+ClassNameNN, then ControlSend() would work more than likely. 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...
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