Hi,
I found this tutorial to install windows directly from iso.
On my USB Drive I have:
images
|-win10.iso
wimboot * this folder with files download from tutorial site (grub2_wimboot.zip)
|-ImgDisk
|-startup.bat
|-winpeshl.ini
|-wimboot
autounattend.xml *from Easy2Boot
unatted.xml *from Easy2Boot
grldr
menu.lst
menu.lst:
title Install Windows10 using wimboot method map /images/Win10.iso (0xff) map --hook root (0xff) # the root path now points to the files inside the ISO file # hd0,0 is the USB drive that we booted from kernel (hd0,0)/wimboot/wimboot initrd @startup.bat=(hd0,0)/wimboot/startup.bat @winpeshl.ini=(hd0,0)/wimboot/winpeshl.ini @bcd=/boot/bcd @boot.sdi=/boot/boot.sdi @boot.wim=/sources/boot.wim @Win10.iso.tag=/boot/bcd map (hd0) (hd1) map (hd1) (hd0) map --hook boot
startup.bat:
@echo off TITLE %~dpnx0 (WIMBOOT startup.bat) wpeinit.exe REM prevent wpeinit from running again ren X:\windows\system32\wpeinit.exe wpeinit.exe.old for %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%I:\wimboot\startup.bat set USBDRIVE=%%I: IF "%USBDRIVE%"=="" ( echo ERROR - COULD NOT FIND E2B DRIVE! pause goto :EOF ) cd %USBDRIVE%\ %USBDRIVE% color 1f @echo off cls SET BIT=32 if "%PROCESSOR_ARCHITECTURE%"=="AMD64" SET BIT=64 echo LOADISO FOR /L %%A IN (0,1,5000) DO ECHO NOTHING > nul cls @echo FOUND USB DRIVE AT DRIVE %USBDRIVE% cd /d %USBDRIVE%\ :: get path of the ISO into ISONAME :: SET "MYISO=\images\WIN10.iso" for /f %%a in ( 'dir /b X:\Windows\System32\*.iso.tag' ) do set MYISO=%%a set MYISO=%MYISO:~,-4% :: find the ISO set UPATH=\%MYISO% if exist %USBDRIVE%%UPATH% set MYISO=%UPATH% echo Loading %USBDRIVE%%MYISO% REM Load ISO using ImDisk TITLE LOAD WINDOWS ISO USING IMDISK call \wimboot\imdisk\IMDISK_install.cmd call \wimboot\imdisk\IMDISK_instiso.cmd REM Find mounted DVD drive set DVDDRIVE= FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( DIR %%D:\SOURCES\install.* > nul 2>&1 && (call set DVDDRIVE=%%D:) && echo FOUND %%D:\SOURCES\install.* ) FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( DIR %%D:\SOURCES\x86\install.* > nul 2>&1 && (call set DVDDRIVE=%%D:) && echo FOUND %%D:\SOURCES\x86\install.* ) FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( DIR %%D:\SOURCES\x64\install.* > nul 2>&1 && (call set DVDDRIVE=%%D:) && echo FOUND %%D:\SOURCES\x64\install.* ) FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( DIR %%D:\x86\SOURCES\install.* > nul 2>&1 && (call set DVDDRIVE=%%D:) && echo FOUND %%D:\x86\SOURCES\install.* ) FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( DIR %%D:\x64\SOURCES\install.* > nul 2>&1 && (call set DVDDRIVE=%%D:) && echo FOUND %%D:\x64\SOURCES\install.* ) :ENDSEARCH IF "%DVDDRIVE%"=="" echo WARNING: VIRTUAL DRIVE DRIVE NOT FOUND! IF "%DVDDRIVE%"=="" echo WARNING: install.* not found on any mounted volume. IF "%DVDDRIVE%"=="" pause echo. IF NOT "%DVDDRIVE%"=="" echo ISO FILE MOUNTED AS %DVDDRIVE% REM startnet.cmd normally only contains wpeinit.exe, custom ISOs may contain other commands, so try to run them if exist X:\WINDOWS\SYSTEM32\startnet.cmd call cmd /c X:\WINDOWS\SYSTEM32\startnet.cmd if not exist X:\WINDOWS\SYSTEM32\startup.bat exit IF "%DVDDRIVE%"=="" cmd %DVDDRIVE% cd \ set pp=\x86 if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" set pp=\x64 if not exist %DVDDRIVE%%pp%\setup.exe set pp= MODE CON COLS=30 LINES=2 echo DO NOT CLOSE THIS WINDOW REM %DVDDRIVE%%pp%\setup.exe /Unattend:%E2BDRIVE%\AutoUnattend.xml %DVDDRIVE%%pp%\setup.exe
Tested with VirtualBox it seems to work but ended up with:
FOUND USB DRIVE AT DRIVE C: Datei nicht gefunden Loading C:~,-4 ImDisk driver installes successfully. Mounting "~,-4" using ImDisk Mounting ISO as Y:... Creating device... Error creating virtual disk: Das System kann die angegebene Datei nicht finden. WARNING: VIRTUAL DRIVE DRIVE NOT FOUND! WARNING: install.* not found on any mounted volume. Drücken Sie eine beliebige Taste . . . C:\>wpeinit Der Befehl "wpeinit" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Microsoft Windows [Version 10.0.17134.112] Zur Verarbeitung dieses Befehls sind nicht genügend Speicherressourcen verfügbar.
Same if I test on "real" computer.
Can somebody tell me what's wrong or managed someone to install from Windows ISO?
Thanks