Run ( "setup.exe" )
WinWaitActive ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","B&rowse...","Button6")
WinwaitActive ("Choose Folder","Please choose the installation folder.")
ControlSend ("Choose Folder" , "" ,"Edit1" , @ProgramFilesDir & "\Mathematica 5.1")
ControlClick ("Choose Folder","OK","Button1")
WinWaitActive ("Mathematica 5.1 Setup" , "Installation Folder" )
ControlClick ("Mathematica 5.1 Setup","I&nstall","Button1")
======================================================
WinActivate ("Mathematica 5.1 Setup" , "&Enter license information now" )
WinWaitActive ("Mathematica 5.1 Setup" , "&Enter license information now" )
ControlClick ("Mathematica 5.1 Setup","&Finish","Button2")
WinActivate ("Personalize Mathematica" , "Net&work License" )
WinWaitActive ("Personalize Mathematica" , "Net&work License" )
ControlSend ("Personalize Mathematica" , "" , "Edit3" , "xxxxx-xxxx" )
ControlClick ("Personalize Mathematica" , "OK" , "Button4")
Winwaitactive ("Personalize Mathematica" , "&MathID" )
ControlSend ("Personalize Mathematica" , "" , "Edit1" ,"xxxx-xxxxx-xxxxx" )
ControlSend ("Personalize Mathematica" , "" , "Edit2" ,"xxxx-xxx-xxx" )
ControlClick ("Personalize Mathematica", "OK" , "Button2")
ProcessClose ( "Mathematica.exe" )
the equals singns are durring the actual installation at the end of which the finalization window gets loaded however the finalization window is not laoded active and i cant figure out how to activate it. once i manually activate it the rest of the script runs fine.Thanks all



Help

Back to top








