Jump to content

UNINSTALL OLD QUICKTIME


Recommended Posts

hi to all Autoit community.Im a newbie learning n trying Autoit.I'm am told to complete a task which is to uninstall old version of quicktime and install a new version.So far,i've searched n learned from others topics n posts.finally i've produced my own script.But being newbie obviously errors and problems not far behind.This is my script :-

UNINSTALL OLD QUICKTIME

CODE
Run("MsiExec.exe /I{quicktime reg string}")

WinWaitActive("QuickTime for Windows", "&Remove")

Send("!r")

WinWaitActive("QuickTime for Windows", "&Yes")

Send("{ENTER}")

WinWaitActive("QuickTime for Windows", "&Finish")

Send("{ENTER}")

WinWaitActive("QuickTime for Windows", "&No")

Send("{ENTER}")

Exit

INSTALL NEW VERSION QUICKTIME

CODE
Run("QuickTimeInstaller72.exe")

WinWaitActive("QuickTime for Windows", "&Next")

Send("!n")

WinWaitActive("QuickTime for Windows", "&Yes")

Send("!y")

WinWaitActive("QuickTime for Windows", "&Install")

Send("{ENTER}")

WinWaitActive("QuickTime for Windows", "&Finish")

Send("{ENTER}")

WinClose("QuickTime for Windows", "")

Exit

Now,the problem im facing is that after finish installing quicktime,the last window asking for Go Pro.I cant seem to close it with Autoit.Gotta close it manually.Is this code wrong?

WinClose("QuickTime for Windows", "")

And is there anyway to exit Autoit script after finish executing?Please need help here.Thank you

Link to comment
Share on other sites

You can use WinClose("","") for current active window, or use ProcessKill("")

AutoIt script auto exit after executing(no more command so it exits)

i've tried it juz now and still its not working.The last window saying Go Pro Now is not closing at all unless i manually click.

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
 Share

  • Recently Browsing   0 members

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