;This is to verify that programs runs in administrative mode #RequireAdmin ;Run MSI setup from active directory of script file Run(@ScriptDir & '\GSMSetup12062017.msi') ;wait for window to open and become active AutoItSetOption('MousecoordMode',0) WinWait('Global Site Management (GSM2.0)') ;WinWait("[CLASS:MsiDialogCloseClass]") WinActive('Global Site Management (GSM2.0)') ;WinActive("[CLASS:MsiDialogCloseClass]") ;Found coordinates of mouse click MouseClick('primary',445,385,1,50) Exit