@echo off
cd /d %~dp0

 echo Install Lenovo Adaptive ICC Profile

 REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LenovoAICCLoader\InstallState /v Enabled /t REG_DWORD /d 0 /f
 reg import ./RegOnDemand.reg
 timeout 5
 start /wait pnputil /add-driver ./lenovoaiccprofile.inf /install
 start /wait schtasks /create /tn RunAICCOnDemand /ru System /xml ./RunAICCOnDemand.xml 

:end
exit /b 0