Fastlane Posted July 21, 2006 Share Posted July 21, 2006 HiI´m new here so i hope that someone can help...I´m trying to make an automated install of outlook 2007, and every thing goes fine right until an error box pops up and screws the rest of the script...The thing is that the entire Office 2007 beta2 installation wizzard has the same window title.This is normally not a problem but during the installation (coping files ect. with a progressbar) it gets interrupted by a warning window, not a problem i just ignore it and want to return back to the installation window, but here is the trickey thing, when returning back to the installtion window my script continues with what it should do after the progressbar finishes and therefore it ends to earlywhat i want to know is how do i return from the warning box back to the installation window without continuning the script before the progressbar is done and a new window (with the same title) appears where i only have to press "c".snip of script:WinWaitActive ("Microsoft Office Professional Plus 2007 (Beta)") ; press P to start installingSend ("!p") ; alt+p = presses the Upgrade button and installation beginsWinWaitActive ("The following applications should be closed before continuing the install:")If WinExists ("The following applications should be closed before continuing the install:") then Do Send("!i") Until WinExists ("Microsoft Office Professional Plus 2007 (Beta)")ElseEndIf;heres the problem i return to a window where its not ready to revice the Send ("!c") but after the progressbar is done i need to Send ("!c") and i cannot use any kind of delay or sleepWinWaitActive ("Microsoft Office Professional Plus 2007 (Beta)")Send ("!c")all this could easly be fixed with using the "text" inside the window but there is none... i just cant seperate the different steps through the installation...Hope someone has an answer or some creative input...thx Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 21, 2006 Share Posted July 21, 2006 Hi, what about using the silent install? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Matthy Posted July 21, 2006 Share Posted July 21, 2006 stealth meaby? Run("Notepad.exe", "", @SW_HIDE) or did u meant something else Link to comment Share on other sites More sharing options...
Fastlane Posted July 21, 2006 Author Share Posted July 21, 2006 hmm i cant run it silent because it´s beta... none of the "normal" silent install procedures like /quiet or a .MST file works and the install dont have to be "hidden"... but thx Link to comment Share on other sites More sharing options...
Skruge Posted July 21, 2006 Share Posted July 21, 2006 Welcome to the forums! Read the help file and study the differences between WinWaitActive, WinWait, and WinActivate. Use ControlSend/ControlClick instead of sending keystrokes. Use an adlib function to detect "applications should be closed" messages. For the progress bar issue, check out the WinDetectHiddenText option or PixelChecksum. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] 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