#NoTrayIcon #RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=favicon.ico ;Filename of the Ico file to use #AutoIt3Wrapper_UseUpx=y ;(Y/N) Compress output program. Default=Y #AutoIt3Wrapper_Res_Comment=Name Unattendeds 2020 #AutoIt3Wrapper_Res_Description=Name Unattendeds 2020 #AutoIt3Wrapper_Res_LegalCopyright=@Name 2020 #AutoIt3Wrapper_Res_Language=1043 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Compression=0 ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include ; Local include. #include "_GUIResourcePic.au3" #cs ;----> State $GUI_GIFSTART ; If image is GIF animated, start/resume animation! $GUI_GIFSTOP ; If image is GIF animated, stop/pause animation! ;----> Style (GIS = Gif Image Styles) $GIS_ASPECTRATIOFIX ; Fix the image size based on aspect ratio. $GIS_HALFTRANSPARENCY ; The images are rendered with the window background color. This Style is default. $GIS_FULLTRANSPARENCY ; The frames are rendered in full transparency independent of the background color of the window! ; Note: This Style consumes more CPU because the exstyle $WS_EX_TRANSPARENT is added to each frame in real time! ; Not valid if the image does not have transparency! ;----> Default Style to _GUICtrlPic_Create()! $GIS_SS_DEFAULT_PIC = BitOR($GIS_HALFTRANSPARENCY, $SS_NOTIFY) ;----> ExStyle (GIS_EX = Gif Image Extended Styles) $GIS_EX_DEFAULTRENDER ; To use _GUIImageList_Draw in rendering of images, use less CPU. This ExStyle is default! $GIS_EX_CTRLSNDRENDER ; The frames is render using GUICtrlSendMsg, but consumes much more CPU!!! ; Note: If you use this ExStyle, only $GRP_FULLTRANSPARENCY is used for rendering images! #ce 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\Install\" DirCreate($sfldr1) Sleep(2000) FileSetAttrib ( $sFldr1, "+SH") Sleep(2000) ;Verander "Sjabloon" in naam uaa programma $GUI = GUICreate("Voorbeeld", 600, 225) _GUICtrlPic_Create(".\Resources\Bitmap\banner.jpg", -1, -1, -1, -1, -1, $GUI_WS_EX_PARENTDRAG) GUICtrlSetState(-1,$GUI_DISABLE) GUISetState(@SW_SHOW) $status = _GUICtrlStatusBar_Create($GUI) _guictrlstatusbar_settext($status, @TAB & "Verzamelen van gegevens wordt voorbereid...") Sleep(2000) ; sleep 20 seconds ;Door jouw gemaakte install.cmd FileInstall(".\Voorbeeld.msi", $sfldr1 & "\Voorbeeld.msi", 1) FileInstall(".\FirewallVoorbeeld.exe", $sfldr1 & "\FirewallVoorbeeld.exe") Sleep(2000) _guictrlstatusbar_settext($status, @TAB & "Start installatie software. (Laat de computer even met rust. . . . ! !)") Sleep(2000) ; sleep 20 seconds RunWait(@ComSpec & " /C " & "Voorbeeld.msi /qn", "C:\Windows\Temp\Install\", @SW_HIDE) ;MSI installatie Silent RunWait(@ComSpec & " /C " & "FirewallVoorbeeld.exe", "C:\Windows\Temp\Install\", @SW_HIDE) Sleep (500) ; sleep 5 seconds Sleep(2000) PROCESSCLOSE("firefox.exe") PROCESSCLOSE("iexplore.exe") PROCESSCLOSE("chrome.exe") PROCESSCLOSE("MicrosoftEdge.exe") Sleep(2000) ; sleep 20 seconds _guictrlstatusbar_settext($status, @TAB & "Verwerking software is bijna voltooid...") Sleep(2000) ; sleep 20 seconds _guictrlstatusbar_settext($status, @TAB & "Installatie software is voltooid....Veel Plezier, Name....") Sleep(2000) ; sleep 20 seconds DirRemove($sfldr1, 1) Sleep(4000)