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


Win7 PE - driver incection - Nierewa - 01-24-2022

Hi,

I have a Win7PE boot.wim file wich be loades with ventoy.
But I can't use either mouse nor keyboard.

How can I add USB3 driver? With injection plugin it doesn't work?

Code:
"injection": [
        {
            "image": "/iso/Win7PE/boot1.wim",
            "archive": "/driver/Intel_USB3_Win7.zip"
        }
    ]

Folderstructur within Intel_USB3_Win7.zip:

sources
  |-$OEM$
     |-Win7
        |-x64
            |-usb.inf
        |-x86
            - usb.inf

Or using VentoyAutoRun.bat?

Need some help/tutorial. Thanks Smile


RE: Win7 PE - driver incection - longpanda - 01-24-2022

I don't known much about Windows driver load mechanism.
Will the driver auto loaded if you inject to $OEM$ folder?
You can test it firstly with a VM(e.g. Vmware/VirtualBox) to make sure that the driver is auto loaded after boot.
If it is not auto loaded, you can inject the driver and the VentoyAutoRun.bat together, and install the driver in the VentoyAutoRun.bat.


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

(01-24-2022, 01:33 PM)longpanda Wrote: If it is not auto loaded, you can inject the driver and the VentoyAutoRun.bat together, and install the driver in the VentoyAutoRun.bat.

Driver not loaded. Can you tell me how I can install driver with VentoyAutoRun.bat?


RE: Win7 PE - driver incection - longpanda - 01-25-2022

drvload.exe xxx.inf ?


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

For windows it should work with: pnputil.exe -i -a *.inf

But... I can't get VentoyAutoRun.bat to work.

I have the file windows_injection.7z in the same folder like ventoy.json and also in root of the stick (where the ISO folder is)
In ventoy.json I added:

Code:
"injection": [
        {
            "image": "/Livesysteme/Win7PE/boot1.wim",
            "archive": "/windows_injection.7z"
        }
    ]

I started in VM but there's no VentoyAutoRun.bat under x and so nothing happens.


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

check case and spelling of lines in ventoy.json (e.g. Livesysteme - captital L? system ?)
if you look at your .7z file, does it have VentoyAutoRun.bat and \Windows at top level?
Check using Ventoyplugson https://ventoy.net/en/plugin_plugson.html


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

(01-26-2022, 09:39 AM)Steve2926 Wrote: check case and spelling of lines in ventoy.json  (e.g. Livesysteme  - captital L?  system ?)
if you look at your .7z file, does it have VentoyAutoRun.bat and \Windows at top level?
Check using Ventoyplugson  https://ventoy.net/en/plugin_plugson.html
I checked twice, all correct Blush


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

Try with a different boot.wim (e.g from windows 10 iso).
So does the X:\ contain any files from your .7z file?


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

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?


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

VentoyAutoRun.bat and injection is for ISO files - no mention is made of support for .wim files.
https://ventoy.net/en/doc_inject_autorun.html