@SoulRipper
Inded you shoul use boot.wim and setup.exe from Win8, or better Win10.
Here is my install image assembly method (suggestions appreciated!):
2
3
4
5
6
7
8
9
10
11
r:\temp\drivers
r:\temp\hotfix
r:\temp\hotfix\Windows6.1-KB2550978-x64.msu
r:\temp\hotfix\Windows6.1-KB2990941-v3-x64.msu
r:\temp\hotfix\Windows6.1-KB3087873-v2-x64.msur:\temp\mount
r:\temp\src
r:\temp\win10_boot
r:\temp\win10_boot\boot.wim
r:\temp\win10_boot\setup.exe
r:\temp\winremount
r:\temp\oscdimg.exe
3fb17314d6e25c29173c7e373096927f *oscdimg.exe (126 528 bytes)
98e07394d729f7980a67753124e683c7 *boot.wim (331 492 320 bytes)
f7e31dc831f07a445bf4fc900f33fc32 *setup.exe (278 752 bytes, file version 10.0.16299.15 (WinBuild.160101.0800))
76e3d6fe7f5205ee56863569a36ca2ed *Windows6.1-KB2990941-v3-x64.msu - nvme support
afffe9c2cc56fa6565839d9ca44e21db *Windows6.1-KB3087873-v2-x64.msu - some nvme fix
86db9e6a7667acd09c091cce02c23586 *Windows6.1-KB2550978-x64.msu - no need for nvme, need for some iscsi issues
Drivers are for nvme ssds, network and sata:
nic_bcm
nic_int
nic_marv
nic_nvid
nic_rtl
nic_vmw_vmxnet3
nvme_int
nvme_plex_liteon
nvme_sam
nvme_tos_ocz
sata_amd
sata_asm
sata_int
sata_marv6
sata_marv8
sata_marv9
sata_nforce
sata_vmw_pvscsi
Get index numbers and set correct index in all following batch files. No automation here. I use clean official MSDN Win7 Enterprise image.
2
3
4
5
6
7
8
9
@echo off
dism /Get-WimInfo /WimFile:r:\temp\src\sources\install.wim
echo.
echo.
dism /Get-WimInfo /WimFile:r:\temp\src\sources\boot.wim
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Inject drivers and hotfixes into boot image. This step may be legacy, but, there are some files changed and copied, so i execute this step
2
3
4
5
6
7
8
9
10
11
12
13
@echo off
echo ---mount boot image and inject hotfix and drivers---
dism /Mount-Wim /WimFile:r:\temp\src\sources\boot.wim /Index:1 /MountDir:r:\temp\mount
dism /Image:r:\temp\mount /Add-Package /PackagePath:r:\temp\hotfix
dism /Image:r:\temp\mount /Add-Driver /Driver:r:\temp\drivers /Recurse
dism /Unmount-Wim /MountDir:r:\temp\mount /Commit
dism /Mount-Wim /WimFile:r:\temp\src\sources\boot.wim /Index:2 /MountDir:r:\temp\mount
dism /Image:r:\temp\mount /Add-Package /PackagePath:r:\temp\hotfix
dism /Image:r:\temp\mount /Add-Driver /Driver:r:\temp\drivers /Recurse
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Now sort r:\temp\mount\sources by date and copy updated files to r:\temp\src\sources
And unmount boot.wim
2
3
4
5
6
7
8
@echo off
echo files copied ??
pause
dism /Unmount-Wim /MountDir:r:\temp\mount /Commit
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Now inject drivers and hotfixes into install.wim
2
3
4
5
6
7
8
9
10
11
12
13
@echo off
echo ---mount install image and inject hotfix and drivers---
dism /Mount-Wim /WimFile:r:\temp\src\sources\install.wim /Index:1 /MountDir:r:\temp\mount
dism /Image:r:\temp\mount /Add-Package /PackagePath:r:\temp\hotfix
dism /Image:r:\temp\mount /Add-Driver /Driver:r:\temp\drivers /Recurse
echo.
dism /Mount-Wim /WimFile:r:\temp\mount\windows\system32\recovery\winre.wim /Index:1 /MountDir:r:\temp\winremount
dism /Image:r:\temp\winremount /Add-Package /PackagePath:r:\temp\hotfix
dism /Image:r:\temp\winremount /Add-Driver /Driver:r:\temp\drivers /Recurse
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Set locale and language parameters. I prefer English keyboard as default everywhere, but Russian locale for system
2
3
4
5
6
7
8
9
10
11
@echo off
Dism /Image:r:\temp\mount /Get-Intl
echo setting locale
Dism /Image:r:\temp\mount /Set-SysLocale:ru-RU
Dism /Image:r:\temp\mount /Set-UserLocale:ru-RU
Dism /Image:r:\temp\mount /Set-InputLocale:0409:00000409;0419:00000419
Dism /Image:r:\temp\mount /Set-TimeZone:"N. Central Asia Standard Time"
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Unmount winre.wim and install.wim
2
3
4
5
6
7
8
@echo off
echo ---unmount and commit---
dism /Unmount-Wim /MountDir:r:\temp\winremount /Commit
dism /Unmount-Wim /MountDir:r:\temp\mount /Commit
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Inject simplix updates and usb3 into install.wim
Simplix claims that his pack already has nvme support fixes and drivers, but i use my old stable and confirmed method. Not using /nvme key when integrating.
2
3
4
5
6
7
8
9
@echo off
echo Achtung! Are you ready to inject Simplix Pack?
pause
md r:\unpack_temp
r:\temp\UpdatePack7R2-19.3.15.exe /ie11 /FixOff /Optimize /WimFile=r:\temp\src\sources\install.wim /Index=1 /Temp=r:\unpack_temp
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
Copy boot files from Win 10
2
3
4
5
6
7
8
@echo off
echo ---copy win10 boot image---
copy /y r:\temp\win10_boot\boot.wim r:\temp\src\sources\boot.wim
copy /y r:\temp\win10_boot\setup.exe r:\temp\src\sources\setup.exe
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
And finally make iso file.
2
3
4
5
6
7
8
@echo off
echo ---writing ISO image Win7sp1ru-NVME.iso---
echo WARNING! existing file will be overwritten!
oscdimg -LTEST -m -u2 -bootdata:2#p0,e,br:\temp\src\boot\etfsboot.com#pEF,e,br:\temp\src\efi\microsoft\boot\efisys.bin r:\temp\src r:\temp\Win7sp1ru-NVME.iso
echo.
echo -- %0 -- !!_DONE_!!
echo.
echo.
oscdimg command line is quite strange, but it is correct - no whitespaces after switches needed. There are several versions of oscdimg with some differences in command line and behaviour.
EDIT by Fernando: Additional "spoiler" added and unneeded blank lines removed (to save space)