I test it with an Win7PE iso file, here it works.
X:\ contains all files from windows_injection.7z.
My VentoyAutoRun.bat:
and the VentoyAutoRun.log
What does the 00 mean?
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