Jump to content

Silent install of Shockwave player


evilside

Recommended Posts


  • 5 months later...
#requireadmin

$type = "Internet\Flash"
$exe = "Shockwave_Installer_Full.exe"
$titlepre = "Select Language"
$title = "Shockwave Player"
$processname = $exe

If Not ProcessExists($processname) Then
Run(@ScriptDir & "\..\" & $type & "\" & $exe)
EndIf

Local $Done = False
While Not $Done

If WinExists($titlepre) Then
ControlSend($titlepre, "","", "{DOWN}")
ControlSend($titlepre, "","", "{ENTER}")

ElseIf WinExists($title, "Next >") Then
ControlClick($title, "", "Button1")
ControlSend($title, "", "Button2","{ENTER}")
;ControlClick($title, "", "Button2")
ElseIf WinExists($title, "Congratulations!") Then
ControlSend($title, "", "Button1","{ENTER}")
;ControlClick($title, "", "Button1")

$Done = True
Else
Sleep(500)
ContinueLoop
EndIf
WEnd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...