list every .inf file in individual subfolders) and Script1 that I have
successfully used for installing multiple .msu updates and .sfx apps
Would like to use Script1 and just put all the infs, cats and sys files
in one drvs folder then install one at a time in alphabetical order and echo
each install as it completes..
My Question is Where would the pnputil need to be included to run sucessfully?
Thanks for the Help..Dos_Probie

Code: Select all
@echo off&color e
:: SCRIPT2 ::
echo == Installing INTEL CHIPSET DRIVERS HM65
:chipset-pci controller
pnputil -i -a "%systemroot%\system32\drv.tos\smbus\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\chipset.intel\1port\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\chipset.intel\2port\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\chipset.intel\4port\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\chipset.intel\6port\*.inf"
echo.
echo.
echo == Installing JMICRON CARD READER
:cardreader
pnputil -i -a "%systemroot%\system32\drv.tos\cardreader.jmicron\mmc\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\cardreader.jmicron\ms\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\cardreader.jmicron\sd\*.inf"
pnputil -i -a "%systemroot%\system32\drv.tos\cardreader.jmicron\xd\*.inf"
echo.
::(other 30 drivers code..etc..etc)
Code: Select all
@echo off&color e
:: SCRIPT1 ::
:: SOURCE
for %%i in (d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%i:\sources\install.wim set usb=%%i:
:: VARIABLE
set source=%usb%\wpi\drvs
:: MULTI-INF DRIVER INSTALL (alphabetical order)
for /f "delims=" %%a in ('dir/b "%source%\*.inf"') do (
echo == Installing Drivers == "%%a"
:: DELAY
ping -n 3 localhost 1>nul
start "" /wait "%source%\%%a"
)
cls
echo. * DONE *
echo.
pause
exit