this is what i have and i still get the same error
$location=@MyDocumentsDir&"\"
FileInstall("C:\Users\default\Desktop\untitled.avi",$location,1)
ShellExecute('Wmplayer.exe', $location&"untitled.avi", ' ', 'open')
WinWaitActive("Windows Media Player")
WinWaitClose("Windows Media Player")
FileDelete($location&"untitled.avi")