@echo Please wait while installing drivers. Do not turn off or unplug the computer power during the installation...
@echo off

%~d0
cd %~dp0

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /f /v "ExecutionPolicy" /d "RemoteSigned" /t REG_SZ

powershell -executionpolicy bypass -File .\removeRTKUWP.ps1

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /v "ExecutionPolicy" /f 

@ping 127.0.0.1 -n 12 -w 1000 > nul

DISM /Online /Add-ProvisionedAppxPackage /PackagePath:RstHsaBridge_17.8.1007.0_x64_bundle.appxbundle /LicensePath:d29cbcf62ea5493c8dac20f8589b35f7_License1.xml /DependencyPackagePath:Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe.appx

@ping 127.0.0.1 -n 20 -w 1000 > nul

TIMEOUT /t 60

EXIT