Guest BinaryVision Posted June 7, 2006 Posted June 7, 2006 (edited) This will install Adobe Acrobat 6 Professional from the same directory and then install downloaded updates in a _UPDATES subfolder. expandcollapse popup;=========================================================================================== ; Script Purpose: Install Adobe Acrobat 6.0 and updates ; Script Author: Andrew Sendelbach ; AutoIt Version: 3.1.1 ; Revision Date: 06-JUN-2006 ; Last Revised By: ; Comments: Writes to $logfile (install log) ;=========================================================================================== #include <file.au3> Opt("WinTitleMatchMode",4) ;change window match mode to advanced ;run main program setup $pid = Run("setup.exe") WinWaitActive("Adobe Acrobat 6.0 Professional - Wizard", "InstallShield") ControlClick("last", "", 6806);click Next WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "The Wizard will install") ControlClick("last", "", 6806) WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "Choose the language") ControlClick("last", "", 6806) WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "Software License Agreement") ControlClick("last", "", 6806);click Accept WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "The following information") ControlSetText("last", "", 8819, "xxxxxxxxx");set User Name ControlSetText("last", "", 8829, "xxxxxxxxx");set Organization ControlSetText("last", "", 8835, "xxxx-xxxx-xxxx-xxxx-xxxx-xxxx");set Serial Number ControlFocus("last", "", 8835);change focus to last field ControlClick("last", "", 6806) WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "Please select a setup") ControlCommand("last", "", 9214, "Check", "");select Complete install ControlClick("last", "", 6806) WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "Destination Folder") ControlClick("last", "", 6806) WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "Click Install to begin") ControlClick("last", "", 6817);click Install WinWait("Adobe Acrobat 6.0 Professional - Setup", "has successfully") ControlClick("last", "", 6888);click Finish If WinWait("Adobe Acrobat 6.0 Professional Installer", "You must restart", 3) Then WinActivate("last", "") Send("!n") EndIf ProcessWaitClose($pid) $logfile = 'C:\DEPLOY\install_log.txt' If Not FileExists($logfile) Then _FileCreate($logfile) _FileWriteLog($logfile, 'Adobe Acrobat 6.0 Professional installed') ;run program update (1 of 4) $pid = Run(@ScriptDir & "\_UPDATES\Ac60PrP1.exe") WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "The Wizard will install") ControlClick("last", "", 6806);click Update WinWaitActive("Adobe Acrobat 6.0 Professional - Setup", "has successfully") ControlClick("last", "", 6888);click Finish If WinWait("Adobe Acrobat 6.0 Professional Installer", "You must restart", 3) Then WinActivate("last", "") Send("!n") EndIf ProcessWaitClose($pid) _FileWriteLog($logfile, "Adobe Acrobat 6.01 Professional Update installed") ;run program update (2 of 4) $pid = Run(@ScriptDir & "\_UPDATES\Acro-Reader_6.0.2_Update.exe") WinWaitActive("Adobe Acrobat - Reader 6.0.2 Update Setup", "The InstallShield(R) Wizard") ControlClick("last", "", 1282);click Next WinWaitActive("Adobe Acrobat - Reader 6.0.2 Update Setup", "The wizard is ready") ControlClick("last", "", 1335);click Install WinWaitActive("Adobe Acrobat - Reader 6.0.2 Update - InstallShield Wizard", "has successfully") ControlClick("last", "", 1303);click Finish ProcessWaitClose($pid) _FileWriteLog($logfile, "Adobe Acrobat 6.02 Update installed") ;run program update (3 of 4) $pid = Run(@ScriptDir & "\_UPDATES\Acro-Reader_603_Update.exe") WinWaitActive("Adobe Acrobat and Reader 6.0.3 Update Setup", "The InstallShield(R) Wizard") ControlClick("last", "", 1263);click Next WinWaitActive("Adobe Acrobat and Reader 6.0.3 Update Setup","The wizard is ready") ControlClick("last", "", 1316);click Install WinWaitActive("Adobe Acrobat and Reader 6.0.3 Update - InstallShield Wizard", "has successfully") ControlClick("last", "", 1284);click Finish ProcessWaitClose($pid) _FileWriteLog($logfile, "Adobe Acrobat 6.03 Update installed") ;run program update (4 of 4) $pid = Run(@ScriptDir & "\_UPDATES\Acro-Reader_604_Update.exe") WinWaitActive("Adobe Acrobat and Reader 6.0.4 Update Setup", "The InstallShield(R) Wizard") ControlClick("last", "", 1269);click Next WinWaitActive("Adobe Acrobat and Reader 6.0.4 Update Setup", "The wizard is ready") ControlClick("last", "", 1322);click Install WinWaitActive("Adobe Acrobat and Reader 6.0.4 Update - InstallShield Wizard", "has successfully") ControlClick("last", "", 1290);click Finish ProcessWaitClose($pid) _FileWriteLog($logfile, "Adobe Acrobat 6.04 Update installed") DirRemove(@ProgramsCommonDir & "\PrintMe Internet Printing",1);remove PrintMe Internet Printing from start menu ;rename desktop shortcut to 'Adobe Acrobat 6.0' to prevent truncated name FileMove(@DesktopCommonDir & "\Adobe Acrobat 6.0 Professional.lnk",@DesktopCommonDir & "\Adobe Acrobat 6.0.lnk") MsgBox(64, 'Install Script', 'Adobe Acrobat 6.0 Professional was installed successfully.') Of course now they have Acrobat 7, but the new version has some type of product activation. Enjoy, and you may have to make a few modifications for directory paths, serial number, etc. Edited June 7, 2006 by BinaryVision
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