Team OS : Your Only Destination To Custom OS !!

Welcome to TeamOS Community, Register or Login to the Community to Download Torrents, Get Access to Shoutbox, Post Replies, Use Search Engine and many more features. Register Today!

Tutorials [tutorial] Prepare Windows 7 For Lga1151/am4 Or Newer Platform

shhnedo

Member
Downloaded
15.5 GB
Uploaded
488.7 GB
Ratio
31.45
Seedbonus
35
Upload Count
5 (5)
Member for 8 years
How to modify a Windows 7 ISO so it can be installed and used on a modern Intel/AMD platform.

DISCLAIMER #1: I AM NOT SOME SORT OF PERSONAL TECH SUPPORT! I AM ONLY SHOWING YOU HOW TO PERFORM THE FOLLOWING MODIFICATIONS! I WILL NOT BE RESPONSIBLE FOR ANY PROBLEMS/DAMAGE YOU MAY OR MAY NOT EXPERIENCE AFTER PERFORMING THE FOLLOWING MODIFICATIONS!

DISCLAIMER #2: INTEL IS PLANNING TO REMOVE LEGACY BIOS SUPPORT FROM IT'S UEFI FIRMWARE SOMEWHERE AROUND THE YEAR 2020! IF AND WHEN THIS HAPPENS, THIS TUTORIAL WILL NOT BE APPLICABLE, SINCE WINDOWS 7 CAN NOT BE BOOTED ON PURE UEFI FIRMWARE!

DISCLAIMER #3: BEFORE YOU CONTINUE READING, DO MAKE SURE YOUR MOTHERBARD SUPPORTS BOOTING OLD OPERATING SYSTEMS(SUCH AS WINDOWS 7)! YOU'RE LOOKING FOR COMPATIBILITY SUPPORT MODULE(CSM) OR FOR AN OPTION THAT EXPLICITLY IMPLIES SUPPORT FOR WINDOWS 7! IF YOUR MOTHERBOARD DOES NOT HAVE CSM OR IS SIMPLY MADE WITH PURE UEFI FIRMWARE AND NO LEGACY BIOS SUPPORT, STOP HERE, THIS TUTORIAL WILL NOT HELP YOU!

==========================================================================​

Let's say for example you bought a new Intel Kaby Lake PC: a fancy Core i7 7700K with an even fancier Z270 motherboard and a Samsung NVMe SSD. You want to install windows 7 on it, but, after the hassle of making it boot and installing it, you end up with non-working usb ports(thus no way to use a mouse/keyboard/flash sticks) and for whatever reason you do not have easy access to PS/2 peripherals. How are you supposed to install the needed drivers and proceed with using the PC? Well, here's where you learn how to prepare a windows 7 iso for your brand new PC.

The entire process consists of:
- using windows 10's install PE - native UEFI, NVMe and USB3.x support, easy initial boot.
- offline driver integration into windows 7 to ensure basic functionality of the usb ports and anything else that NEEDS to work immediately after installing windows.
I'll be using an as an example, since it has USB3.x coming from both the Intel Z270 chipset and a third-party ASMedia controller(nice example of multiple different drivers).

What we'll need to perform the modification:
1. - works on windows 7/8.x/10 (32bit/64bit)
If you're using XP/Vista, you should google for an appropriate version of DISM for your OS.
2. A windows 7 iso - if you wish to run the modified Windows 7 on UEFI-CSM with GPT partitions, you MUST use an x64 iso. x86 DOES NOT boot on UEFI, period.
I recommend using an iso with integrated updates to save yourself the trouble of updating after installation.
3. A windows 10 iso - I prefer using the latest version, just to be sure.
We'll only be using the installation PE because of the native UEFI, NVMe and USB3.x support.
4. A program which can extract files from a container - I use 7-zip.
5. A program which can work with iso files - I use PowerISO.
6. Your respective motherboard's USB/NVMe/other essential drivers.
Bare in mind that for x86 windows you only need x86 drivers, and for x64 windows, respectively, x64 drivers.
7. A few empty folders.

==========================================================================
Step 1. Basic environment preparations
For the sake of ease and convenience, we'll create a few folders, a total of 3. Keep the names short and easy so you have less chance of typos.
1. I'll use my Local Disk ( D: ) partition and create a folder(w7, short for windows 7). Then, in that folder, I'll create a driver folder(drv) where we'll keep the needed drivers, and a temporary folder(tmp) which will be used for mounting.
2. In the main folder(w7) I'll put a windows 7 and a windows 10 iso, and the download drivers from the motherboard and samsung websites.
3. In the driver folder(drv) I'll extract the drivers I've downloaded.
[IMPORTANT] For the driver integration we need the .cat, .inf and .sys files to be extracted in a folder. DISM can not integrate drivers from inside a container file. If you come across a driver package that doesn't contain the needed files, it means they are inside some other container file(might be archives, might be .exe files, might be some other file extension). Don't be afraid to open such containers(I do that with 7-zip) and look for the needed files inside.
19ac3647e82736b0.png


3d1ee2ea4b3fe139.png



Step 2. Preparing a base iso
Preparing a base iso now saves you the time of having to find a windows 7 iso and extract the needed files from it when you decide to perform this modification again in the future.
1. First, you need to extract windows 7's ei.cfg and install.wim. They are both located inside the sources folder. Doesn't matter how you do it, as long as you do it.
7b697c30fada6c90.png


6cea0a56f7b863d4.png


2. Second, open the windows 10 iso(I'll use PowerISO), from the same sources folder delete the ei.cfg and install.wim(or install.esd) and put in the ei.cfg and install.wim you extracted earlier from windows 7. Save the change. You can rename the iso the whatever you like. Windows 7 x64, for example.
7bbea36c89c68584.png

You now have your base image. Copy it somewhere for safe keeping, because we well be making changes to the one in w7 folder.


Step 3. Mounting and driver integration
1.
You will need to determine what indexes are contained inside the install.wim you extracted. Open command prompt(cmd) as administrator. Execute the following command:
31ad53206691b456.png

Since I extracted the install.wim from a Professional iso, the install.wim contains all indexes(home basic/home premium/pro/ult). In general, all oem_slp channel editions(starter/homebasic/homepremium/professional/ultimate) contain all indexes. The ei.cfg inside the iso determines which edition you're allowed to install. If you delete the ei.cfg and boot the iso, you'll see and be able to install any of those editions - you have an AIO. KMS channel editions(professional VL/enterprise) contain only one index respectively. So, for this tutorial I'll be using Professional(index 3).

2. Time to mount the desired index. This is where the tmp folder comes in. Execute the following command:
c3c063c449da9b15.png

You have mounted the desired index in the tmp folder.

3. Now we can integrate the drivers we extracted to the drv folder. Execute the following command:
050c1408abd41765.png

Drivers are now integrated into windows 7. You can double check by executing dism /image:d:\w7\tmp /get-drivers , but I will not be doing that right now.

4. Now it's time to apply the changes we made and unmount the image. Execute the following command:
3f1e30a98df60d89.png



Step 4. Putting the modified install.wim inside the base iso
You're basically repeating the second part of Step 2. - open the base iso, delete it's install.wim and put in the install.wim you just finished modifying. Save the changes.


You can now proceed to making a bootable USB or whatever, and install the modified windows 7.
Needless to say, while you're at it, you can also integrate your LAN/audio/graphics and other drivers.
 
Last edited:

Yash Dedhia

Power User
✅ Verified Member
Member
Downloaded
139.4 GB
Uploaded
679.5 GB
Ratio
4.87
Seedbonus
262
Upload Count
0 (0)
Member for 9 years
Amazing Tutorial which can be very helpful nowadays when Intel is throwing away support. Will try in due course of time.
 

Power Bot

Member
Downloaded
0 bytes
Uploaded
2.2 GB
Ratio
-
Seedbonus
3
Upload Count
2 (2)
Member for 8 years
Thank you @shhnedo :)

I am sure there are alot of people who are curious how the process works and with this guide you worked hard to make i think it paints a clear picture and you did Awesome!!!!!
 

koojo

Member
Downloaded
17.2 GB
Uploaded
59.6 GB
Ratio
3.47
Seedbonus
385
Upload Count
0 (0)
Member for 6 years
Pretty good write up. Thanks. The nvme was a thing I was concerned about. There "was" support for win7 on the z370 chipset and now theyre gone, it seems. You can however download certain bios's for certain boards to support win 7. Thanks.
 

shhnedo

Member
Downloaded
15.5 GB
Uploaded
488.7 GB
Ratio
31.45
Seedbonus
35
Upload Count
5 (5)
Member for 8 years
Made a clarification about the actual files that need to be integrated.
Check Step 1 in OP.
 
Last edited:

SiteWizard

Uploader
Power User
✅ Verified Member
Member
Downloaded
224.8 GB
Uploaded
31.1 TB
Ratio
141.82
Seedbonus
644,646
Upload Count
12 (12)
Member for 9 years
this is a verry good fine and nice tutorial :)
i like that :), Keep up the good work :)
 

Harry Hole

Power User
✅ Verified Member
Member
Downloaded
452 GB
Uploaded
2.6 TB
Ratio
5.98
Seedbonus
59,833
Upload Count
0 (0)
Member for 9 years
thank you for the hard work on this very useful tut :)
 

TheHarperdragon

Power User
✅ Verified Member
Member
Downloaded
913.2 GB
Uploaded
154.5 TB
Ratio
173.28
Seedbonus
120,569
Upload Count
0 (0)
Member for 10 years
Great share for those who use laptops!
 

daniel54

Member
Downloaded
301.1 MB
Uploaded
15.9 GB
Ratio
53.94
Seedbonus
375
Upload Count
0 (0)
Member for 6 years
clear and simple! I ad done a similar way whis Nt lite
 

*Maestro*

Power User
Member
Downloaded
368.9 GB
Uploaded
81.8 TB
Ratio
226.97
Seedbonus
711,487
Upload Count
0 (0)
Member for 9 years
Tutorials just don't get to much better than this.
Perfect way to show all of us what needs to be done to make it work well.
Great job.
Thank you.:cool:
 

csengh

Member
Downloaded
8 MB
Uploaded
12.7 GB
Ratio
1622.54
Seedbonus
8,251
Upload Count
0 (0)
Member for 8 years
Very nice tutorial ?, thank's
 

Beechmasters

✅ Verified Member
Member
Downloaded
153.7 GB
Uploaded
9.5 TB
Ratio
63.52
Seedbonus
7,336
Upload Count
0 (0)
Member for 6 years
Could I not just copy the ei.cfg and install.wim from one iso of win7 that works as I want it [has usb 3 etc] to another iso of win 7 that does not have usb 3 etc [over writing of course] and then use that?

Great tutorial. Very in-depth :)

Could I not just copy the ei.cfg and install.wim from one iso of win7 that works as I want it [has usb 3 etc] to another iso of win 7 that does not have usb 3 etc [over writing of course] and then use that?

Great tutorial. Very in-depth :)
Sorry but I should have added. I am mainly concerned with adding usb3 support and also pre-activation.
Will those two things be added if I simply swap out those two files from a disc that has it, to a disc that does not have it?

Thanks for everyone's help here. :)
 

LSHOPPE

Member
Downloaded
15.5 MB
Uploaded
5 GB
Ratio
330.32
Seedbonus
0
Upload Count
0 (0)
Member for 4 years
Kindly share anyone windows 7 install in hp desktop 190l301 model 8th generation processor

Windows 7 install with usb 3.0
but after restart mouse and keyboard not working.

Kindly
 

Beechmasters

✅ Verified Member
Member
Downloaded
153.7 GB
Uploaded
9.5 TB
Ratio
63.52
Seedbonus
7,336
Upload Count
0 (0)
Member for 6 years
Hi schhnedo
I have a few windows 7 versions from this website and I do not see the "install.wim" file in the sources folder.
I do see two and sometimes three other files called install.* [install.ini and install.esd for instance] in the sources folder.

But no install.wim file.
Boot.wim does exist on all of them so far.

What is to be done in this case?
Thanks for helping :)
 

shhnedo

Member
Downloaded
15.5 GB
Uploaded
488.7 GB
Ratio
31.45
Seedbonus
35
Upload Count
5 (5)
Member for 8 years
What is to be done in this case?
If there's no install.wim, it means whoever compiled the iso you're using decided to compress the contents of install.wim to install.esd. ESD is a compression format which results in a significantly smaller install file.
What YOU should do is export all the indexes(editions) from the install.esd file into a new install.wim file. Open cmd as administrator and execute the following command:
Code:
dism /export-image /sourceimagefile:x:\example_folder\install.esd /sourceindex:1 /destinationimagefile:x:\example_folder\install.wim /compress:max /checkintegrity
You execute it as many times as there are editions in the install.esd file, every time increasing the value of /sourceindex:N by 1. So if you have a 3in1 AIO, you execute the command like this:
Code:
dism /export-image /sourceimagefile:x:\example_folder\install.esd /sourceindex:1 /destinationimagefile:x:\example_folder\install.wim /compress:max /checkintegrity
dism /export-image /sourceimagefile:x:\example_folder\install.esd /sourceindex:2 /destinationimagefile:x:\example_folder\install.wim /compress:max /checkintegrity
dism /export-image /sourceimagefile:x:\example_folder\install.esd /sourceindex:3 /destinationimagefile:x:\example_folder\install.wim /compress:max /checkintegrity
After that you can do w/e you want with the new install.wim. ESD files can't be modified like WIM files can.
 

Beechmasters

✅ Verified Member
Member
Downloaded
153.7 GB
Uploaded
9.5 TB
Ratio
63.52
Seedbonus
7,336
Upload Count
0 (0)
Member for 6 years
Ok thanks :)
I only get my OSes from here by the way.
Thanks again for your help shhnedo :)
 

Fortesting

Member
Downloaded
5.7 TB
Uploaded
17.2 TB
Ratio
3.03
Seedbonus
5,305,108
Upload Count
0 (0)
Member for 6 years
Great tutorial. Thank you so much!
 
Top