@set L=C:\Windows\temp\Driver_install.log
@set IP=[********Install Pass********]
@set IPR=[********Install Pass, Restart is need********]
@set IF=[********Install Fail********]
echo Start Installing Realtek audio APP...
@echo [%time%]=========Install Realtek Audio App========== >> %L%
DISM /Online /Add-ProvisionedAppxPackage /PackagePath:"%~dp0Apps\2898b265954a4f8b9ab261af80ef4c21.appxbundle" /licensepath:"%~dp0Apps\2898b265954a4f8b9ab261af80ef4c21_License1.xml" /DependencyPackagePath:"%~dp0Apps\Microsoft.VCLibs.140.00_14.0.27810.0_arm__8wekyb3d8bbwe.appx" /DependencyPackagePath:"%~dp0Apps\Microsoft.VCLibs.140.00_14.0.27810.0_arm64__8wekyb3d8bbwe.appx" /DependencyPackagePath:"%~dp0Apps\Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe.appx" /DependencyPackagePath:"%~dp0Apps\Microsoft.VCLibs.140.00_14.0.27810.0_x86__8wekyb3d8bbwe.appx" /Region="All" >> %L%
@if %errorlevel%==0 (echo [%time%]%IP% >> %L% & goto resultpass)
@if %errorlevel%==3010 (echo [%time%]%IPR% >> %L% & goto resultpass)
@if not %errorlevel%==0 goto ERR

:resultpass
@echo [%time%]=========Realtek Audio App Install Complete========= >> %L%
ECHO ERRRORLEVEL=%ERRORLEVEL% >> %L%
@set LL=C:\Windows\temp\ALC256_HSA.log
@echo [%time%] >>%LL%
EXIT /B 0

:ERR
echo [%time%]%IF% >> %L%
ECHO ERRRORLEVEL=%ERRORLEVEL% >> %L%
EXIT /B 1