WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Auto Install For SpybotSD


Attached is the code for installing spybotsd13. I've taken the defaults from the installation. Kind of clugy, but seems to function - would probably not recommend using it on other version (used a lot of the 'sendkey' command). This installation routine requires the spybot 13 files - I'll gladly upload the compiled WBT that has the code if anyone is interested. Thanks to everyone for helping me work through the ugly pieces. Mike H
;RoboScripter

; Made with 
;   RoboScripter ver: 29
;   CtlMgr ver: 20033
AddExtender("wwctl34i.dll")

;Launch Program
Run("C:\Documents and Settings\Administrator\My Documents\Clients\Disd - Internal\Winbatch Coding\Application installation\Spybot\spybotsd13.exe","")

WinWaitExist("Select Setup Language",0)
SendKey(`~`)     ;Sends Keystrokes

WinWaitExist("Welcome to~",0)
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("License Agreement",0)
SendKey(`!a`)     ;Sends Keystrokes
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("Select Destination Location",0)
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("Select Components",0)
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("Select Start Menu Folder",0)
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("Select Additional Tasks",0)
SendKey(`!n`)     ;Sends Keystrokes

WinWaitExist("Ready to Install",0)
SendKey(`!i`)     ;Sends Keystrokes

;This is the post install process from here on....

TimeDelay(10)
SendKey(`!f`)     ;Sends Keystrokes

WinWaitExist("Completing~",2)
TimeDelay(1)
SendKey(`!f`)     ;Sends Keystrokes


WinWaitExist("Legal Stuff",0)
SendKey(`~`)     ;Sends Keystrokes

WinWaitExist("Compatibility Warning",0)
SendKey(`~`)     ;Sends Keystrokes

ControlHandle=cWndByWndSpec("TformMain","SpybotSD",4,7274836,328260,1638750,459330)
WinWaitExist("Spybot - Search & Destroy", -1 )  
WinClose("Spybot - Search & Destroy")     ;Close top level window


exit


Article ID:   W16688
File Created: 2005:02:18:12:21:52
Last Updated: 2005:02:18:12:21:52