Ventoy Forums
Win7 PE - driver incection - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: Win7 PE - driver incection (/showthread.php?tid=1944)

Pages: 1 2


RE: Win7 PE - driver incection - Nierewa - 01-26-2022

According to my post #9 it doesn't seem to work to install drivers.
What did 00 mean in VentoyAutorunBat.log?


RE: Win7 PE - driver incection - Nierewa - 01-26-2022

Why did I want a driver injection?
I start Win7PE.iso and can no longer use mouse and keyboard.
Clearly, the USB driver was not loaded.

On VM the injection works, but not on "real" machine.

On a real machine there's no VentoyAutoRun.bat in X:\
It seems that the USB Stick isn't startet because driver issues during boot. The USB stick is not mounted.
So the injection isn't the right thing here.

How can I solve the problem?
Maybe with DUD (Driver Update Disk) Plugin?
But how can this be done with Windows 7 PE 32bit?


RE: Win7 PE - driver incection - hyun9358 - 02-04-2022

(01-24-2022, 01:33 PM)롱판다 Wrote: Windows 드라이버 로드 메커니즘에 대해 잘 모릅니다.
$OEM$ 폴더에 주입하면 드라이버가 자동으로 로드되나요?
먼저 VM(예: Vmware/VirtualBox)으로 테스트하여 부팅 후 드라이버가 자동으로 로드되는지 확인할 수 있습니다.
자동 로드가 되지 않는 경우 드라이버와 VentoyAutoRun.bat를 함께 주입하고 VentoyAutoRun.bat에 드라이버를 설치할 수 있습니다.
VentoyAutoRun.bat

i am learning
I still don't know how to proceed.


RE: Win7 PE - driver incection - Nierewa - 02-09-2022

The USB Stick isn't startet because driver issues during boot. The USB stick is not mounted.
So the injection isn't the right thing here because no file could be load.

Have to add the USB drivers during boot.


RE: Win7 PE - driver incection - nguyen ha thai trong - 02-10-2022

(02-09-2022, 10:26 AM)Nierewa Wrote: The USB Stick isn't startet because driver issues during boot. The USB stick is not mounted.
So the injection isn't the right thing here because no file could be load.

Have to add the USB drivers during boot.
give your Win7PE iso download link


RE: Win7 PE - driver incection - hyun9358 - 02-20-2022

You can have the SDI driver pack run automatically after PE boot.


RE: Win7 PE - driver incection - asheroto - 03-04-2022

Hi, I was actually going to post about this separately, but this reply will cover my post's intention.

I was unable to get the drivers installed by putting the drivers in sources\$OEM$. Instead, I put the drivers in $WinPEDriver$. The drivers load successfully in about 75% of the WinPE ISOs that I use. For the 25% of the WinPE ISOs that do not respond to the $WinPEDriver$ folder, I created VentoyAutoRun.bat and loaded the drivers manually using drvload "C:\Intel_Storage_Drivers\iaStorVD.inf". Note that my flash drive shows up as drive C: when booting to anything, hence the use of C: in the drvload line. I have the drivers extracted into the Intel_Storage_Drivers directory under my flash drive's root. My Drivers.zip file also sits inside Intel_Storage_Drivers.

So here is what I have that now works in 100% of Windows + WinPE ISOs:
[Image: s2gPMKD.png]

[Image: ncRe9JO.png]

[Image: bH3KHq5.png]

On my flash drive, under the folder Intel_Storage_Drivers. My drivers exist as files, and then the Drivers.zip archive includes the above screenshots.

[Image: 4nqYzMd.png]
Finally, in the ventoy.json file, you must specify the folders or ISOs for injection. Here's what mine looks like around that section:

[Image: sgElsP9.png]

So no matter what, Drivers.zip is loaded and tries to inject the drivers. The VentoyAutoRun.bat script runs no matter what and runs drvload to load the drive (inf file). This way the drivers will load one way or another. Yes, I could test each image and determine which method to use, but it doesn't really matter, it won't hurt it to run drvload if it doesn't need it.


RE: Win7 PE - driver incection - Steve2926 - 03-05-2022

You said C: is your flash drive? So if there are no USb drivers already loaded, how does it see the C: drive ?


RE: Win7 PE - driver incection - nguyen ha thai trong - 03-28-2022

(01-26-2022, 10:32 AM)Nierewa Wrote: I test it with an Win7PE iso file, here it works.
X:\ contains all files from windows_injection.7z.

My VentoyAutoRun.bat:

Code:
@echo off

REM ###########################################################################
REM  This is an example of Ventoy windows injection auto run batch script
REM
REM  The 1st parameter is the ISO file full path.
REM     For example: C:\ISO\Windows11.iso
REM 
REM  The 2nd parameter is drive letter of the ISO file mountpoint.
REM     For example: F
REM
REM  The output of this script will be saved to X:\VentoyAutoRun.log
REM
REM ###########################################################################

set ISOFILE=%1
set MNTPOINT=%2

set Inject=pnputil64.exe
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto Main
set Inject=pnputil32.exe


REM ###########################################################################
REM  Do your main process from here
REM ###########################################################################

echo ISOFILE=%ISOFILE%
echo MNTPOINT=%MNTPOINT%

%Inject% -i -a x86/iusb3hub.inf
%Inject% -i -a x86/iusb3xhc.inf
goto Ende

:Main
%Inject% -i -a x64/iusb3hub.inf
%Inject% -i -a x64/iusb3xhc.inf

:Ende


and the VentoyAutoRun.log

Code:
ISOFILE="C:\\Livesysteme\Win7PE.ISO"
MNTPOINT=Y

00

00
What does the 00 mean?
Give me your win7pe download link, Nierewa