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 NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
set SOURCES=c:\TEMP\W10\sources
set IMAGE=install.wim
set IMAGEFILE=install.wim
set T=c:\temp
IF "%~1" NEQ "" set ARG1=%1
@ -50,12 +50,12 @@ if NOT EXIST %NTLITE% (
echo.
echo ERROR: program [ NTLite ] NOT FOUND!
) else (
echo moving [ %SOURCES%\%IMAGE% ] to %T% ...
move /Y %SOURCES%\%IMAGE% %T% || exit /b
echo moving [ %SOURCES%\%IMAGEFILE% ] to %T% ...
move /Y %SOURCES%\%IMAGEFILE% %T% || exit /b
echo calling NTLite ...
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.

View File

@ -2,8 +2,8 @@
set T=c:\temp
set W10=c:\TEMP\W10
set SOURCES=%W10%\sources
set BOOT=boot.wim
set IMAGE=install.wim
set BOOTFILE=boot.wim
set IMAGEFILE=install.wim
set SCRIPT_SETTINGS=scripts\settings.cmd
set COMPANY_SETTINGS=company\settings.cmd
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 ___MYLANG___ "%LANG%"
if NOT EXIST %SOURCES%\%BOOT% (
echo DOH! no %BOOT% in [ %SOURCES% ] found
if NOT EXIST %SOURCES%\%BOOTFILE% (
echo DOH! no %BOOTFILE% in [ %SOURCES% ] found
exit /b
)
if NOT EXIST %SOURCES%\%IMAGE% (
if NOT EXIST %T%\%IMAGE% (
if NOT EXIST %SOURCES%\%IMAGEFILE% (
if NOT EXIST %T%\%IMAGEFILE% (
echo DOH! no %IMAGE% in [ %SOURCES% ] or in [ %T% ] found
exit /b
)
)
if EXIST %T%\%IMAGE% (
echo moving [ %T%\%IMAGE% ] to %SOURCES% ...
move /Y %T%\%IMAGE% %SOURCES%
if EXIST %T%\%IMAGEFILE% (
echo moving [ %T%\%IMAGEFILE% ] to %SOURCES% ...
move /Y %T%\%IMAGEFILE% %SOURCES%
)
echo copying all files in [ %W10% ] to drive %USBDRIVE% ...