@echo off
%systemdrive%
cd %windir%/system32/
echo Please wait while installing drivers. Do not turn off or unplug the computer power during the installation...

@echo pnputil -a ".\GAP\*.inf" /install
pnputil -a "%~dp0GAP\*.inf" /install

@echo pnputil -a ".\Production\Drivers\*.inf" /install
pnputil -a "%~dp0Production\Drivers\*.inf" /install

@echo pnputil -a ".\Production\IntelMvaExtensionInf\*.inf" /install
pnputil -a "%~dp0Production\IntelMvaExtensionInf\*.inf" /install

@echo pnputil -a ".\ICPS_UWD\Win64\DRIVERS\ICPSComponent\*.inf" /install
pnputil -a "%~dp0ICPS_UWD\Win64\DRIVERS\ICPSComponent\*.inf" /install

dism /online /Add-ProvisionedAppxPackage /PackagePath:".\ICPS_UWD\Win64\App\ICPS.appx" /LicensePath:".\ICPS_UWD\Win64\App\ICPS_License1.xml" /Region:all

%~d0
cd %~dp0
%windir%/system32/pnputil /add-driver .\UWD\Win64\DRIVERS\*.inf /install
rem REG ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0009\ /v WowlanS5Enabled /t REG_DWORD /d 1 /f

rem S5WOL.bat

@echo Done

EXIT /B
