How to inject drivers into WINPE (Setup) or the Main install - HikariBook/Wiki GitHub Wiki
Download Arm64 windows install files
- Go to https://uupdump.ml/ select either the latest insider preview or feature update (Cumulative updates are unsupported)
- Select Next
- Select which editions you want
- Select Download and convert to iso
- Optionally select "Run cleanup after updates integration"
- Select create download package
- extract the zip
- run the windows .bat file to download all the files needed and convert them into the iso files
- Wait until the process is finished and then extract everything out of it
- You can optionally wait until the process in step 8 is almost done there is a temporary USB folder that is created wherever you extracted the zip it contains the files that go into the iso so you can make a copy of that before they are deleted to save time.
To Inject drivers into WINPE (Setup)
Mounts the boot.wim at specficied folder (boot.wim file is located %ISO_FILES%\sources)
dism /mount-wim /wimfile:%PathToBootWimFile% /Index:1 /mountdir:%ImageMountDir%
Adds drivers to WINPE (Recurse adds drivers in sub-folders, force unsigned allows unsigned drivers to be added)
dism /Image:%ImageMountDir% /Add-Driver /Driver:%WINPEDriversDir% /Recurse /ForceUnsigned
Unmount and commit all changes to install.wim
dism /Unmount-Image /MountDir:%ImageMountDir% /Commit
To inject drivers into Main System
Lists editions in the install.wim (install.wim file is located %ISO_FILES%\sources)
dism /Get-WimInfo /WimFile:%PathToInstallWimFile%
Mounts the edition located at Index 1 (Indexes are found in the above command)
dism /Mount-Image /ImageFile:%PathToInstallWimFile% /Index:1 /MountDir:%ImageMountDir%
Add drivers to selected edition (Recurse adds drivers in sub-folders, force unsigned allows unsigned images)
dism /Image:%ImageMountDir% /Add-Driver /Driver:%SystemDriversDir% /Recurse /ForceUnsigned
Unmount and commit all changes to install.wim
dism /Unmount-Image /MountDir:%ImageMountDir% /Commit
Repeat the last 3 steps for however many editions you want to add drivers too
Disable UHS card support (Qualcomm's Recommendation)
Loading install media registry
reg load HKLM\Desktop-System %ISO_FILES%\windows\system32\config\system
Setting Reg Key
reg add HKLM\Desktop-System\ControlSet001\Services\SDBUS\Parameters /v DisableUhsSupport /t REG_DWORD /d 0x1 /f
Unloading install media registry
reg unload HKLM\Desktop-System
Turn off driver signing (BCD file is located %ISO_FILES%\efi\microsoft\boot)
bcdedit /store %BCDFile% -set {default} testsigning on
Create the ISO from your files
- Download the latest Windows Assessment and Deployment Kit (ADK) for Windows 10
-
If your computer is running a Windows 10 Insider Preview https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewADK
-
If your computer is running normal Windows 10 https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit
-
Run the downloaded exe and unselect everything but Deployment tools
-
Once finished look under Windows Kits in your start menu for Deployment and Imaging Tools run it as admin
-
Run this command to pack your files into an iso (You can also customize the final iso name at the end of the command)
oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,b%ISO_FILES%\boot\etfsboot.com#pEF,e,b%ISO_FILES%\efi\microsoft\boot\efisys.bin %ISO_FILES% c:\HikariBook-Windows.iso
Export install.wim to .esd (optional) (Takes a long time )
dism /export-image /SourceImageFile:%PathToInstallWimFile% /SourceIndex:1 /DestinationImageFile:c:\HikariBook-Windows-install.esd /Compress:recovery /CheckIntegrity