@echo off
echo.
echo *************************************************************************
echo ****************Realtek Audio Driver Installation [START]****************
echo *************************************************************************
echo.


rem ============================Realtek Drivers==============================

echo.
echo.
echo Installing Realtek INFs.....

@echo pnputil -a "%~dp0Realtek\ExtRtk_9692.1\HDX_LenovoExt_DOLBY_Wrap36_NoCapture.inf"
pnputil -a "%~dp0Realtek\ExtRtk_9692.1\HDX_LenovoExt_DOLBY_Wrap36_NoCapture.inf"

@echo pnputil -a "%~dp0Realtek\Codec_9692.1\HDXACPLV.inf" /install
pnputil -a "%~dp0Realtek\Codec_9692.1\HDXACPLV.inf" /install

@echo pnputil -a "%~dp0Realtek\RealtekAPO_12_1167\RealtekAPO.inf" /install
pnputil -a "%~dp0Realtek\RealtekAPO_12_1167\RealtekAPO.inf" /install

@echo pnputil -a "%~dp0Realtek\RealtekAPO_13_1167\RealtekAPO.inf" /install
pnputil -a "%~dp0Realtek\RealtekAPO_13_1167\RealtekAPO.inf" /install

@echo pnputil -a "%~dp0Realtek\RealtekHSA_331\RealtekHSA.inf" /install
pnputil -a "%~dp0Realtek\RealtekHSA_331\RealtekHSA.inf" /install

@echo pnputil -a "%~dp0Realtek\RealtekService_766\RealtekService.inf" /install
pnputil -a "%~dp0Realtek\RealtekService_766\RealtekService.inf" /install


rem =============================Realtek Drivers=============================


rem ==============================Dolby Drivers==============================

echo.
echo.
echo Installing Dolby INFs.....

@echo pnputil -a "%~dp0Dolby\dax3\ext_capg_lenovo_thinkpad\ext_capg_thinkpad_22h2_24h2_v9.703.1223.42\dax3_ext_capg.inf" /install
pnputil -a "%~dp0Dolby\dax3\ext_capg_lenovo_thinkpad\ext_capg_thinkpad_22h2_24h2_v9.703.1223.42\dax3_ext_capg.inf" /install

@echo pnputil -a "%~dp0Dolby\dax3\ext_realtek_lenovo_thinkpad\ext_thinkpad_AIO_rtk_20h1_21h2_22h2_24h2_v9.703.719.14\dax3_ext_rtk.inf" /install
pnputil -a "%~dp0Dolby\dax3\ext_realtek_lenovo_thinkpad\ext_thinkpad_AIO_rtk_20h1_21h2_22h2_24h2_v9.703.719.14\dax3_ext_rtk.inf" /install

@echo pnputil -a "%~dp0Dolby\dax3\swc_factory\swc_aposvc_20h1_21h2_22h2_24h2_b240528_v3.30701.711.0\dax3_swc_aposvc.inf" /install
pnputil -a "%~dp0Dolby\dax3\swc_factory\swc_aposvc_20h1_21h2_22h2_24h2_b240528_v3.30701.711.0\dax3_swc_aposvc.inf" /install

@echo pnputil -a "%~dp0Dolby\dax3\swc_factory\swc_hsa_20h1_21h2_22h2_24h2_b29536_v3.30700.700.0\dax3_swc_hsa.inf" /install
pnputil -a "%~dp0Dolby\dax3\swc_factory\swc_hsa_20h1_21h2_22h2_24h2_b29536_v3.30700.700.0\dax3_swc_hsa.inf" /install

@echo pnputil -a "%~dp0Dolby\fusion\ext_amd\ext_amd_lenovo_thinkpad\ext_amd_thinkpad_AIO_20h1_21h2_22h2_24h2_v9.703.751.51\fusion_ext_amd.inf" /install
pnputil -a "%~dp0Dolby\fusion\ext_amd\ext_amd_lenovo_thinkpad\ext_amd_thinkpad_AIO_20h1_21h2_22h2_24h2_v9.703.751.51\fusion_ext_amd.inf" /install

@echo pnputil -a "%~dp0Dolby\fusion\ext_amic_rtk\ext_amic_rtk_lenovo_thinkpad\ext_amic_rtk_thinkpad_AIO_20h1_21h2_22h2_24h2_v9.626.719.57\fusion_ext_amic.inf" /install
pnputil -a "%~dp0Dolby\fusion\ext_amic_rtk\ext_amic_rtk_lenovo_thinkpad\ext_amic_rtk_thinkpad_AIO_20h1_21h2_22h2_24h2_v9.626.719.57\fusion_ext_amic.inf" /install

@echo pnputil -a "%~dp0Dolby\fusion\ext_capg\ext_capg_lenovo_thinkpad\ext_capg_thinkpad_22h2_24h2_v9.703.1203.13\fusion_ext_capg.inf" /install
pnputil -a "%~dp0Dolby\fusion\ext_capg\ext_capg_lenovo_thinkpad\ext_capg_thinkpad_22h2_24h2_v9.703.1203.13\fusion_ext_capg.inf" /install

@echo pnputil -a "%~dp0Dolby\fusion\swc_factory\fusion_swc_aposvc_20h1_21h2_22h2_24h2_b28707_v4.0.2.424\fusion_swc_aposvc.inf" /install
pnputil -a "%~dp0Dolby\fusion\swc_factory\fusion_swc_aposvc_20h1_21h2_22h2_24h2_b28707_v4.0.2.424\fusion_swc_aposvc.inf" /install

rem ==============================Dolby Drivers==============================


echo *************************************************************************
echo *****************Realtek Audio Driver Installation [END]*****************
echo *************************************************************************
echo.

