Re: Simple batch files for integrating updates and drivers in Win7

Which drivers specifically are failing to install?
Are you sure those drivers are meant for Win7 and/or have all the files associated with them?

I integrated the current dpms in my copy of Win7 using the "All" and "Win7" folders without any problems.

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: Simple batch files for integrating updates and drivers in Win7

Yes That was my first thought... I removed all others but anything I install fails I'll sent you screenshot.

Edit: The yellow marked says that did not install successfully. I'm running win 7 x64 sp1 with all latest updates.
http://imageshack.us/a/img845/869/dism1.png

http://imageshack.us/a/img10/8844/dism2.png

Last edited by stsaerox (2012-10-31 21:28:43)

Re: Simple batch files for integrating updates and drivers in Win7

I don't know what to tell you.  I don't get those errors.

****************************************** 
** Beginning driver injection to index 1 
** Index: 1 is Microsoft Windows PE x64 
** Using the command: DISM /image:"C:\Output\mount" /Add-Driver /driver:"C:\Input\Drivers\Boot" /recurse /forceunsigned /LogPath:"C:\Output\Logs\Utility.log" /LogLevel:"2"
The operation completed successfully.
****************************************** 
** Listing all 3rd party drivers in index 1 
DISM /image:"C:\Output\mount" /Get-Drivers /Format:Table

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385

Obtaining list of 3rd party drivers from the driver store...

Driver packages listing:


-------------- | ------------------ | ----- | ----------- | ---------------------------- | ---------- | -------------
Published Name | Original File Name | Inbox | Class Name  | Provider Name                | Date       | Version      
-------------- | ------------------ | ----- | ----------- | ---------------------------- | ---------- | -------------
oem0.inf       | arcvdev.inf        | No    | System      | Areca Technology Corporation | 11/6/2009  | 6.20.0.19    
oem1.inf       | oemsetup.inf       | No    | SCSIAdapter | Areca Technology Corporation | 11/6/2009  | 6.20.0.19    
oem10.inf      | hptiop.inf         | No    | SCSIAdapter | HighPoint                    | 4/28/2009  | 1.2.28.28    
oem11.inf      | hptrcm.inf         | No    | System      | HighPoint                    | 4/23/2009  | 1.2.28.23    
oem12.inf      | hptmv.inf          | No    | SCSIAdapter | HighPoint                    | 8/1/2006   | 1.1.9.801    
oem13.inf      | hptmv6.inf         | No    | SCSIAdapter | HighPoint                    | 10/26/2007 | 1.9.7.1026   
oem14.inf      | 272x_1x.inf        | No    | SCSIAdapter | HighPoint                    | 4/24/2012  | 1.2.12.424   
oem15.inf      | 274x_3x.inf        | No    | SCSIAdapter | HighPoint                    | 4/24/2012  | 1.1.12.424   
oem16.inf      | rr276x.inf         | No    | SCSIAdapter | HighPoint                    | 4/24/2012  | 1.1.12.424   
oem17.inf      | rr278x.inf         | No    | SCSIAdapter | HighPoint                    | 4/24/2012  | 1.1.12.424   
oem18.inf      | rr62x.inf          | No    | SCSIAdapter | HighPoint                    | 6/15/2010  | 1.2.10.615   
oem19.inf      | iaahci.inf         | No    | hdc         | Intel                        | 11/6/2010  | 10.1.0.1008  
oem2.inf       | asahci64.inf       | No    | hdc         | Asmedia Technology           | 1/5/2012   | 1.3.4.0      
oem20.inf      | iastor.inf         | No    | SCSIAdapter | Intel                        | 11/6/2010  | 10.1.0.1008  
oem21.inf      | iaahci.inf         | No    | hdc         | Intel                        | 10/17/2011 | 10.8.0.1003  
oem22.inf      | iastor.inf         | No    | SCSIAdapter | Intel                        | 10/17/2011 | 10.8.0.1003  
oem23.inf      | iaahcic.inf        | No    | HDC         | Intel Corporation            | 9/1/2012   | 11.6.0.1030  
oem24.inf      | iastorac.inf       | No    | SCSIAdapter | Intel Corporation            | 9/1/2012   | 11.6.0.1030  
oem25.inf      | iaahci.inf         | No    | SCSIAdapter | Intel Corporation            | 6/20/2012  | 3.2.0.1126   
oem26.inf      | iastora.inf        | No    | SCSIAdapter | Intel Corporation            | 6/20/2012  | 3.2.0.1126   
oem27.inf      | iastors.inf        | No    | SCSIAdapter | Intel Corporation            | 6/29/2012  | 3.2.0.1132   
oem28.inf      | iteraid.inf        | No    | SCSIAdapter | ITE Tech. Inc.               | 9/17/2007  | 1.7.2.9      
oem29.inf      | iteatapi.inf       | No    | SCSIAdapter | ITE Tech. Inc.               | 5/14/2008  | 1.3.4.3      
oem3.inf       | rr172x.inf         | No    | SCSIAdapter | HighPoint                    | 10/29/2007 | 1.1.7.1029   
oem30.inf      | jmide.inf          | No    | hdc         | JMicron Technology Corp.     | 9/16/2006  | 1.0.0.0      
oem31.inf      | jraid_f.inf        | No    | SCSIAdapter | JMicron Technology Corp.     | 5/19/2011  | 1.17.63.1    
oem32.inf      | jraid_i.inf        | No    | SCSIAdapter | JMicron Technology Corp.     | 5/19/2011  | 1.17.63.1    
oem33.inf      | megasr1.inf        | No    | SCSIAdapter | LSI                          | 5/28/2012  | 15.0.528.2012
oem34.inf      | nodev.inf          | No    | System      | LSI Corporation.             | 5/28/2012  | 15.0.528.2012
oem35.inf      | nodev.inf          | No    | System      | LSI Corp.                    | 11/20/2008 | 3.9.0.64     
oem36.inf      | oemsetup.inf       | No    | SCSIAdapter | LSI Corp.,                   | 11/20/2008 | 3.9.0.64     
oem37.inf      | nodev.inf          | No    | System      | LSI Corp.                    | 2/14/2008  | 2.20.0.64    
oem38.inf      | oemsetup.inf       | No    | SCSIAdapter | LSI Corp.,                   | 2/14/2008  | 2.20.0.64    
oem39.inf      | lsi_fc.inf         | No    | SCSIAdapter | LSI Corporation              | 8/29/2007  | 1.26.1.0     
oem4.inf       | rr174x.inf         | No    | SCSIAdapter | HighPoint                    | 10/23/2007 | 2.0.7.1023   
oem40.inf      | mv61xx.inf         | No    | SCSIAdapter | Marvell Inc.                 | 5/6/2011   | 1.2.0.8300   
oem41.inf      | mvnodrv.inf        | No    | System      | Marvell Inc.                 | 5/6/2011   | 1.2.0.8300   
oem42.inf      | mv91cons.inf       | No    | System      | Marvell Semiconductor Inc.   | 1/19/2012  | 1.2.0.1020   
oem43.inf      | mvnodrv.inf        | No    | System      | Marvell Inc.                 | 1/19/2011  | 1.2.0.1020   
oem44.inf      | mvs91xx.inf        | No    | SCSIAdapter | Marvell Inc.                 | 1/19/2012  | 1.2.0.1020   
oem45.inf      | nvstor64.inf       | No    | HDC         | NVIDIA Corporation           | 8/4/2009   | 11.1.0.33    
oem46.inf      | nvrd64.inf         | No    | SCSIAdapter | NVIDIA Corporation           | 8/4/2009   | 11.1.0.33    
oem47.inf      | nvstor64.inf       | No    | HDC         | NVIDIA Corporation           | 4/9/2010   | 11.1.0.43    
oem48.inf      | nvrd64.inf         | No    | SCSIAdapter | NVIDIA Corporation           | 4/9/2010   | 11.1.0.43    
oem49.inf      | megasr.inf         | No    | SCSIAdapter | LSI Corporation.             | 1/20/2009  | 13.4.120.2009
oem5.inf       | 2310_00.inf        | No    | SCSIAdapter | HighPoint                    | 6/11/2009  | 2.3.9.611    
oem50.inf      | nodev.inf          | No    | System      | LSI Corporation.             | 1/20/2009  | 13.4.120.2009
oem51.inf      | si680.inf          | No    | SCSIAdapter | Silicon Image                | 11/13/2007 | 1.2.7.0      
oem52.inf      | si3112.inf         | No    | SCSIAdapter | Silicon Image                | 4/13/2007  | 1.3.68.2     
oem53.inf      | si3112.inf         | No    | SCSIAdapter | Silicon Image                | 4/13/2007  | 1.2.14.2     
oem54.inf      | si3112r.inf        | No    | SCSIAdapter | Silicon Image                | 2/1/2007   | 1.0.12.0     
oem55.inf      | si3114.inf         | No    | SCSIAdapter | Silicon Image                | 11/10/2006 | 1.2.8.0      
oem56.inf      | si3114r.inf        | No    | SCSIAdapter | Silicon Image                | 4/10/2007  | 1.0.14.0     
oem57.inf      | si3124.inf         | No    | SCSIAdapter | Silicon Image                | 8/22/2006  | 1.1.13.0     
oem58.inf      | si3124r5.inf       | No    | SCSIAdapter | Silicon Image                | 9/20/2006  | 1.5.11.0     
oem59.inf      | sippd.inf          | No    | System      | Silicon Image                | 9/20/2006  | 1.5.11.0     
oem6.inf       | rr2210.inf         | No    | SCSIAdapter | HighPoint                    | 10/17/2007 | 1.3.7.1017   
oem60.inf      | si3132.inf         | No    | SCSIAdapter | Silicon Image                | 10/3/2007  | 1.0.15.0     
oem61.inf      | si3132r5.inf       | No    | SCSIAdapter | Silicon Image                | 9/17/2008  | 1.5.19.0     
oem62.inf      | sippd.inf          | No    | System      | Silicon Image                | 9/17/2008  | 1.5.19.0     
oem63.inf      | si3531.inf         | No    | SCSIAdapter | Silicon Image                | 6/4/2009   | 1.5.20.1     
oem64.inf      | sippd.inf          | No    | System      | Silicon Image                | 6/4/2009   | 1.5.20.1     
oem65.inf      | vminiide.inf       | No    | hdc         | VIA Technologies, Inc.       | 8/13/2009  | 7.0.7000.294 
oem66.inf      | viamrx64.inf       | No    | SCSIAdapter | VIA Technologies, Inc.       | 11/26/2010 | 6.0.7600.6240
oem67.inf      | vmci.inf           | No    | System      | VMware, Inc.                 | 2/16/2012  | 9.3.51.0     
oem68.inf      | vmscsi.inf         | No    | SCSIAdapter | VMware, Inc.                 | 5/14/2012  | 2.0.3.0      
oem69.inf      | amd_sata.inf       | No    | HDC         | AMD                          | 4/11/2012  | 1.2.1.331    
oem7.inf       | rr232x.inf         | No    | SCSIAdapter | HighPoint                    | 4/9/2008   | 1.9.8.409    
oem70.inf      | ahcix64s.inf       | No    | SCSIAdapter | Advanced Micro Devices, Inc. | 7/1/2009   | 3.1.1540.151 
oem71.inf      | nodrv.inf          | No    | System      | Advanced Micro Devices, Inc. | 7/1/2009   | 3.1.1540.151 
oem72.inf      | ahcix64s.inf       | No    | SCSIAdapter | Advanced Micro Devices, Inc. | 12/29/2011 | 3.3.1540.29  
oem73.inf      | megasas2.inf       | No    | SCSIAdapter | LSI Corp.                    | 2/22/2012  | 5.2.116.64   
oem74.inf      | nodev.inf          | No    | System      | LSI Corp.                    | 2/22/2012  | 5.2.116.64   
oem75.inf      | lsi_sas.inf        | No    | SCSIAdapter | LSI Corporation              | 12/7/2010  | 1.34.2.0     
oem76.inf      | lsinodrv.inf       | No    | System      | LSI Corporation              | 5/1/2009   | 1.0.7.0      
oem77.inf      | lsi_sas2.inf       | No    | SCSIAdapter | LSI Corporation              | 3/1/2012   | 2.0.55.1     
oem78.inf      | lsinodrv.inf       | No    | System      | LSI Corporation              | 5/1/2009   | 0.0.4.0      
oem8.inf       | rr2340.inf         | No    | SCSIAdapter | HighPoint                    | 12/31/2009 | 1.7.9.1231   
oem9.inf       | rr2522.inf         | No    | SCSIAdapter | HighPoint                    | 12/31/2009 | 1.2.9.1231   

The operation completed successfully.
****************************************** 
Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: Simple batch files for integrating updates and drivers in Win7

I was trying to find the same log but I only found this:

http://www.mediafire.com/view/?ikvu9myd2ad1amd

Re: Simple batch files for integrating updates and drivers in Win7

Hi mr_smartepants!

Do u find any time to finish the experimental code below?

If yes, could u add a portion to build a multilanguage edition?

Thanx  cool

mr_smartepants wrote:

Here's some simple batch files that I've been using to integrate updates and drivers into all indexes of Win7 source files before building .iso.
I thought I'd share them for others.
Make sure to execute these batch files by right-clicking and selecting "Run as administrator".
Set the paths to whatever you like, just be sure to NOT use a trailing backslash in the path (i.e. C:\mnt instead of C:\mnt\ )
To download the patches, I use Windows Updates Downloader with current download lists from this post (not 100% complete, but a great start)

For drivers, I separate my folders into boot & main.  Boot drivers are integrated into the boot.wim (index 2) and for me only contain dpms. 

Enjoy! smile

.
.
.

And for you testing types, here's some experimental code for all NT6 OS (auto adjusts).  Code in-work.

@echo off
:: Do NOT use trailing backslash in paths (i.e. C:\mnt instead of C:\mnt\ )
:: Hardcoded paths (C:\etc) are acceptable, but discouraged in favor of flexible relative paths 
:: such as (%~dp0\ "the directory containing this script", or %cd% "current directory", or ..\..\ "back two directories")
:: Network shares (\\server\path) are not supported by this script.
::Set Paths to directories here.
:Path to mount folder
set "mnt=%~dp0mount"
:Path to temp folder
set "tmp=%~dp0temp"
:Path to source .wim files
set "src=%~dp0source"
:Path to driver folders (each should contain x86 & x64 folders)
set "driver-boot=%~dp0Drivers\Boot"
set "driver-main=%~dp0Drivers\Install"
::Do NOT modify anything below this line unless you know what you are doing!
:Environment checks
:DISM-check
IF NOT EXIST "%WINDIR%\SYSTEM32\DISM\DISMHOST.EXE" GOTO ERROR1
:WIM-check
IF NOT EXIST "%src%\*.wim" GOTO ERROR2
:Driver-check
IF NOT EXIST "%driver-boot%\*" GOTO ERROR3

:Index-start
set idx=1
:Index stop
set bootx=2
dism /get-wiminfo /wimfile:"%src%\install.wim" > "%tmp%\index.log"
dism /get-wiminfo /wimfile:"%src%\install.wim" /index:1 > "%tmp%\detail.log"
setlocal EnableDelayedExpansion
set "cmd=findstr /R /N "^^" "%tmp%\index.log" | find /C "Index""
for /f %%a in ('!cmd!') do set indexs=%%a
cls

echo %indexs% Install.wim indexes found.
:Arch detection
if exist "%tmp%\detail.log" (
  FOR /F "tokens=* skip=2 usebackq" %%a IN (`FIND "Architecture" "%tmp%\detail.log"`) DO (
  set str=%%a
  for /f "tokens=2 delims=: " %%b in ('echo !str!') do (
  set arch=%%b
  )) 
)
echo The install.wim architecture is %arch%
echo Using boot drivers from folder:%driver-boot%\%arch%
echo Using main drivers from folder:%driver-main%\%arch%
:begin-boot
echo Integrating Boot WIM Index: %idx%
Dism /Mount-Wim /WimFile:"%src%\BOOT.WIM" /index:%idx% /MountDir:"%mnt%"
Dism /image:"%mnt%" /Add-Driver /driver:"%driver-boot%\%arch%" /recurse /forceunsigned
Dism /Unmount-Wim /MountDir:"%mnt%" /commit
if "%idx%"=="%bootx%" set idx=1 & goto begin-install
set /a idx+=1
goto begin-boot
:begin-install
echo Integrating Install WIM Index: %idx%
Dism /Mount-Wim /WimFile:"%src%\install.WIM" /index:%idx% /MountDir:"%mnt%"
Dism /image:"%mnt%" /Add-Driver /driver:"%driver-main%\%arch%" /recurse /forceunsigned
dism /Unmount-Wim /MountDir:"%mnt%" /commit
if "%idx%"=="%indexs%" goto END
set /a idx+=1
goto begin-install
:End
echo .........................................
echo Driver integration complete.
:Cleanup
 cd %SYSTEMDRIVE%\
 IF EXIST "%tmp%\*" DEL /F /S /Q "%tmp%\*" >nul
echo Cleanup complete.
:Exit
pause
exit
:ERROR1
IF EXIST "%WINDIR%\SYSWOW64\DISM\DISMHOST.EXE" GOTO WIM-check
ECHO DISM utility not found.  Please install the Microsoft WAIK suite of utilities.
echo Windows® Automated Installation Kit (AIK) downloads
echo WAIK 3.0: http://www.microsoft.com/download/en/details.aspx?id=5753
echo WAIK 3.1 supplement: http://www.microsoft.com/download/en/details.aspx?id=5188
goto Exit
:ERROR2
IF EXIST "%src%\sources\*.wim" set "src=%src%\sources" & GOTO Driver-check
ECHO WIM files not detected.  Please check source directory.
goto Exit
:ERROR3
IF EXIST "%driver-main%\*" GOTO Index-start
ECHO Driver files not detected.  Please check driver directory.
goto Exit

Re: Simple batch files for integrating updates and drivers in Win7

Ken@fri wrote:

Do u find any time to finish the experimental code below?

If yes, could u add a portion to build a multilanguage edition?

Yes I did.  And yes, I added a section to build a multi-language version.
Unfortunately, I built it under consignment from our sponsor LinMin.  They sell it now as the LIU (Found here)

I'll see if I can split the code off for a quick stand-alone script.  (no promises)

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: Simple batch files for integrating updates and drivers in Win7

mr_smartepants wrote:
Ken@fri wrote:

Do u find any time to finish the experimental code below?

If yes, could u add a portion to build a multilanguage edition?

Yes I did.  And yes, I added a section to build a multi-language version.
Unfortunately, I built it under consignment from our sponsor LinMin.  They sell it now as the LIU (Found here)

I'll see if I can split the code off for a quick stand-alone script.  (no promises)

Ok, do what u can.

Don't worry & thanx again for all that you do for us.

Re: Simple batch files for integrating updates and drivers in Win7

Hi mr_smartepants!

Any news about stand-alone script?

Thanx.

Last edited by Ken@fri (2014-01-31 01:27:08)

Re: Simple batch files for integrating updates and drivers in Win7

I haven't had any time to touch it.  Sorry.

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: Simple batch files for integrating updates and drivers in Win7

Don't worry. It's normal (you're  very busy).

Thanx.