Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


jcberry526

How 2 - edit Boot/install.wim files

13 posts in this topic

i would love to know how how 2 edit the Boot.wim and install.wim files i have heard that it needs to be mounted or something but i am wanting a (detail) tut on how 2 open (mount) these files

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

0

Share this post


Link to post
Share on other sites

for doing this you have to install the WAIK. Mounting can be done with ImageX

0

Share this post


Link to post
Share on other sites

To Prepare:

Install the WAIK

You will need the basic routines that the kit contains

This is what My Environment looks like

post-234222-1236276866_thumb.png

0

Share this post


Link to post
Share on other sites

Step 1: Mount The Image

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

post-234222-1236279246_thumb.png

Edited by Arrow22
0

Share this post


Link to post
Share on other sites

Step 2 - Fold in Drivers

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.

0

Share this post


Link to post
Share on other sites

Step 3 - Unmount the Image

For me, I like to verify my work...

Here is what the inf folder looked before the slipstream

post-234222-1236278220_thumb.png

And like this after the batch file is run

post-234222-1236278358_thumb.png

and here is the image now...

Note the OEM0.inf and OEM1.inf

post-234222-1236278553_thumb.png

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

post-234222-1236278829_thumb.png

How was that.

If modifying boot.wim, do both images

0

Share this post


Link to post
Share on other sites

Is it possible to use just 7zip as it allows to open wim files?

0

Share this post


Link to post
Share on other sites

Arrow22

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

0

Share this post


Link to post
Share on other sites
Arrow22

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)

Edited by Arrow22
0

Share this post


Link to post
Share on other sites
Arrow22

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

0

Share this post


Link to post
Share on other sites

I do not know anything about the timeline as I slipstream and integrate everything natively.

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.