2021-03-16 23:23:06 +01:00
|
|
|
@echo off
|
|
|
|
set SOURCES=c:\TEMP\W10\sources
|
|
|
|
set BOOT=c:\TEMP\BOOT
|
|
|
|
|
2021-03-31 00:22:47 +02:00
|
|
|
if EXIST ..\settings.cmd (
|
|
|
|
call ..\settings.cmd
|
2021-03-21 00:08:41 +01:00
|
|
|
) else (
|
|
|
|
set LANG=en-US
|
|
|
|
)
|
|
|
|
echo LANG=%LANG%
|
|
|
|
|
2021-03-16 23:23:06 +01:00
|
|
|
if NOT EXIST %BOOT%\winsetup.exe (
|
2021-03-18 00:08:40 +01:00
|
|
|
echo renaming Windows setup.exe to boot ...
|
2021-03-16 23:23:06 +01:00
|
|
|
move /Y %BOOT%\setup.exe %BOOT%\winsetup.exe
|
|
|
|
)
|
|
|
|
|
2021-03-21 00:08:41 +01:00
|
|
|
echo setting language in boot ...
|
|
|
|
dism /image:%BOOT% /Set-InputLocale:%LANG%
|
|
|
|
dism /image:%BOOT% /Set-SysLocale:%LANG%
|
|
|
|
|
2021-03-18 00:08:40 +01:00
|
|
|
echo replacing setup.exe with our installer utility ...
|
|
|
|
copy /Y installer.exe %BOOT%\setup.exe
|
|
|
|
|
2021-03-21 00:08:41 +01:00
|
|
|
echo copy snapshot64 to boot ...
|
2021-03-28 19:40:24 +02:00
|
|
|
if EXIST ..\personal\snapshot64.exe (
|
|
|
|
copy /Y ..\personal\snapshot64.exe %BOOT%
|
|
|
|
) else (
|
|
|
|
copy /Y ..\software\snapshot64.exe %BOOT%
|
|
|
|
)
|
2021-03-22 00:39:55 +01:00
|
|
|
|
|
|
|
echo copy netuse helper script to boot ...
|
|
|
|
copy /Y netuse.cmd %BOOT%
|
2021-03-21 00:08:41 +01:00
|
|
|
|
2021-03-18 00:08:40 +01:00
|
|
|
echo showing boot contents ...
|
|
|
|
dir %BOOT%
|
2021-03-16 23:23:06 +01:00
|
|
|
|
|
|
|
echo unmounting and committing changes to %SOURCES%\boot.wim ...
|
|
|
|
dism /Unmount-Wim /MountDir:%BOOT% /Commit
|
|
|
|
|
|
|
|
echo directory of %BOOT% :
|
|
|
|
dir %BOOT%
|
|
|
|
|