#RequireAdmin #include #include #include #include #include "ChangeResolution.au3" #include "uac.au3" #include "fontInstall.au3" #include "smartScreen.au3" #include "jinit.au3" #include "cpp.au3" #include "domainhelp.au3" _WinAPI_Wow64EnableWow64FsRedirection(False) Func _RandomString($iLength) $aChars = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", "") $sString = "" While $iLength > StringLen($sString) If $sString < "A" Then $sString = "" $sString &= $aChars[Random(1, $aChars[0],1)] WEnd Return $sString EndFunc ;==>_RandomString Func _install_dot_net() ;get drive letter of the running script $dDrive = StringLeft(@ScriptDir, 3) $filename = _RandomString(10) & '.ps1' FileOpen($filename, 2) FileWrite(@ScriptDir & '\' & $filename, 'DISM /Online /Enable-Feature /FeatureName:NetFX3 /All /Source:' & $dDrive & 'Sources\sxs /LimitAccess') ShellExecuteWait('PowerShell.exe', '-executionpolicy Bypass -File "' & @ScriptDir & '\' & $filename & '"') ;ShellExecuteWait('PowerShell.exe', '-executionpolicy Bypass -File "' & @ScriptDir & '\OJP83BU523.ps1' & '"') FileDelete($filename) EndFunc _install_dot_net()