@set L=C:\windows\temp\install.log
@set IP=[===========Install Pass===========]
@set IPR=[===========Install Pass, Restart is need===========]
@set IF=[===========Install Fail===========]
@set Appxbundle=c9ad9812adc0429d8a190acc499f61f8.appx
@set License=c9ad9812adc0429d8a190acc499f61f8_License1.xml
@set Framework1=Microsoft.NET.Native.Framework.2.1_2.1.27427.0_arm__8wekyb3d8bbwe.appx
@set Framework2=Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x64__8wekyb3d8bbwe.appx
@set Framework3=Microsoft.NET.Native.Framework.2.1_2.1.27427.0_x86__8wekyb3d8bbwe.appx

@set Runtime1=Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_arm__8wekyb3d8bbwe.appx
@set Runtime2=Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x64__8wekyb3d8bbwe.appx
@set Runtime3=Microsoft.NET.Native.Runtime.2.1_2.1.26424.0_x86__8wekyb3d8bbwe.appx

@set VCLibs1=Microsoft.VCLibs.140.00_14.0.29231.0_arm__8wekyb3d8bbwe.appx
@set VCLibs2=Microsoft.VCLibs.140.00_14.0.29231.0_arm64__8wekyb3d8bbwe.appx
@set VCLibs3=Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.appx
@set VCLibs4=Microsoft.VCLibs.140.00_14.0.29231.0_x86__8wekyb3d8bbwe.appx
													 

@echo [%time%]Install Intel IGCC >> %L%
DISM /Online /Add-ProvisionedAppxPackage /PackagePath:"%~dp0Apps\%Appxbundle%" /licensepath:"%~dp0Apps\%License%" /DependencyPackagePath:"%~dp0Apps\%Framework1%" /DependencyPackagePath:"%~dp0Apps\%Framework2%" /DependencyPackagePath:"%~dp0Apps\%Framework3%" /DependencyPackagePath:"%~dp0Apps\%Runtime1%" /DependencyPackagePath:"%~dp0Apps\%Runtime2%" /DependencyPackagePath:"%~dp0Apps\%Runtime3%" /DependencyPackagePath:"%~dp0Apps\%VCLibs1%" /DependencyPackagePath:"%~dp0Apps\%VCLibs2%" /DependencyPackagePath:"%~dp0Apps\%VCLibs3%" /DependencyPackagePath:"%~dp0Apps\%VCLibs4%" /Region="All" >> %L%

@if %errorlevel%==0 (echo [%time%]%IP% >> %L% & goto resultpass)
@if %errorlevel%==259 (echo [%time%]%errorlevel% >> %L% & goto resultpass)
@if %errorlevel%==3010 (echo [%time%]%IPR% >> %L% & goto resultpass)
@if not %errorlevel%==0 goto ERR

:resultpass
@echo [%time%]=========Intel IGCC Install complete========= >> %L%
ECHO ERRRORLEVEL=%ERRORLEVEL% >> %L%
@set LL=C:\Windows\temp\Intel_GFX_IGCC.log
@echo [%time%] >>%LL%
EXIT /B 0

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