WaitWindowOpen>Setup
setfocus>Setup
WaitWindowOpen>Confirm
The script will halt at this stage and I have to close Confirm window manually else it HANGS together with msched
please help
Code: Select all
/////////////////////////////////////////////////////////////////////////////////////
// Prinstall_WinACE
Let>Title=Prinstall_WinACE
/////////////////////////////////////////////////////////////////////////////////////
VBSTART
Const OverWriteFiles = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
Sub BoxMsg (msg)
MsgBox msg
End Sub
Sub DeleteDir (Input)
Set onstart = CreateObject("Scripting.FileSystemObject")
Onstart.DeleteFolder(Input)
Set OnStart = nothing
End Sub
Sub CopyDir (SourceDir,TargetDir)
objFSO.CopyFolder SourceDir , TargetDir , OverWriteFiles
End Sub
VBEND
/////////////////////////////////////////////////////////////////////////////////////
// GLOBAL INIT
CapsOff
Let>CF_OVERWRITE=1
Let>RP_WAIT=2
Let>SK_DELAY=10
// GLOBAL
Let>SourceDir=Z:\RE\PH\Install\Winace
Let>InstallDir=C:\Program Files\WinAce
Let>Installer=wace261i.exe
// UNIQUE
Let>Application=winace.exe
Let>Serial=??????????????????????
/////////////////////////////////////////////////////////////////////////////////////
// START APPLICATION
Gosub>Temporize
Gosub>Run,"%TEMP_DIR%%Title%\%Installer%"
Label>1
Gosub>WaitWinOpen,Information
Press Enter
Gosub>WaitFailWinClose,Information,1
Gosub>WaitWinOpen,Choose Destination Location
Send Character/Text>InstallDir
Gosub>Focus,Choose Destination Location
Press Enter
Gosub>WaitWinOpen,Sfx-Factory!
Send>j
WaitWindowOpen>Setup
setfocus>Setup
WaitWindowOpen>Confirm
Goto>Finished
/////////////////////////////////////////////////////////////////////////////////////
// SUBROUTINES
SRT>CloseApp
Press ALT
Press F4
Release ALT
Wait>2
End>CloseApp
SRT>Focus
SetFocus>Focus_Var_1
WaitReady>0
Wait>1
SetFocus>Focus_Var_1
End>Focus
SRT>WaitWinOpen
WaitWindowOpen>WaitWinOpen_Var_1
Gosub>Focus,WaitWinOpen_Var_1
End>WaitWinOpen
SRT>WaitFailWinOpen
ifWindowOpen>WaitFailWinOpen_Var_1
Gosub>Focus,WaitFailWinOpen_Var_1
else
wait>1
Assigned>WaitFailWinOpen_Var_2,strNameExists
If>strNameExists=TRUE
goto>WaitFailWinOpen_Var_2
endif
endif
End>WaitFailWinOpen
SRT>WaitFailWinClose
ifWindowOpen>WaitFailWinClose_Var_1
Gosub>Focus,WaitFailWinOpen_Var_1
Assigned>WaitFailWinClose_Var_2,strNameExists
If>strNameExists=TRUE
goto>WaitFailWinClose_Var_2
endif
endif
End>WaitFailWinClose
SRT>Temporize
VBRun>CopyDir,%SourceDir%,%TEMP_DIR%%Title%
End>Temporize
SRT>Run
Run Program>Run_Var_1
WaitReady>0
Wait>2
End>Run
// SUBROUTINES END
/////////////////////////////////////////////////////////////////////////////////////
Label>Finished