@echo off
setlocal EnableDelayedExpansion
color ff
title Install APO
PUSHD %~DP0 & cd /d "%~dp0"
%1 %2
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&goto :eof
:runas
devcon.exe remove SWC\AWDZAPO
devcon.exe install ..\Driver\Signed\AwinicSKTuneApo.inf SWC\AWDZAPO
echo The APO installation completed and will take effect after rebooting. Any key to reboot or close the cmd for manual reboot.
pause
shutdown -r -t 1