How to Extract Original (Default) System Files from Windows Setup ISO / Disc

Today we are going to address a very common Windows problem. Many times we modify or replace system files in Windows for customization purposes. For example, to customize or change login screen, boot screen, Start ORB, Windows theme, etc. Most common system files which are replaced by Windows users are Explorer.exe, NTOSkrnl.exe, LogonUI.exe, Shell32.dll, MSgina.dll, authui.dll, uxtheme.dll, etc.

But sometimes we don’t like the end result or we face problems after replacing or modifying those system files. In such case, we can perform a System Restore to restore our Windows to a previous working state or we can restore the backup of the system file which we created before replacing or modifying the original file.

But what to do if we neither created a System restore point nor took a backup of the file? In such condition, we have no other option left except repairing or reinstalling Windows or we can copy the same file from another system and paste it in our system.

Advertisement

Don’t worry! Today we are going to share a small and easy to use trick which can help you in extracting any system file from Windows setup disc or ISO image file so that you can easily restore the original system file in Windows.

This trick will also help customization lovers who always want to grab system files from a new Windows OS to extract new resources from it without installing the OS in their system.

The one and only tool which we use in this tutorial is 7-Zip which is an awesome and absolutely free file archive software. So first download it using following link:

Download 7-Zip

For your convenience, we have divided the tutorial in 2 parts:

  • Extracting system files from Windows XP and Windows Server 2003 setup
  • Extracting system files from Windows Vista, Windows 7 and later OS setup

So without wasting time, lets start the tutorial:

Extracting System Files from Windows XP and Server 2003 Setup

Extracting a system file from Windows XP and Windows Server 2003 is very simple and easy. All system files in XP and Server 2003 setup are stored in “I386” folder present in the setup and all files are stored in compressed format. For example, Explorer.exe file will be present as Explorer.ex_, Shell32.dll file will be present as Shell32.dl_ and so on.

Advertisement

You just need to right-click on the file which you want to copy or extract, go to 7-Zip context menu and click on “Extract Here” option.

Extracting_Windows_XP_System_File_Setup_ISO_7_Zip.png

That’s it. It’ll immediately extract the original system file which you can use anywhere you want.

Extracting System Files from Windows Vista and later OS Setup

Extracting a system file from Windows Vista, Windows 7, Windows 8/8.1, Windows 10, Server 2003 and Server 2008 setup is a bit tricky because the setup ISO of these Windows OS uses a new file format .WIM to store all system files in it. Normally this file format is not recognized by many popular file archiving utilities but 7-Zip can recognize it without any problem.

Many people mount Windows setup ISO to extract the files but if you use 7-Zip, you’ll not need to mount it. You can directly extract any desired system file using following simple steps:

1. If you have Windows setup disc, insert it in the drive or if you already have Windows setup copied in your hard disk, go to that folder.

2. Now go to “Sources” folder and look for a file “install.wim“. That’s the file which contains all system files. Once you find the file, right-click on it and select “7-Zip -> Open archive” option. It’ll open the file in 7-Zip.

Now jump to Step 3.

NOTE: For people who have copied Windows setup ISO directly in their hard disk, right-click on it and select “7-Zip -> Open archive” option.

Opening_Windows_Setup_ISO_File_7_Zip.png

Now go to “Sources” folder and look for a file “install.wim“. Once you find the file, right-click on it and select “Open” option.

Opening_Install_WIM_File_7_Zip.png

3. Once you open “install.wim” in 7-Zip, you’ll see a few folders having numbers in their names like 1, 2, 3, 4 and 5 as shown in following screenshot:

Viewing_Install_WIM_File_Content_7_Zip.png

Actually each number is associated with a different edition of Windows. These numbered folder may vary for different setup ISO.

Now you just need to find the correct folder which corresponds to the correct Windows edition installed in your system. To find out the correct edition, you can extract [1].xml file present in the archive and open it. This file contains information about all these numbered folders.

Look for a line <IMAGE INDEX=”1″> in the [1].xml file. It should be 4th line in the file. After a few lines under it, you’ll see <EDITIONID>, <NAME>, <DESCRIPTION>, <DISPLAYNAME> and <DISPLAYDESCRIPTION> tags. These tags will give you an idea which number corresponds to which edition of Windows.

Edition_Info_XML_Windows_Setup_ISO.png

The number of occurrence of <IMAGE INDEX=”#”> tag in xml file will be equal to number of folders present in “install.wim” file.

If the first occurrence of <IMAGE INDEX=”#”> tag doesn’t match with your installed edition of Windows, go to next occurrence until you find the correct edition and its index.

Once you find out the correct edition and its index number, open that numbered folder within 7-Zip and you’ll see all files and folders which you normally see in C: drive after installing Windows as shown in following screenshot:

Viewing_Windows_Setup_ISO_Content_7_Zip.png

That’s it. Now you can browser through folders and copy/extract the desired file.

Feel free to post your feedback about this tutorial in your comment. Do you already use 7-Zip to extract system files or was it new for you? If you know any other interesting method, please share it in your comment…

Published in: Windows 10, Windows 7, Windows 8, Windows Vista, Windows XP

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. Nice! it will be of use sir! im thinking if anyone here knows how to get the windows set up files in my pre-installed OS… ?

  2. Trying to fix the strange little squares that started appearing on the keyboard. This is not easy for someone who is technically incompetent. Any ideas on a SIMPLE fix?!?!?!!?

  3. Tried to do this with the Windows 8.1 ISO but 7-Zip tells me it can’t open the file. Any help?

  4. The 8.1 ISO has an install.esd instead of install.wim. 7-zip will not open this file and I can’t find any other way of opening it. Do you have any ideas?

  5. ^^ Its a highly compressed image format and currently there is no way to extract files from it.

  6. @ Peter F
    You need to convert the .esd to .wim u can do it either using a vm to capture the .wim as its uncompressed or follow the instructions as i did on this site msfn.org/board/topic/171716-prepare-and-slipstream-updates-in-to-a-windows-81-wim-or-esd-image-including-update-1/
    the uploader have a great tool that converts the .esd to .wim

  7. Any suggestions on what to do if I don’t have the Windows System disk because Windows 7 came installed on my computer? This italic Georgia font is driving me nuts! Your zip drive with other common fonts was super helpful, but Georgia isn’t in there. Thanks!

  8. Mine is Windows 10×64. The file adcjavas.inc is stored in 4 directories. This is the only file that appears as ‘cannot repair’ in the SFC log. I have Windows 10×64’s install.wim, but the latest 7zipx64 says it can’t open it.

  9. ^^ If you are using Windows 8 or later, double-click on ISO file and it’ll mount the ISO file as a DVD drive in My Computer. Then you can copy WIM file from it.

    Otherwise you can use a software like 7-Zip to extract the ISO file as mentioned in the above tutorial.

  10. i only see the boot wim file under the source folder, thererfore, no other files are listed. Again I am using vista.

    pls help.

  11. INSTALL.ESD: ESD is encrypted. It needs to be decrypted in order for 7-zip to open the file.

  12. Thanks very much VG.
    I often install old software and apps from Windows NT and 98. I was able to get the software I needed off of my CD thanks to your above post.
    Where as before I used to have to search for every single Bloody CAB file.
    But not anymore thanks to this.
    Your a Star.
    Andrea.

  13. bummer 7-zip does not recognize the ESD (install.esd 3,566,616KB) file format now being used for the win10 iso (post 1607?) 🙁 otherwise…GREAT writeup

  14. Please upload the video……
    When I extract install.wim files ..it will hang my laptop…..
    Please help…..

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.