Jump to content

Little Prob With More Than 1 Run()


Recommended Posts

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

  • Moderators

[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

That 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 by big_daddy
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...