#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#region ---Au3Recorder generated code Start (v3.3.7.0) ---
#region --- Internal functions Au3Recorder Start ---
#requireadmin
Run("\\xxx-fs-1.xxx.uxx.edu\software\npp.6.3.3.Installer.exe")
WinWait("Installer Language","Please select a language")
WinActivate("Installer Language","Please select a language")
ControlClick("Installer Language","Please select a language",1)
WinWait("Notepad++ v6.3.3 Setup","Welcome to the Notepad++ v6.3.3 Setup")
WinActivate("Notepad++ v6.3.3 Setup","Welcome to the Notepad++ v6.3.3 Setup")
ControlClick("Notepad++ v6.3.3 Setup","Welcome to the Notepad++ v6.3.3 Setup",1)
WinWait("Notepad++ v6.3.3 Setup","License Agreement")
WinActivate("Notepad++ v6.3.3 Setup","License Agreement")
ControlClick("Notepad++ v6.3.3 Setup","License Agreement",1)
WinWait("Notepad++ v6.3.3 Setup","Choose Install Location")
WinActivate("Notepad++ v6.3.3 Setup","Choose Install Location")
ControlClick("Notepad++ v6.3.3 Setup","Choose Install Location",1)
WinWait("Notepad++ v6.3.3 Setup","Choose Components")
WinActivate("Notepad++ v6.3.3 Setup","Choose Components")
ControlClick("Notepad++ v6.3.3 Setup","Choose Components",1)
WinWait("Notepad++ v6.3.3 Setup","Choose Components")
WinActivate("Notepad++ v6.3.3 Setup","Install")
ControlClick("Notepad++ v6.3.3 Setup","Install",1)
WinWait("Notepad++ v6.3.3 Setup","Completing the Notepad++ v6.3.3 Setup")
WinActivate("Notepad++ v6.3.3 Setup","Completing the Notepad++ v6.3.3 Setup")
ControlClick("Notepad++ v6.3.3 Setup","Completing the Notepad++ v6.3.3 Setup",1203)
ControlClick("Notepad++ v6.3.3 Setup","Completing the Notepad++ v6.3.3 Setup",1)
Exit
#endregion --- Au3Recorder generated code End ---
This is my test code to install notepad++ remotely and it fails to install remotely.. Is there a better way to code this? Also is it possible to repackage the Installer file so that instead of having the installer.exe and the autoit script.exe I can have one .exe that can automatically install?