mr_smartepants wrote:

Glad you fixed it.  Odd that it was caused by a VMware driver.


Not really sure either. Not sure why I used this driverpack for 4 months and then this error. I do back this drive up every night and maybe somehow stuff on this drive got corrupt. Not sure?

I have been using the very same MassStorage drivers for 3 or 4 months now and today I was making an updated Win 7 32bit Wim from a clean untouched source with October Updates from KUC. I slipstream my drivers and updates the same way every month with a DISM script I made. I only use MassStorage in the  Boot.wim and Install.wim. No other drivers and this is the error I am getting. Not sure what details you guys need from me but I will post as needed. I have a live Asus Machine I use to test all of my slipstreamed OS. I do not use Virtual Machine for this kinda test

http://imageshack.us/a/img831/4933/drivererror.jpg

Uploaded with ImageShack.us



UPDATE:

I downloaded the newest MassStorage pack, problem solved. The old pack must have gotten corrupt somehow.

3

(36 replies, posted in Vista-Tool)

mr_smartepants wrote:

The drivers in the "All" folder are supported by "all" the OS.  The other folders are OS-specific.  So when integrating into a Vista OS, you should use both "All" and "Vista".
Though if you come across any errors, let me know in case we need to shuffle some drivers around.

I will do so. I add USB 3 support to my Vista boot.wim and it worked like a charm.  Vista isn't very slipstream easy and takes allot to make Vista happy! lol I will do the All Folder and the Vista Folder and run some test. Again, thanks mr_smartepants, you are the man! smile

4

(36 replies, posted in Vista-Tool)

mr_smartepants wrote:

Why not do all that in a "for" loop?

@ECHO off & setlocal EnableDelayedExpansion

::blah blah blah...
SET "PEIMG=%~dp0WindowsAIK\Tools\PETools\peimg.exe"
SET "DRIVERS=%~dp0BootDrivers"

FOR /F %%I IN ('dir /b /s "%DRIVERS%\*.inf"') DO (
  ECHO Integrating %%I
  %PEIMG% /inf=%%I %~dp0Mount
)
::blah blah blah...


Thanks man that was the ticket! Been awhile since I used the dir /b /s and completely forgot about it. Been doing allot of VBS stuff. It's amazing how quick you forget the simple stuff. One more question and I have asked you this before. peimg.exe is not as picky as DISM when slipstreaming drivers. I notice in the all folders allot of the Mass Storage stuff is for XP or newer or Win7 and 8. Should I  be using JUST the Vista folder which has no Intel stuff among others. Scared the say Windows 7 drivers has the same name as the  Vista one and the one for Vista will be over written for the one with 7 if that makes sense?

5

(36 replies, posted in Vista-Tool)

I installed WAIK 1.0 in a Vista machine with PEIMAGE in the tools folder (newer WAIK doesn't have the peimage.exe) and copied the whole WAIK folder to Windows 7 NT6x Hard Drive and made this little quick script

@echo off 
color 9F
Title Vista Boot.wim Slipstrem Driver CMD

echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting Boot.wim 2
echo.
rem Dism /Mount-Wim /WimFile:%~dp0BootWim\BOOT.WIM /index:2 /MountDir:%~dp0Mount
pause
echo.
echo Adding Drivers To Boot.wim 2
echo.
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\AMD\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\AMD\4\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\ARECA\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\ASmedia\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Highpoint\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Intel\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Intel\3\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Intel\4\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Intel\5\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\ITE\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Jmicron\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\3\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\5\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\6\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\LSI\9\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Marvell\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Marvell\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Nvidia\3\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\Nvidia\4\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\1\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\1\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\2\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\2\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\2\3\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\3\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\3\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\4\1\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\4\2\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\SiliconImage\5\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\VIA\*inf %~dp0Mount
%~dp0WindowsAIK\Tools\PETools\peimg.exe /inf=%~dp0BootDrivers\VMware\*inf %~dp0Mount
pause
echo.
echo Unmounting Boot.wim 2
echo.
Dism /Unmount-Wim /MountDir:%~dp0Mount /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
pause
echo Boot Driver Integration Complete
:end
pause 

The Vista Tool will mount the boot.wim if you change the boot.wim to install.wim and will say that the drivers slipstream but after remounting the boot.wim to check, no drivers really slipstream so peimage.exe is the only way I know of to slipstream drivers to Vista Boot.wim. You can see why I was hoping for a tool to do this. Each driver path has to be absolute. No /recurse commands like DISM to use to make peimage.exe scan all subfolders. sad

6

(36 replies, posted in Vista-Tool)

mr_smartepants wrote:

I can't remember.  It's been so long since I've done a Vista image.
To make it easy for myself, I think I just put all the mass storage drivers in a folder named "$WinPEDriver$" at the root of the .iso.


In am using USB so not sure how to incorporate the  $WinPEDriver$. I will play around with it some. I got the drivers slipstreamed into the boot.wim and I don't update the boot wim much until one of my techs mention that on the install phase, no hard drive would show up because of a missing driver. I haven't update Vista boot.wim in a year or more til this HP came in and on reload, the hard drive wouldn't show up so I slipstreamed the new mass storage pack using peimage and all is well again but what a slow way to do so

7

(36 replies, posted in Vista-Tool)

mr_smartepants wrote:

Uploaded to mediafire and updated first post with link.
Hope it works for you.


Thanks so much, mr_smartepants. Now not sure in thinking back if this tool will work on the boot.wim, I am using peimage.exe to do the drivers now and you have to do them one by one or type out this crazy long cmd because with that program, paths have to exact and in Mass Storage Pack, there are a ton of folder structures or trees.

Update.

I kinda tricked the Vista Tool and changed the name of the boot.wim to install.wim and it worked but out of the folder All for Mass Storage, it only slipstreamed 13 drivers. It's 90 plus drivers in the folder and I know some are Win7 but figured it would be more than 13 for Vista? Does this sound right, mr_smartepants?

8

(36 replies, posted in Vista-Tool)

mr_smartepants wrote:

Vista-tool has been abandoned.
Instead, try the other tools we have stickied.
A new tool is GDISM, written in Java and portable.


I know this has been abandoned but does anyone have a link to this tool? I just need it to slipstream boot.wim drivers for Vista and I can't get Gdism to work. It installs but when I try to run it, get this program had to close error. I have I lost my Hard Drive that had a copy of Vista Tool 2 Beta 3

9

(3 replies, posted in Windows 7 Discussion)

mr_smartepants wrote:

Both.
The "All" folder contains drivers that all NT6 OS's can use.  The other folders are specific to only that OS.
In reality, you can use all the folders.  DISM is smart enough to only try and use drivers for the OS it's servicing at the time.
But having all those extraneous drivers slows down the process.


OK, so I been doing kinda right then. I take all the driver folders from the (example) "Win7" Lan folder and copy them to the "All" lan folder to get them in one place for WinToolKit. I only use Lan for the OS slipstream and Mass storage and I have some USB3 drivers for the boot.wim slipstream. I keep all the other drivers Audio and such on the second partition of my bootUSB HD and if I need them, point Windows to that folder and it finds the driver most of the time. Thanks mr_smartepants.


Also if it's meant to use the Drivers from the "All" folder or covers all drivers for that hardware (Lan). Why are there separate folders labeled Win7 Win8  Vista and Server?

10

(3 replies, posted in Windows 7 Discussion)

I know this is going to sound like a newbie question but when I slipstream drives in my say Win 7 x86 source using WinToolKit, when I use the drivers from the extracted driver folder (example mass storage) Do I use the drivers from the All folders or just the Win7 folder?

Anyone know why I can run DISM from a .cmd from a Windows 7 machine and I get DISM is not an internal command error but if I define the path C:\Windows\System32\Dism.exe works fine?

Sure, but leave the line "set KTD=N" because that variable used further in the code.

Cool Beans! Thanks for the fast reply, mr_smartepants. smile

I guess just remove this line

:KTD-option
set /p option=[Y,N]?
set KTD=N
if "%option%"=="Y" set KTD=Y
if "%option%"=="y" set KTD=Y
cls
IF "%KTD%"=="Y" Echo KTD option has been enabled.

and this means no? Trying to set up as first log on command for Vista. Since I have switched over to USB Hard Drive installing, I have tons more room for all the DriverPacks now.

Got a question. I load Vista, Win7 and XP from a jump drive now, On the newer USB3 machines I integrated my USB3 drives into boot.win of Win7 32bit. I do not have 64 bit USB3 drivers and was wondering if it matter if I integrated the 32bit USB3 drivers into the 64 boot.wim would work at that stage just to load the files from the USB drive? I don't think at this point 64 is defined?

mr_smartepants wrote:

Ah, OK.  You didn't mention that little tidbit. wink

Sorry, I get carried away sometimes! smile

16

(8 replies, posted in News)

No problem guys

What is the environment the batch is run in?  Why not just use %systemdrive% or %windir% or %systemroot% and skip the whole drive-scan?  %systemdrive% will return the drive letter (K:\) of the OS you're running in and the others will return "K:\Windows".

Thanks mr_smartepants. I added a card reader and the it added new drive letters to my computer. Since the drive letters are empty, they returned a "No Disk' error which is now fixed with this

@echo off
For %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z A B) do (dir %%I:\ 1>nul 2>nul && if /i exist %%I:\Windows set Pagefile=%%I:&goto ok)
goto notfound

:ok
SetPageFile.exe %pagefile%\pagefile.sys 1024
goto end

:notfound
echo pagefile not found

:end

pause

Oh by the way, the reason I do a scan is because I use MiniXP  allot and sometimes the systemdrive I need to scan is E or D and I have seen F one time. The driver letters on MiniXP never match the drive letters on my computer

Can someone tell me why this command is giving me a "no disk error" but it will find Windows folder on K:. K is the Windows 7 drive letter and C is XP. Why would it skip C. I have been using this command to setpagefile with Setpagefile.exe forever and now I get the no disk error and it skips C

FOR %%i IN (C 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:\Windows SET PageFile=%%i:
echo %PageFile%

This does the same also %%i:Windows

by the way if I hit cancel til it gets to K all is well but how do you suppress the error message? Weird how it never did this before

19

(8 replies, posted in News)

And that is what i have been saying for years. if even one in ten of the people who download the DriverPacks sent a dollar we could go back to a CDN (content delivery network), like one of the CDN providers who we have had donate to us in the past, and put torrents on the back burner. The reality of it is one person in a hundred thousand sends us $20.

Thanks for being one in a million Lad!

I wish I could drop you guys a grand. I would in a heart beat! I hope I am able to drop a couple hundred in Feb. It's Ladd by the way....lol! I have been called much worse! smile

There should be a new word invented for "Thank You" that's more powerful because I seriously thank you all for DriverPacks and driverpacks.net

20

(8 replies, posted in News)

I just donated what I could. Got 4 kids but I am telling you the DriverPacks are a life saver and without them I would be lost. At tax time in Feb, I am going to drop a much bigger amount and when I make a promise, I stick too it! If all the folks downloading the packs would just donated a dollar, well, you could open a new server.

DART 7 is the current version and part of the Microsoft Desktop Optimization Pack 2011 (MDOP).  I'll see if I can find a link for you.  If you have a MS Live acct, you should be able to log in here:
http://msdn.microsoft.com/en-us/windows … 63009.aspx

We are Microsft Partners but on a small scale, I guess. I logged into Technet and I was able to down load the new MDOP 2011 R2 but not able to download the "Debugging Tools with the Windows Driver Kit Developer Preview" from that link. I was able to get the SDK with Debugging Tools from May of 2010. You think that is out of date?

mr_smartepants,

                    Where can I get Debugging Tools For Windows? I found the DART Tool but it was 6.5 not 7. It is asking for that Debugging Tool. Microsoft wants you to buy that I think? Is DART 7 the latest version?

Thanks Chris.
Boot.wim index 1 is the emergency recovery partition.  I'm told that integrating drivers into index-1 will corrupt it.  I've never tried it myself, I use my DART 7 ERD disc for recovery work.

No problem, mr_smartepants. I make a folder in the $OEM$\$1 called Install. All of my programs (firefox etc...) and updates (net 4 etc....) are copied to the C drive during install and in my unattended.xml, I have a first log on command that runs my .cmd from the Install folder called Win7x86.cmd and of course on 64 Win7x64.cmd (so I don't get them mixed up is why I name them this way)



I haven't had any trouble yet. Nothing corrupt and your right, its the recovery partition. I think maybe the drivers would come in handy in the recovery partition but I can't be sure.


By the way, I have booted in to recovery and no problems from a disc with drivers integrated into Boot index 1

24

(12 replies, posted in Vista-Tool)

This is the final product. This is a basic script I wrote to install updates to the offline Vista image using Package Manager and my unattended.xml.  I tried to do drivers and the integrate but I get an error of a file missing. if****.sys file (can't remember the file in whole) Microsoft recommends Package Manger over peimg which is what the Vista Tool Beta is based off of.

color 9f
TITLE Vista Update Slipstreamer
REM EXAMPLE pkgmgr.exe /n:answer_file /norestart /o:offline_Windows_directory_path

Set ImageX=C:\Program Files\Windows AIK\Tools\x86

Set PM=C:\Program Files\Windows AIK\Tools\Servicing

Set Pemig=C:\Program Files\Windows AIK\Tools\PETools

Set Wim=%~dp0VistaWim\install.wim

Set Answer=%~dp0unattend.xml

Set Mnt=%~dp0Mount

Set Path=%~d0

Set Folder=%~dp0

Set Temp=%~dp0SandBox

CLS

echo HOMEBASIC


"%ImageX\imagex.exe%" /mountrw "%Wim%" "Windows Vista HOMEBASIC" "%Mnt%"

"%PM%\pkgmgr.exe" /o:%Path%\;%Mnt%\Windows /n:%Answer% /s:%Temp% /l:%Folder%\Log\log

"%ImageX%" /unmount /commit "%Mnt%"

goto HOMEPREMIUM

CLS
:HOMEPREMIUM

echo HOMEPREMIUM 


"%ImageX\imagex.exe%" /mountrw "%Wim%" "Windows Vista HOMEPREMIUM" "%Mnt%"

"%PM%\pkgmgr.exe" /o:%Path%\;%Mnt%\Windows /n:%Answer% /s:%Temp% /l:%Folder%\Log\log

"%ImageX\imagex.exe%" /unmount /commit "%Mnt%"
pause

I run this on a Windows 7 machine by the way. You can run it from Vista but I do all my work from 7

This is my Windows 7 script for adding drivers and updates. I have a separate one for 64 bit. This is kinda like mr_smartepants but with a little more bells and whistles as they say. I just double click and let it do its thing. I found that the Boot.wim has 2 index so I add boot drivers to both and all is working fine

@echo off
color 9f

::Win7_x32
::Set Paths

:Path To Mount Folder
set mnt1="%~dp0MountStarter"
set mnt2="%~dp0MountBasic"
set mnt3="%~dp0MountPremium"
set mnt4="%~dp0MountPRO"
set mnt5="%~dp0MountUltimate"

:Path To Source .wim
set src="%~dp0Win7Wims\Install"

:Path To Driver Packages
set system-drivers="%~dp0Drivers"

:Path To Update Packages
set updates1="%~dp0Updates"

cls
:STARTER
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting STARTER 
echo.
Dism /Mount-Wim /WimFile:"%src%\install.wim" /Name:"Windows 7 STARTER" /MountDir:%mnt1%
echo.
echo Installing Drivers To STARTER 
echo.
Dism /image:%mnt1% /Add-Driver /driver:%system-drivers% /recurse
echo.
echo Slipstreaming Updates To STARTER 
echo.
Dism /Image:%mnt1% /Add-Package /PackagePath:%updates1%
echo.
echo Unmounting And Saving Changes To STARTER 
echo.
Dism /Unmount-Wim /MountDir:%mnt1% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ

:BASIC
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting BASIC 
echo.
Dism /Mount-Wim /WimFile:"%src%\install.wim" /Name:"Windows 7 HOMEBASIC" /MountDir:%mnt2%
echo.
echo Installing Drivers To BASIC 
echo.
Dism /image:%mnt2% /Add-Driver /driver:%system-drivers% /recurse
echo.
echo Slipstreaming Updates To BASIC 
echo.
Dism /Image:%mnt2% /Add-Package /PackagePath:%updates1%
echo.
echo Unmounting And Saving Changes To BASIC 
echo.
Dism /Unmount-Wim /MountDir:%mnt2% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ


:PREMUIM
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting PREMIUM 
echo.
Dism /Mount-Wim /WimFile:"%src%\install.wim" /Name:"Windows 7 HOMEPREMIUM" /MountDir:%mnt3%
echo.
echo Installing Drivers To PREMUIM
echo.
Dism /image:%mnt3% /Add-Driver /driver:%system-drivers% /recurse
echo.
echo Slipstreaming Updates To PREMUIM
echo.
Dism /Image:%mnt3% /Add-Package /PackagePath:%updates1%
echo.
echo Unmounting And Saving Changes To PREMUIM 
echo.
Dism /Unmount-Wim /MountDir:%mnt3% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ



:PRO
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting PRO 
echo.
Dism /Mount-Wim /WimFile:"%src%\install.wim" /Name:"Windows 7 PROFESSIONAL" /MountDir:%mnt4%
echo.
echo Installing Drivers To PRO
echo.
Dism /image:%mnt4% /Add-Driver /driver:%system-drivers% /recurse
echo.
echo Slipstreaming Updates To PRO
echo.
Dism /Image:%mnt4% /Add-Package /PackagePath:%updates1%
echo.
echo Unmounting And Saving Changes To PRO 
echo.
Dism /Unmount-Wim /MountDir:%mnt4% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ


:ULTIMATE
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting ULTIMATE 
echo.
Dism /Mount-Wim /WimFile:"%src%\install.wim" /Name:"Windows 7 ULTIMATE" /MountDir:%mnt5%
echo.
echo Installing Drivers To ULTIMATE
echo.
Dism /image:%mnt5% /Add-Driver /driver:%system-drivers% /recurse
echo.
echo Slipstreaming Updates To ULTIMATE
echo.
Dism /Image:%mnt5% /Add-Package /PackagePath:%updates1%
echo.
echo Unmounting And Saving Changes To ULTIMATE
echo.
Dism /Unmount-Wim /MountDir:%mnt5% /commit
echo.
echo.
echo Update and Driver Integration Complete
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
GOTO Boot

:Boot
::x32 Boot Drivers

:Path to mount folder
set mnt="%~dp0BootMount"

:Path to source .wim
set src="%~dp0Win7Wims\Boot"

:Path to driver packages
set driver-boot="%~dp0BootDrivers"


cls
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting Boot.wim
echo.
Dism /Mount-Wim /WimFile:%src%\BOOT.WIM /index:1 /MountDir:%mnt%
echo.
echo Adding Drivers To Boot.wim
echo.
Dism /image:%mnt% /Add-Driver /driver:%driver-boot% /recurse
echo.
echo Unmounting Boot.wim
echo.
Dism /Unmount-Wim /MountDir:%mnt% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ

echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
echo.
echo Mounting Boot.wim 2
echo.
Dism /Mount-Wim /WimFile:%src%\BOOT.WIM /index:2 /MountDir:%mnt%
echo.
echo Adding Drivers To Boot.wim 2
echo.
Dism /image:%mnt% /Add-Driver /driver:%driver-boot% /recurse
echo.
echo Unmounting Boot.wim 2
echo.
Dism /Unmount-Wim /MountDir:%mnt% /commit
echo.
echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
pause