@ECHO OFF
@color 3F
title Sergei Strelec
@echo Выполняется установка .NET Framework 4.8, не закрывайте это окно.
@echo Установка займет некоторое время, пожалуйста подождите.......
cd /d "%~dp0"
ndp48-x86-x64-enu.exe /norestart /passive
ndp48-x86-x64-allos-rus.exe /norestart /passive
xcopy  msiesu64\msiesu.dll "C:\Windows\System32" /H /K /Y /R
xcopy  msiesu32\msiesu.dll "C:\Windows\SysWOW64" /H /K /Y /R
start /b /w net stop msiserver
start /b /w Reg Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "GlobalFlag" /t REG_DWORD /d "0x100" /f
start /b /w Reg Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierDebug" /t REG_DWORD /d "0" /f
start /b /w Reg Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierDlls" /t REG_SZ /d "msiesu.dll" /f
start /b /w Reg Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierFlags" /t REG_DWORD /d "0x80000000" /f
start /b /w Reg Add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "GlobalFlag" /t REG_DWORD /d "0x100" /f
start /b /w Reg Add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierDebug" /t REG_DWORD /d "0" /f
start /b /w Reg Add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierDlls" /t REG_SZ /d "msiesu.dll" /f
start /b /w Reg Add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /v "VerifierFlags" /t REG_DWORD /d "0x80000000" /f
start /b /w net start msiserver
ndp48-kb5008858-x64.exe /norestart /passive
DEL /F /Q C:\Windows\System32\msiesu.dll
DEL /F /Q C:\Windows\SysWOW64\msiesu.dll
Reg Delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /f
Reg Delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msiexec.exe" /f
shutdown /r /t 2
exit
