neo van matix Posted April 3, 2006 Share Posted April 3, 2006 Hello, sry for the bad english, i'm only a little guy from germany ;D Ive the following problem: I code a unattended installation of some programs, currently: Mindmanager and some Servicepacks. Heres a little piece of my code: ; #### Start MindManager 2002 #### run("mm2002ent-g-621.exe") WinWaitActive("Willkommen", "Willkommen im Installationsprogramm für MindManager") send("!w") WinWaitActive("MindManager 2002 Installation", "Bitte lesen Sie sich den") send("!j") [.....] WinWaitActive("MindManager 2002 Installation", "Installation beginnen") ControlCommand("MindManager 2002 Installation", "Installation beginnen", "Button4", "UnCheck", "") send("!w") ; #### Mind Manager Update #### run("mmsp2002-g-782.exe") WinWaitActive("MindManager 2002 Service Pack", "Willkommen zu MindManager 2002") send("!w") So, my problem is, that the Mind Manager Update starts before the Mind Manager Setup finished the installation. How can i solve this problem? I tried to check, if the process of Mind Manger Setup process already closed before i run() the Update, but that did not work. Maybe, because the name of the process change during the setup. can someone help me (relating my problem, not my bad english. Ha, was that a very bad english joke? ^^) Attention! English noob ^^ Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted April 3, 2006 Moderators Share Posted April 3, 2006 You could use WinWaitClose("MindManager 2002 Installation") Link to comment Share on other sites More sharing options...
Nuffilein805 Posted April 3, 2006 Share Posted April 3, 2006 [german] probiers doch mal mit runwait das wartet bis das 1te fertig ist also beide runwait mein ich [/german] have a go on runwait - waiting for the run-command to finish my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted April 3, 2006 Moderators Share Posted April 3, 2006 (edited) [german] probiers doch mal mit runwait das wartet bis das 1te fertig ist also beide runwait mein ich [/german] have a go on runwait - waiting for the run-command to finishThat would not allow for the automation of the install. This should do the trick: ; #### Start MindManager 2002 #### run("mm2002ent-g-621.exe") WinWaitActive("Willkommen", "Willkommen im Installationsprogramm für MindManager") send("!w") WinWaitActive("MindManager 2002 Installation", "Bitte lesen Sie sich den") send("!j") [.....] WinWaitActive("MindManager 2002 Installation", "Installation beginnen") ControlCommand("MindManager 2002 Installation", "Installation beginnen", "Button4", "UnCheck", "") send("!w") WinWaitClose("MindManager 2002 Installation") ; #### Mind Manager Update #### run("mmsp2002-g-782.exe") WinWaitActive("MindManager 2002 Service Pack", "Willkommen zu MindManager 2002") send("!w") Edited April 3, 2006 by big_daddy 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