Have you ever danced with the tester by the pale moon light?

Sunday 31 May 2009 - AutoIt WinZip install script.

So in the AutoIt Help file there is a tutorial on writing a script to install WinZip.  For anybody else working on their scripting I've attached the one I wrote as the Help file one is out of date as it's for WinZip 9.

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         Tony Bruce

 Script Function:
 Install Evaluation Version of WinZip 12.1.  Keyboard shortcuts used (Send function)

#ce ----------------------------------------------------------------------------
; Run the WinZip installer
Run ("winzip121.exe")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip® 12.1 Setup", "&Setup")
; Click/Send S
Send ("!s")
; Wait for the WinZip 12.1 Setup Uniblue RegistryBooster screen to become active
WinWaitActive ("WinZip Setup - Uniblue RegistryBooster 2 Offer")
; Click/Send N
Send ("!n")
; Pause for 3 seconds
Sleep(3000)
; Click/Send Enter
Send ("{ENTER}")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next")
; Click/Send N
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&accept the license agreement")
; Click/Send A
Send ("!a")
; Pause for 1 second
Sleep(1000)
; Click/Send N
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next >")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next")
; Click/Send N
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next")
; Click/Send N
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next")
; Click/Send N
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Next")
; Click/Send N
Send ("!n")
; Wait for the WinZip Setup screen to become active
WinWaitActive ("WinZip Setup", "&Next >")
; Click/Send N
Send ("!n")
; Wait for the WinZip Setup screen to become active
WinWaitActive ("WinZip Setup", "&Next >")
; Click/Send N
Send ("!n")
; Wait for the WinZip Setup screen to become active
WinWaitActive ("WinZip Setup", "&Next >")
; Click/Send
Send ("!n")
; Wait for the WinZip 12.1 Setup screen to become active
WinWaitActive ("WinZip 12.1 Setup", "&Finish")
; Click/Send F
Send ("!f")
; Wait for the WinZip screen to become active
WinWaitActive ("WinZip", "&Register")
; Click/Send V
Send ("!v")
; Wait for the WinZip Tip of the Day screen to become active
WinWaitActive ("WinZip Tip of the Day")
; Click/Send Enter
Send ("{ENTER}")
; Wait for the WinZip screen to become active
WinWaitActive ("WinZip (Evaluation Version)")
; Close the WinZip screen.
WinClose ("WinZip (Evaluation Version)")
; Close ("WinZip® - Installation Complete")
WinClose ("WinZip® - Installation Complete")


<- Last PageNext Page ->

About Me

A place for me to write about testing and tested related things. Occasionally general items will sneak in but that's life.

Links

Home
View my profile
Archives
Friends
Email Me
LinkedIn
RSS
Twitter

Friends

philk10
jimtest
PeteNairn
strazzerj