Run("npp.5.4.5.Installer.exe")
WinWaitActive("Installer Language","Please select a language.")
ControlClick("Installer Language","Please select a language.","[class:Button;INSTANCE:1]")
WinWaitActive("Notepad++ v5.4.5 Setup","Welcome to the Notepad++ v5.4.5 Setup Wizard")
ControlClick("Notepad++ v5.4.5 Setup","Welcome to the Notepad++ v5.4.5 Setup Wizard","[class:Button;INSTANCE:2]")
WinWaitActive("Notepad++ v5.4.5 Setup","License Agreement")
ControlClick("Notepad++ v5.4.5 Setup","License Agreement","[class:Button;INSTANCE:2]")
WinWaitActive("Notepad++ v5.4.5 Setup","Choose Install Location")
ControlClick("Notepad++ v5.4.5 Setup","Choose Install Location","[class:Button;INSTANCE:2]")
WinWaitActive("Notepad++ v5.4.5 Setup","Choose Components")
ControlClick("Notepad++ v5.4.5 Setup","Choose Components","[class:Button;INSTANCE:2]")
WinWaitActive("Notepad++ v5.4.5 Setup","Completing the Notepad++ v5.4.5 Setup Wizard")
ControlClick("Notepad++ v5.4.5 Setup","Completing the Notepad++ v5.4.5 Setup Wizard","[class:Button;INSTANCE:2]")
WinWaitActive("Notepad++ update","An update package is available, do you want to download it?")
ControlClick("Notepad++ update","An update package is available, do you want to download it?","[class:Button;INSTANCE:2]")
WinWaitActive("E:\Program Files (x86)\Notepad++\change.log - Notepad++")
ProcessClose("Notepad++.exe") |