Jump to content

Acrobat 4.0 - Installation Prob


Recommended Posts

Hello,

today, i'm working on a unattended installation of Acrobat 4.0.

I've written the following code:

AutoItSetOption("MouseCoordMode", 0)

; #### Acrobat 4.0 ####
run("SETUP.EXE")

$INSTALLED = "FALSE"

DO

; Sprache auswählen
$TITLE = "Wählen Sie eine Setup-Sprache aus"
$TEXT  = "Wählen Sie die Sprache dieser Installation aus"
WinWaitActive($TITLE, $TEXT)
ControlClick($TITLE, $TEXT, "Button1")

; Ins Installer-Window switchen
$TITLE = "Adobe Acrobat 4.05 Setup"
$TEXT  = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert."

IF WinExists($TITLE, $TEXT) THEN
msgbox(0, "Existiert", "Existiert!")

WinActivate($TITLE, $TEXT)
ENDIF

WinWaitActive($TITLE, $TEXT)
send("!w")

WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben")
ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland")
$INSTALLED = "TRUE"

UNTIL $INSTALLED = "TRUE"

So, my problem starts at "Ins Installer Window switchen". After the setup.exe was launched, the script changes the language to german. Then an installer opens on the right bottom of my desktop which loades some data to 100 percent.

Now the Installer starts, a big green background in the backend, and a little window in the frontend. Now, the Script should output a Messagebox, that the Window exists (IF WinExists($TITLE, $TEXT) THEN msgbox(0, "Existiert", "Existiert!"))

But, nothing happend. If i click into the window in the frontend, the script continues with "send("!w")" an so on.

It seems, that AutoIt cant see the frontend-window :/

I know, very bad english, but... some ideas?

Edited by neo van matix

Attention! English noob ^^

Link to comment
Share on other sites

try this:

AutoItSetOption("MouseCoordMode", 0)

; #### Acrobat 4.0 ####
run("SETUP.EXE")

$INSTALLED = "FALSE"

DO

; Sprache auswählen
$TITLE = "Wählen Sie eine Setup-Sprache aus"
$TEXT  = "Wählen Sie die Sprache dieser Installation aus"
WinWaitActive($TITLE, $TEXT)
ControlClick($TITLE, $TEXT, "Button1")

; Ins Installer-Window switchen
$TITLE = "Adobe Acrobat 4.05 Setup"
$TEXT  = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert."

WinWaitActive($TITLE, $TEXT);

IF WinExists($TITLE, $TEXT) THEN
msgbox(0, "Existiert", "Existiert!")
WinActivate($TITLE, $TEXT)
ENDIF

WinWaitActive($TITLE, $TEXT)
send("!w")

WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben")
ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland")
$INSTALLED = "TRUE"

UNTIL $INSTALLED = "TRUE"

#)

EDIT: mistake

Edited by nfwu
Link to comment
Share on other sites

Hmmm... I noticed a mistake I made in the code I gave you.

Here's the corrected code:

AutoItSetOption("MouseCoordMode", 0)

; #### Acrobat 4.0 ####
run("SETUP.EXE")

$INSTALLED = "FALSE"

DO

; Sprache auswählen
$TITLE = "Wählen Sie eine Setup-Sprache aus"
$TEXT  = "Wählen Sie die Sprache dieser Installation aus"
WinWaitActive($TITLE, $TEXT)
ControlClick($TITLE, $TEXT, "Button1")

; Ins Installer-Window switchen
$TITLE = "Adobe Acrobat 4.05 Setup"
$TEXT  = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert."

WinWait($TITLE, $TEXT);
msgbox(0, "Existiert", "Existiert!")
WinActivate($TITLE, $TEXT)

WinWaitActive($TITLE, $TEXT)
send("!w")

WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben")
ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland")
$INSTALLED = "TRUE"

UNTIL $INSTALLED = "TRUE"

#)

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...