QUOTE (BoardBabe @ May 14 2005, 12:10 PM)

Final solution for installing Illustrator CS2 with AutoIt. Verified to work on both virtual and real format.
1. Edit the registration and userinformation fields in Abcpy.ini. (Leave the other options as default).
CODE
SERIALNUMBER=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
USERNAME=XXXXX
COMPANYNAME=XXXXXXXX
2. Run the following AutoIt script (compiled to .exe) with no switches from WPI/RunOnceExe or whatever you use to install applications.
CODE
; AutoIt Options.
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
Run('msiexec /i "' & @ScriptDir & '\Adobe Illustrator CS2.msi"')
; Welcome dialog.
If WinWait("Adobe Illustrator CS2 - Setup", "The InstallShield(R) Wizard will install Adobe Illustrator CS2") Then
ControlClick("Adobe Illustrator CS2 - Setup", "The InstallShield(R) Wizard will install Adobe Illustrator CS2", "Button1")
EndIf
; License Agreement.
If WinWait("Adobe Illustrator CS2 - License Agreement") Then
ControlClick("Adobe Illustrator CS2 - License Agreement", "", "Button5")
EndIf
; Customer Information.
If WinWait("Adobe Illustrator CS2 - Setup", "The following information must be entered before installation") Then
ControlClick("Adobe Illustrator CS2 - Setup", "The following information must be entered before installation", "Button2")
EndIf
; Destination Folder.
If WinWait("Adobe Illustrator CS2 - Setup", "Destination Folder") Then
ControlClick("Adobe Illustrator CS2 - Setup", "Destination Folder", "Button1")
EndIf
; Ready to Install the Program.
If WinWait("Adobe Illustrator CS2 - Setup", "Ready to Install the Program") Then
ControlClick("Adobe Illustrator CS2 - Setup", "Ready to Install the Program", "Button1")
EndIf
; QuickTime 6 is required.
If WinWait("Adobe Illustrator CS2 - Setup", "QuickTime 6 is required", 900) Then
ControlClick("Adobe Illustrator CS2 - Setup", "QuickTime 6 is required", "Button1")
EndIf
; InstallShield Wizard Completed.
If WinWait("Adobe Illustrator CS2 - Setup", "InstallShield Wizard Completed") Then
ControlClick("Adobe Illustrator CS2 - Setup", "InstallShield Wizard Completed", "Button3")
EndIf
EXIT
;eof

I have messed my Abcpy.ini and now everytime i install illustrator using the script above, illustrator prompt me to enter the serial number, (I am using the autoit script mentioned above), what is weird for me is that if i try to install it by double clicking the Illustrator.exe which is the autoit file it installs perfectly without interruption but if i am doing it from an unattended xp it hungs on this windows "The following information must be entered before installation" when i enter my serial number, the autoit script continue normally
below is my Abcpy.ini
;***************************************************************
;Adobe Installer External Configuration File: Abcpy.ini
;***************************************************************
;***************************************************************
;Main Section
;The (Product) key is a required key
;***************************************************************
[MAIN]
Product=Adobe Illustrator CS2
AbcpyVersion=2.0
;***************************************************************
;OEM Installation Options
;***************************************************************
[OEM Install]
SERIALNUMBER=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
USERNAME=Nakkoush
COMPANYNAME=Home
INSTALLDIR=
ARPHELPLINK=
ARPHELPTELEPHONE=
ARPNOMODIFY=
do i need to put the serial number in this format?
SERIALNUMBER=
"XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
" or maybe the sequence has to be the same as illustrator asks which is:
[OEM Install]
USERNAME=Nakkoush
COMPANYNAME=Home
SERIALNUMBER=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
Thanks in advance