How 2 - edit Boot/install.wim files
#1
Posted 05 March 2009 - 06:15 AM
i will also need to know how to unmount it (if it a thing that i needs to do after i have edit the files i want)
THANKS
#2
Posted 05 March 2009 - 07:05 AM
#3
Posted 05 March 2009 - 12:15 PM
Install the WAIK
You will need the basic routines that the kit contains
This is what My Environment looks like
Image5.gif (21.45K)
Number of downloads: 118
#4
Posted 05 March 2009 - 12:24 PM
Create this batch file
_1. Mount Image.bat
echo off cls set __EXPAND="%Programfiles%\Windows AIK\Tools\amd64\Servicing\Expand.exe" set __PEIMG="%ProgramFiles%\Windows AIK\Tools\PETools\peimg.exe" set __IMAGEX="%ProgramFiles%\Windows AIK\Tools\amd64\Imagex.exe" set __PKGMGR="%ProgramFiles%\Windows AIK\Tools\amd64\Servicing\pkgmgr.exe" set __Mount=C:\Mount Echo Off Cls Echo . Echo . Echo . Mounting Boot.wim to %__Mount% Echo . pause 1 pause 0 Echo . Echo . Creating The Folder mkdir "%__Mount%" Echo . Echo . Mounting boot.wim (First Image) Echo . %__IMAGEX% /mountrw ".\boot.wim" 1 "%__Mount%" Echo . Echo ...................................................... Echo . pause
The 2 pauses are there in case you execute this script by accident.
The mount folder can be changed to anything you want but
besure to change it in the other batch files as well.
If you are using a 32-bit OS while preping the image,
change \amd64\ in the paths to \x86\
as in ="%ProgramFiles%\Windows AIK\Tools\x86\Imagex.exe"
Vista's boot.wim has 2 images, both images should be changed the same way.
I have not yet tried just updating image 2.
Image selection is controlled by the image number
%__IMAGEX% /mountrw ".\boot.wim" 1 "%__Mount%" <-- for image 1
%__IMAGEX% /mountrw ".\boot.wim" 2 "%__Mount%" <-- for image 2
You can also use names but it must be exact. Numbers are easier.
Ghost 12 has only 1 image.
this is what it looks like
Image10.gif (14.92K)
Number of downloads: 128
This post has been edited by Arrow22: 05 March 2009 - 12:54 PM
#5
Posted 05 March 2009 - 12:32 PM
There are a number of things that you can do to the image while its mounted.
I use it mainly to preinstall my drivers.
I need the MediaShield RAID drivers for boot.wim to see my drives.
This is how I slipstream them in.
Create this batch file
_2. Fold In Drivers.bat
echo off cls set __EXPAND="%Programfiles%\Windows AIK\Tools\amd64\Servicing\Expand.exe" set __PEIMG="%ProgramFiles%\Windows AIK\Tools\PETools\peimg.exe" set __IMAGEX="%ProgramFiles%\Windows AIK\Tools\amd64\Imagex.exe" set __PKGMGR="%ProgramFiles%\Windows AIK\Tools\amd64\Servicing\pkgmgr.exe" set __Mount=C:\Mount Echo Off Cls Echo . Echo . Echo . Adding Boot Drivers From OS Drivers Echo . pause 2 pause 1 pause 0 Echo . Echo ...................................................... Echo . %__PEIMG% /inf=".\01AHCI\nvstor32.inf" "%__Mount%\Windows" Echo . Echo ...................................................... Echo . %__PEIMG% /inf=".\02RAID\nvrd32.inf" "%__Mount%\Windows" Echo . Echo ...................................................... Echo . pause
As I posted in another thread, boot.wim is 32-bit (I have yet to see a 64-bit)
Do not attempt to slipstream in 64-bit drivers, 32-bit OS will not understand them.
#6
Posted 05 March 2009 - 12:48 PM
For me, I like to verify my work...
Here is what the inf folder looked before the slipstream
Image6.gif (57.83K)
Number of downloads: 99
And like this after the batch file is run
Image7.gif (17.33K)
Number of downloads: 72
and here is the image now...
Note the OEM0.inf and OEM1.inf
Image8.gif (50.91K)
Number of downloads: 65
So we are good, now create this batch file
_3. UnMount Image.bat
echo off cls set __EXPAND="%Programfiles%\Windows AIK\Tools\amd64\Servicing\Expand.exe" set __PEIMG="%ProgramFiles%\Windows AIK\Tools\PETools\peimg.exe" set __IMAGEX="%ProgramFiles%\Windows AIK\Tools\amd64\Imagex.exe" set __PKGMGR="%ProgramFiles%\Windows AIK\Tools\amd64\Servicing\pkgmgr.exe" set __Mount=C:\Mount Echo Off Cls Echo . Echo . Echo . Unmounting Boot.wim from %__Mount% Echo . pause 2 pause 1 pause 0 %__IMAGEX% /commit /unmount "%__Mount%" Echo . Echo . Echo ...................................................... Echo . Echo .Removing Temporary Mount Folder Echo . RmDir /S /Q "%__Mount%" pause
this is what it looks like
Image9.gif (14.66K)
Number of downloads: 61
How was that.
If modifying boot.wim, do both images
#8
Posted 30 March 2009 - 04:31 PM
#9
Posted 31 March 2009 - 04:56 AM
#10
Posted 12 April 2009 - 07:50 PM
Nice tutorial. however i must confess that i've tried both ways [updating one image and both] and the result was the same... Nvidia drivers don't install during setup... everything else installed fine...
i' triyng to use winpeshl.ini as some sort of trigger to install the exe version of Nvidia drivers... still no results...
Is there any other file/way to do that?? Excluding SetupComplete of the $OEM$ folder...
Se7eN
#11
Posted 13 April 2009 - 12:58 PM
_Se7eN_, on Apr 12 2009, 08:50 PM, said:
Nice tutorial. however i must confess that i've tried both ways [updating one image and both] and the result was the same... Nvidia drivers don't install during setup... everything else installed fine...
i' triyng to use winpeshl.ini as some sort of trigger to install the exe version of Nvidia drivers... still no results...
Is there any other file/way to do that?? Excluding SetupComplete of the $OEM$ folder...
Se7eN
For adding SATA/RAID drivers to Vista, I have not had a problem.
Are you adding the 64bit or the 32bit version?
Boot.wim is 32bit and will not recognize the 64bit versions.
(Took me 2 weeks to figure that out - Forest for the Trees thing)
This post has been edited by Arrow22: 13 April 2009 - 12:59 PM
#12
Posted 14 April 2009 - 09:00 AM
Arrow22, on Apr 13 2009, 07:58 PM, said:
_Se7eN_, on Apr 12 2009, 08:50 PM, said:
Nice tutorial. however i must confess that i've tried both ways [updating one image and both] and the result was the same... Nvidia drivers don't install during setup... everything else installed fine...
i' triyng to use winpeshl.ini as some sort of trigger to install the exe version of Nvidia drivers... still no results...
Is there any other file/way to do that?? Excluding SetupComplete of the $OEM$ folder...
Se7eN
For adding SATA/RAID drivers to Vista, I have not had a problem.
Are you adding the 64bit or the 32bit version?
Boot.wim is 32bit and will not recognize the 64bit versions.
(Took me 2 weeks to figure that out - Forest for the Trees thing)
I have a 32bits system so i guess that i don't have that prob...
maybe i need to get a better driver extractor prog... i've been using MyDrivers and it's been working fine even with Nvidia drivers....
this prob started after i've updated the drivers o Nvidia by windows update.... perhaps its the driver it self cause in the installed system it is signed by Microsoft, however the same in the test OS appears as unsigned... this is really bugging me....
I wouldn't even mind if i could execute the install version of the driver during install, but that also is turning to be a prob... i'm unable to execute tthe CMD file through the Autounatted.xml file...
i've put the driver folder on the root on the install.wim, so that it could be copied to the HardDrive... but using "auditUser" the CMD file seems that can't find the folder...
Can you tell where can i learn the install timeline of Vista Ultimate? Because the CMD file must be executed AFTER the driver folder been copied to the HD...
Thanks for the reply
Se7eN
#13
Posted 14 April 2009 - 11:52 AM
I would suspect it is your drivers.
When you follow the directions above, do you see the OEMx.inf files?
If not, then the drivers are not installed.



Help
Back to top











