Automated install of Adobe CS4 Creative Suite Premium

Adobe has a deployment guide for silent install of CS4. If you need that, visit Adobe. I needed an automated installer, which gave the user some kind of indication on what was going on (progress bar). When running silent I got about 4 calls per user asking if the installer was finished since they couldn’t see anything going on and couldn’t do anything else when it was running. Despite the fact that the silent installer was scripted to tell the use exactly that and that he/ she should wait for a reboot to indicate that the install was completed.
This script for automated install was made using AutoIT which is a great tool for these jobs. If you decide to use this I would recommend downloading AutoIT and also the Script Editor from http://www.autoitscript.com/autoit3/downloads.shtml. The editor includes a tool called ScriptWriter, which will record your actions during a manual install and make a script for automating the procedure. The base usually needs some work, but will help you in the right direction.
Since CS4 has integration towards a lot of programs, you should first issue a warning that all other programs should be closed during the install. This is important to avoid pauses in the script execution. These two show typical showstoppers in the install. If you expect any of these you have to adapt your script. 

Adobe CS4 AlertsAdobe CS4  Alerts2

The screenshots below the script show the steps for the manual install, but first the script.

CODE:

;Script for automated install of Adobe Creative Suite CS4
Opt(“WinWaitDelay”,100)
Opt(“WinTitleMatchMode”,4)
Opt(“WinDetectHiddenText”,1)
Opt(“MouseCoordMode”,0)

;Give the user a warning
Switch MsgBox(4161, “Important”, “Before you start installing Adobe CS4 Creative Suite close all running programs or the install will fail. Click Ok to continue or Cancel to abort the install”)
Case 1 ;”Ok”

;Path to the Adobe CS4 setup file
Run(‘.\Adobe\Adobe.CS4\Setup.exe’)
WinWait(“Installasjon av Adobe Creative Suite 4 Design Premium – Welcome”,””)
If Not WinActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Welcome”,””) Then WinActivate(“Installasjon av Adobe Creative Suite 4 Design Premium – Welcome”,””)
WinWaitActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Welcome”,””)
;Your serial number for the install
Send(“xxxxxxxxxxxxxxxxxxxxxxxx{ALTDOWN}n{ALTUP}”)

WinWait(“Installasjon av Adobe Creative Suite 4 Design Premium – License”,””)
If Not WinActive(“Installasjon av Adobe Creative Suite 4 Design Premium – License”,””) Then WinActivate(“Installasjon av Adobe Creative Suite 4 Design Premium – License”,””)
WinWaitActive(“Installasjon av Adobe Creative Suite 4 Design Premium – License”,””)
Send(“{ALTDOWN}a{ALTUP}”)

WinWait(“Installasjon av Adobe Creative Suite 4 Design Premium – Options”,””)
If Not WinActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Options”,””) Then WinActivate(“Installasjon av Adobe Creative Suite 4 Design Premium – Options”,””)
WinWaitActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Options”,””)
Send(“{ALTDOWN}i{ALTUP}”)

WinWait(“Adobe Creative Suite 4 Design Premium”,”Register &Later”)
If Not WinActive(“Adobe Creative Suite 4 Design Premium”,”Register &Later”) Then WinActivate(“Adobe Creative Suite 4 Design Premium”,”Register &Later”)
WinWaitActive(“Adobe Creative Suite 4 Design Premium”,”Register &Later”)
Send(“{ALTDOWN}l{ALTUP}”)

WinWait(“Installasjon av Adobe Creative Suite 4 Design Premium – Done”,””)
If Not WinActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Done”,””) Then WinActivate(“Installasjon av Adobe Creative Suite 4 Design Premium – Done”,””)
WinWaitActive(“Installasjon av Adobe Creative Suite 4 Design Premium – Done”,””)
Send(“{ALTDOWN}e{ALTUP}”)

;Some registry keys for features you might want to disable.
;Suppress updates for Acrobat 9
;The installer does not contain a method to automatically cause the updates to be suppressed for Acrobat 9.
RegWrite(“HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\9.0\FeatureLockdown”,”bUpdater”, “REG_DWORD”, “00000000”)

;Disable Adobe Product Improvement Program
RegWrite(“HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\APIP”, “enabled”, “REG_DWORD”, “00000000”)

;Disable Help > Digital Editions” (get e-book$ online) for Acrobat 9
RegWrite(“HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\9.0\FeatureLockDown”, “bShowEbookMenu”, “REG_DWORD”, “00000000”)

;”Disable all Acrobat.com access, including initiation and participation” for Acrobat 9
RegWrite(“HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\9.0\Downtown”, “bDontShowAtLaunch”, “REG_DWORD”, “00000001”)
RegWrite(“HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\9.0\Downtown”, “bGoOnline”, “REG_DWORD”, “00000000”)

Case 2 ;”Cancel”
Exit
EndSwitch

Screenshots:

Adobe CS4 Initialize

Adobe CS4 Welcome

Adobe CS4 License

Adobe CS4 Options

Adobe CS4 Progress

Register
[ad name=”ad-1″]

Leave a Comment