This commit is contained in:
Michael H.G. Schmidt 2023-02-07 16:39:44 +01:00
parent b34f17dd77
commit d79bd115d4
2 changed files with 13 additions and 13 deletions

View File

@ -2,7 +2,7 @@
set ARG1=null set ARG1=null
set NTLITE="%ProgramFiles%\NTLite\NTLite.exe" set NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
set SOURCES=c:\TEMP\W10\sources set SOURCES=c:\TEMP\W10\sources
set IMAGE=install.wim set IMAGEFILE=install.wim
set T=c:\temp set T=c:\temp
IF "%~1" NEQ "" set ARG1=%1 IF "%~1" NEQ "" set ARG1=%1
@ -50,12 +50,12 @@ if NOT EXIST %NTLITE% (
echo. echo.
echo ERROR: program [ NTLite ] NOT FOUND! echo ERROR: program [ NTLite ] NOT FOUND!
) else ( ) else (
echo moving [ %SOURCES%\%IMAGE% ] to %T% ... echo moving [ %SOURCES%\%IMAGEFILE% ] to %T% ...
move /Y %SOURCES%\%IMAGE% %T% || exit /b move /Y %SOURCES%\%IMAGEFILE% %T% || exit /b
echo calling NTLite ... echo calling NTLite ...
rem stupid windows: the "" are needed or NTlite will not be started - sigh - rem stupid windows: the "" are needed or NTlite will not be started - sigh -
start /B "" %NTLITE% /LoadImage:%T%\%IMAGE% start /B "" %NTLITE% /LoadImage:%T%\%IMAGEFILE%
) )
echo. echo.

View File

@ -2,8 +2,8 @@
set T=c:\temp set T=c:\temp
set W10=c:\TEMP\W10 set W10=c:\TEMP\W10
set SOURCES=%W10%\sources set SOURCES=%W10%\sources
set BOOT=boot.wim set BOOTFILE=boot.wim
set IMAGE=install.wim set IMAGEFILE=install.wim
set SCRIPT_SETTINGS=scripts\settings.cmd set SCRIPT_SETTINGS=scripts\settings.cmd
set COMPANY_SETTINGS=company\settings.cmd set COMPANY_SETTINGS=company\settings.cmd
set LANG=en-US set LANG=en-US
@ -112,21 +112,21 @@ tools\searchreplace %USBDRIVE%\autounattend.xml ___MYNAME___ "%MYNAME%"
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%" tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%"
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYLANG___ "%LANG%" tools\searchreplace %USBDRIVE%\autounattend.xml ___MYLANG___ "%LANG%"
if NOT EXIST %SOURCES%\%BOOT% ( if NOT EXIST %SOURCES%\%BOOTFILE% (
echo DOH! no %BOOT% in [ %SOURCES% ] found echo DOH! no %BOOTFILE% in [ %SOURCES% ] found
exit /b exit /b
) )
if NOT EXIST %SOURCES%\%IMAGE% ( if NOT EXIST %SOURCES%\%IMAGEFILE% (
if NOT EXIST %T%\%IMAGE% ( if NOT EXIST %T%\%IMAGEFILE% (
echo DOH! no %IMAGE% in [ %SOURCES% ] or in [ %T% ] found echo DOH! no %IMAGE% in [ %SOURCES% ] or in [ %T% ] found
exit /b exit /b
) )
) )
if EXIST %T%\%IMAGE% ( if EXIST %T%\%IMAGEFILE% (
echo moving [ %T%\%IMAGE% ] to %SOURCES% ... echo moving [ %T%\%IMAGEFILE% ] to %SOURCES% ...
move /Y %T%\%IMAGE% %SOURCES% move /Y %T%\%IMAGEFILE% %SOURCES%
) )
echo copying all files in [ %W10% ] to drive %USBDRIVE% ... echo copying all files in [ %W10% ] to drive %USBDRIVE% ...