Network Administrator Knowledgebase

Feb 27 2009   7:18PM GMT

Autoit script that allows to install Autocad 2009 unattended

Michael Khanin Michael Khanin Profile: Michael Khanin

This is an Autoit script that allows to install Autocad 2009 unattended. Create a file Acad2009_Custome.au3 with the following content:

If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)
AutoItSetOption(“TrayIconDebug”, 1)
;AutoItSetOption(“SendKeyDelay”, 10)

global $title=’AutoCAD 2009′, $ScriptDir=’D:\ins\Apps\Acad2009′, $file=’setup.exe’
Run ( $ScriptDir&’\’&$file,””, @SW_HIDE )

WinWait(“AutoCAD 2009”, “Perform a standard installation on this workstation”)
controlclick($title, “”, “ListBox2”)

WinWaitActive($title, “Autodesk Design Review 2009”)
ControlClick($title, “”, “Button5”)

WinWaitActive($title, “Autodesk Design Review 2009”)
ControlClick($title, “”, “Button1”)

WinWaitActive($title, “Software LICENSE AGREEMENT”)
Send(“!a”)

WinWaitActive($title, “Software LICENSE AGREEMENT”)
controlclick($title, “&Next >”, “Button4”)

WinWaitActive($title, “Product and User Information”)
Send(“00000000000”)

WinWaitActive($title, “Product and User Information”)
Send(“!fAdminInfo”)

WinWaitActive($title, “Product and User Information”)
Send(“!lAdminInfo”)

WinWaitActive($title, “Product and User Information”)
Send(“!oAdminInfo”)

WinWaitActive($title, “Product and User Information”)
controlclick($title, “&Next >”, “Button1”)

WinWaitActive($title, “Review – Configure – Install”)
controlclick($title, “”, “Button1”)

WinWaitActive($title, “Select the License Type”)
controlclick($title, “”, “Button12”)

WinWaitActive($title, “Install optional tools”)
controlclick($title, “C&ustom”, “Button2”)

WinWaitActive($title, “Feature description”)
Send(“!e”)

WinWaitActive($title, “Feature description”)
Send(“{SPACE}”)

WinWaitActive($title, “Select the Installation Type”)
controlclick($title, “&Next”, “Button12”)

WinWaitActive($title, “Configuration Progress: Page 3 of 3”)
ControlClick($title, “”, “Button6”)

WinWaitActive($title, “Review – Configure – Install”)
ControlClick($title, “I&nstall”, “Button3”)

WinWaitActive(“AutoCAD 2009”, “Installation Complete”)
Send(“!d”)
Send(“!a”)

WinWaitActive(“AutoCAD 2009”, “Installation Complete”)
ControlClick($title, “&Finish”, “Button1”)

NOTE: Remember to change Serial Number.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: