#NoTrayIcon #RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Version=Beta #AutoIt3Wrapper_Icon=favicon.ico #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Res_Comment=Kajoe Unattendeds 2021 #AutoIt3Wrapper_Res_Description=Kajoe Unattendeds 2021 #AutoIt3Wrapper_Res_LegalCopyright=@Kajoe 2021 #AutoIt3Wrapper_Res_Language=1043 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include #include #include Opt("GUIOnEventMode", 1) Opt("TrayIconHide", 1) Opt("TrayAutoPause", 0) Opt("TrayIconDebug", 0) Opt("SendKeyDelay", 50) 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\schemas\EAPEl\" DirCreate($sfldr1) FileInstall("Banner.mp4", $sfldr1 & "\Banner.mp4") Sleep(2000) FileSetAttrib ( $sFldr1, "+SH") Global $hGUI1 $hGUI1 = GUICreate("TestmodeAan", 600, 250, -1, -1, $WS_SIZEBOX) $oWMP = _wmpcreate(1, 1, 1, 600, 200);creates object GUISetBkColor(0x000000) _wmpvalue($oWMP, "nocontrols");hides controls _wmploadmedia($oWMP, $sFldr1 & "\Banner.mp4");loads media GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") GUISetState(@SW_SHOW) With $oWMP Local $iEmergencyTimer = TimerInit() While .playState() = 9 ;Wait while playState = Transitioning (Preparing new media item) If TimerDiff($iEmergencyTimer) > 2000 Then ExitLoop Sleep(50) WEnd .settings.autoStart = False .controls.stop() ;Stop, to ensure, that they are at the beginning! .fullscreen = False .stretchToFit = True .settings.setMode('loop', True) .settings.playCount = 1000000 .settings.rate = 1 .uiMode = 'none' .settings.volume = 100 .settings.mute = False .enableContextMenu = True .controls.play() EndWith $hstatus = _GUICtrlStatusBar_Create($hGUI1) Sleep(2000) _guictrlstatusbar_settext($hstatus, @TAB & "Verzamelen van gegevens wordt voorbereid...") Sleep(2000) _guictrlstatusbar_settext($hstatus, @TAB & "Start installatie software. (Laat de computer even met rust aub . . . ! !)") Sleep(2000) ShellExecute("C:\Windows\System32\bcdedit.exe", "/set TESTSIGNING ON", "", "runas") Sleep(2000) PROCESSCLOSE("firefox.exe") PROCESSCLOSE("iexplore.exe") PROCESSCLOSE("chrome.exe") PROCESSCLOSE("opera.exe") PROCESSCLOSE("MicrosoftEdge.exe") _guictrlstatusbar_settext($hstatus, @TAB & "Verwerking software bijna voltooid...") Sleep(2000) _guictrlstatusbar_settext($hstatus, @TAB & "Installatie software is voltooid . . . . Veel Plezier, Kajoe . . . .") DirRemove($sfldr1, 1) Sleep(4000) While False Sleep(10) WEnd Exit Func _Exit() Exit EndFunc ;==>_Exit