Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: WIM File - Extract and Modify



WIM File - Extract and Modify

How to Extract and Modify WIM Files
Published by septprince
02 Jul 2009
Published by

How to Extract and Modify WIM Files

Sometimes when some of the dll files gets deleted somehow or certain Windows features crashes due to corrupt file then we had use system Restore or have to perform clean installation to get those files back. But while we use System Restore or we perform clean installation some or all our installed gets deleted. install.wim file in your windows 7 or windows vista DVD contains a windows image. IF we could Extract it then we could use those files it to replace the corrupted file in our Windows.
Or you can also modify the .wim file to add or delete a program or file.
This tutorial is all about how to mount or modify install.wim or any .wim file.

warning   Warning
Things you need:
1)ImageX.exe from the Windows Automated Installation Kit (WAIK)
2)install.wim file from you windows installation DVD.
3)More than 5GB of hdd space.


Copy the install.wim file to you local hard disk(let say i copied it to f:\).
let say you have kept imagex.exe in c:\ drive. And you are going to mount the .wim file in d:\mount.

Note   Note
You cannot mount .wim file directly to any drive


To mount .wim file in d:\mount at first we have to make a folder in d:\ named mount.

There are two process of mounting:
1)with read only permission(you can`t modify .wim file).
2)with read write permission(you can modify .wim file).
1) Mounting With read only permission:
Open command and go to c:\
then type: imagex /mount f:\install.wim 2 d:\mount
And install.wim will be mounted to d:\mount.
Name:  image1.png
Views: 37926
Size:  37.4 KB
2) Mounting with read\write permission:
Open command and go to c:\
then type

imagex /mountrw f:\install.wim 2 d:\mount
Name:  image2.png
Views: 36633
Size:  50.0 KB
Note   Note
where d:\mount is the location of the mount directory, f:\install.wim is the name and the location of the .wim file to mount, and 2 is the reference number of the specific volume in the .wim file.

Modifying an Image
After you mount an image, the directory structure becomes available from a file-management tool, such as Windows Explorer. From the file-management tool, you can review your file and folder structure and add, edit, or delete files and folders.

To view files and folders
On yourcomputer, start Windows Explorer, and then open the mounted directory. For example,

d:\mount
Review the file and folder structure, including content.
To Add Files or Folders
If you must add an application or a device, verify that you included all of the required files. Although you can add application files and folders, you cannot install applications.
To edit files or folders
On your computer, start Windows Explorer, and then open the mounted directory. For example,

d:\mount
Edit the files and the folders. Move the files and the folders within your image, or open the files and view their contents.

To delete files or folders
On your computer, start Windows Explorer, and then open the mounted directory. For example,

C:\mount
To delete a file or a folder, press SHIFT+DELETE.

Note   Note
You cannot delete an entire .wim file. However, you can delete all of the files contained within the image. The DELETE key alone will not delete any files or folders you have to use SHIFT+DELETE.

To Unmount an Image
On your computer, at a command prompt, open the ImageX directory(as on my computer i have kept it in c:\).

Then type: imagex /unmount /commit d:\mount

Note   Note
where d:\mount is the location of the mount directory. If you do not specify the parameters to unmount, this option lists all of the mounted images but does not perform the unmount action.

If you use the /unmount option without the /commit option, your changes will be discarded. To save your changes, you must mount the image by using the /mountrw option and the /commit option when unmounting the image.

Feel free to comment. And if i have done any mistake in the tutorial feel free to speak about it. Thanks for reading.
02 Jul 2009   #1
YupYup

Win 7
 
 

Good tutorial but i would use dism with windows 7 since it is included and imagex is not.

My System SpecsSystem Spec
03 Jul 2009   #2
septprince

Window 7 build 7600, Xp pro(VM)
 
 

Ya we can use that also but command lines are slightly different.
My System SpecsSystem Spec
03 Jul 2009   #3
YupYup

Win 7
 
 

Quote   Quote: Originally Posted by septprince View Post
Ya we can use that also but command lines are slightly different.
Yes but it does not require a download and is on the DVD so you can use it if you can't boot into windows. but if you are going to download imagex why not go for GImageX at least then you have a gui.
My System SpecsSystem Spec
.


03 Jul 2009   #4
Mark

Windows 7 Ultimate Vista Ultimate x64
 
 

You could also use 7-Zip to open the extracted wim and browse through the directories and pull any files you need that way.
My System SpecsSystem Spec
03 Jul 2009   #5
Orbital Shark

 
 

Excellent tutorial

Another app that can extract & save WIM files is 'Universal Extractor' & it's free
My System SpecsSystem Spec
27 Jul 2009   #6
hamisoft

Seven
 
 

Hello
I have a problem in Mount by wim .
Only and only
I copy the file Install.win drive f
I created an empty folder into drive d And called mount
I copy Imagex.exe in the drive c
--------------------------------------------------------
Run CMD
imagex /mountrw f:\install.wim 2 d:\mount

But Error
the volume of the specified mount path does not support reparse points.please mount to a volume that supports reparse points.
---------------------------------------------------------
?How do I solve this problem







My System SpecsSystem Spec
27 Jul 2009   #7
septprince

Window 7 build 7600, Xp pro(VM)
 
 

Just try to mount it in another drive..
What file system does your d: drive use??
My System SpecsSystem Spec
03 Sep 2009   #8
hamisoft

Seven
 
 

After the Mount , Some of the files do not change
For Example After the Mount Install.wim in C:\TEST ... I want to Modify "Windows\Web\Wallpaper\Windows\img0.jpg"
But faced with the following message I get logged :
Can not Rename img0.jpg Access is Denied
My System SpecsSystem Spec
03 Sep 2009   #9
chuckr

XP_Pro, W7_7201, W7RC.vhd, SciLinux5.3, Fedora12, Fedora9_2x, OpenSolaris_09-06
 
 

Quote   Quote: Originally Posted by hamisoft View Post
After the Mount , Some of the files do not change
For Example After the Mount Install.wim in C:\TEST ... I want to Modify "Windows\Web\Wallpaper\Windows\img0.jpg"
But faced with the following message I get logged :
Can not Rename img0.jpg Access is Denied
Did you read the tutorial ?

Both of the "Step 2" might help...

OTOH, might not...
My System SpecsSystem Spec
Comment

 WIM File - Extract and Modify




Tutorial Tools



Similar help and support threads for2: WIM File - Extract and Modify
Windows 7 Tutorial Category
Solved How does one modify advanced options for a file type? General Discussion
Can't modify host file in windows 7 System Security
Cannot modify mkv file / windows explorer crashes General Discussion
Solved Extract ISO file Tutorial Chillout Room
Which File to Extract? General Discussion
How to extract .dat file from rar? Software
Can`t modify file General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:34 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33