#NoTrayIcon #RequireAdmin Opt ( "WinTitleMatchMode", 4 ) $Name0 = "Netfx48_Slim_x86_x64.exe" $Name1 = "Установщик Windows" $Name2 = "Microsoft .NET Framework" Run ( @ScriptDir & "\" & $Name0, "", @SW_HIDE ) While 1 If WinExists ( "[REGEXPTITLE:.*" & $Name1 & ".*]", "" ) Then WinSetState ( "[REGEXPTITLE:.*" & $Name1 & ".*]", "", @SW_HIDE ) EndIf If WinExists ( "[REGEXPTITLE:.*" & $Name2 & ".*]", "" ) Then WinSetState ( "[REGEXPTITLE:.*" & $Name2 & ".*]", "", @SW_HIDE ) ExitLoop ( 1 ) EndIf WEnd While ProcessExists ( $Name0 ) Sleep ( 1000 ) WEnd Exit