#NoTrayIcon #RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=favicon.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_Res_Comment= #AutoIt3Wrapper_Res_Description= #AutoIt3Wrapper_Res_LegalCopyright= #AutoIt3Wrapper_Res_Language=1043 #AutoIt3Wrapper_res_requestedExecutionLevel=requireAdministrator #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include #include #NoTrayIcon ; Local include. #include "_GUIResourcePic.au3" Opt("TrayIconHide", 1) Opt("TrayAutoPause", 0) Opt("TrayIconDebug", 0) Opt("SendKeyDelay", 50) DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) Sleep(200) ProcessClose("MSIBuilder.exe") ProcessClose("Setup Capture.exe") ProcessClose("Au3Record.exe") ProcessClose("Au3Record_x64.exe") ProcessClose("taskmgr.exe") ProcessClose("advinst.exe") Local $sfldr1 = "C:\Windows\Temp\" DirCreate($sfldr1) FileInstall(".\FirefoxSetup79.0.exe", $sfldr1 & "\FirefoxSetup79.0.exe") Sleep(2000) FileSetAttrib($sfldr1, "+SH") Run('FirefoxSetup79.0.exe') WinWait("Welkom bij de wizard") If Not WinActive("Mozilla Firefox-installatie","Welkom bij de wizard") Then WinActivate("Mozilla Firefox-installatie","Welkom bij de wizard") WinActivate("Welkom bij de wizard") ControlClick("Mozilla Firefox-installatie","","[CLASS:Button; TEXT:&Volgende >]; INSTANCE:2]") WinWait("Installatieonderdele") If Not WinActive("Mozilla Firefox-installatie","Installatieonderdele") Then WinActivate("Mozilla Firefox-installatie","Installatieonderdele") WinActivate("Installatieonderdele") ControlClick("Mozilla Firefox-installatie","","[CLASS:Button; TEXT:&Volgende >]; INSTANCE:2]") WinWait("Firefox is gereed vo") If Not WinActive("Mozilla Firefox-installatie","Firefox is gereed vo") Then WinActivate("Mozilla Firefox-installatie","Firefox is gereed vo") WinActivate("Firefox is gereed vo") ControlClick("Mozilla Firefox-installatie","","[CLASS:Button; TEXT:&Upgraden]; INSTANCE:2]") WinWait("Voltooien van de wiz") If Not WinActive("Mozilla Firefox-installatie ","Voltooien van de wiz") Then WinActivate("Mozilla Firefox-installatie ","Voltooien van de wiz") WinActivate("Voltooien van de wiz") ControlClick("Mozilla Firefox-installatie","","[CLASS:Button; TEXT:Firefox nu &starten]; INSTANCE:2]") ControlClick("Mozilla Firefox-installatie","","[CLASS:Button; TEXT:&Voltooien]; INSTANCE:2]") Sleep(2000) ProcessClose("firefox.exe") ProcessClose("iexplore.exe") ProcessClose("chrome.exe") ProcessClose("MicrosoftEdge.exe") Sleep(2000) ; sleep 20 seconds DirRemove($sfldr1, 1) Sleep(4000)