diff --git a/04_PrepareImage.cmd b/04_PrepareImage.cmd index c7bcccc..286d1f4 100644 --- a/04_PrepareImage.cmd +++ b/04_PrepareImage.cmd @@ -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. diff --git a/06_Copy2Stick.cmd b/06_Copy2Stick.cmd index 14957b1..4162a44 100644 --- a/06_Copy2Stick.cmd +++ b/06_Copy2Stick.cmd @@ -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% ...