bugfixing
This commit is contained in:
parent
8b5dd3630f
commit
341d96afad
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set T=c:\TEMP
|
set T=c:\TEMP
|
||||||
set W10=%T%\W10
|
set W10=%T%\W10
|
||||||
set ISODRIVE=Y:
|
set DEVICEPATH=
|
||||||
|
|
||||||
IF %1.==. GOTO USAGE
|
IF %1.==. GOTO USAGE
|
||||||
|
|
||||||
@ -28,10 +28,10 @@ rd /S /Q %W10% 1>nul 2>nul
|
|||||||
mkdir %W10% 1>nul 2>nul
|
mkdir %W10% 1>nul 2>nul
|
||||||
|
|
||||||
echo mounting disk image (iso) with powershell ...
|
echo mounting disk image (iso) with powershell ...
|
||||||
powershell "$diskImg = Mount-DiskImage -ImagePath %ISOFILE% -NoDriveLetter; $volInfo = $diskImg | Get-Volume; mountvol %ISODRIVE% $volInfo.UniqueId"
|
for /f %%i in ('"powershell $diskImage=Mount-DiskImage -ImagePath %ISOFILE% -NoDriveLetter; write-host $diskImage.DevicePath"') do @set DEVICEPATH=%%i
|
||||||
|
|
||||||
echo copying files from image to targetpath %W10% ...
|
echo copying files from image to targetpath %W10% ...
|
||||||
robocopy %ISODRIVE%\ %W10% /MIR /256 /NFL /NDL /R:100
|
robocopy %DEVICEPATH% %W10% /MIR /256 /NFL /NDL /R:100
|
||||||
|
|
||||||
echo unmounting disk image (iso) ...
|
echo unmounting disk image (iso) ...
|
||||||
powershell Dismount-Diskimage -ImagePath %ISOFILE%
|
powershell Dismount-Diskimage -ImagePath %ISOFILE%
|
||||||
|
@ -9,6 +9,13 @@ if NOT EXIST image (
|
|||||||
cd image
|
cd image
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem check for wim file ...
|
||||||
|
if NOT EXIST %SOURCES%\boot.wim (
|
||||||
|
echo ERROR: [ %SOURCES%\boot.wim ] NOT FOUND!
|
||||||
|
cd ..
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
echo =========================================
|
echo =========================================
|
||||||
echo START of BOOT image creation process ...
|
echo START of BOOT image creation process ...
|
||||||
echo =========================================
|
echo =========================================
|
||||||
|
@ -12,6 +12,13 @@ if NOT EXIST image (
|
|||||||
cd image
|
cd image
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem check for wim file ...
|
||||||
|
if NOT EXIST %SOURCES%\install.wim (
|
||||||
|
echo ERROR: [ %SOURCES%\install.wim ] NOT FOUND!
|
||||||
|
cd ..
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
echo =========================================
|
echo =========================================
|
||||||
echo START of MAIN image creation process ...
|
echo START of MAIN image creation process ...
|
||||||
echo =========================================
|
echo =========================================
|
||||||
|
@ -3,6 +3,15 @@ set SOURCES=c:\TEMP\W10\sources
|
|||||||
set IMAGE=c:\TEMP\IMAGE
|
set IMAGE=c:\TEMP\IMAGE
|
||||||
set NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
|
set NTLITE="%ProgramFiles%\NTLite\NTLite.exe"
|
||||||
|
|
||||||
|
rem check for wim file ...
|
||||||
|
if NOT EXIST %SOURCES%\boot.wim (
|
||||||
|
echo ERROR: [ %SOURCES%\boot.wim ] NOT FOUND!
|
||||||
|
echo ABORT.
|
||||||
|
exit /b
|
||||||
|
) else (
|
||||||
|
cd image
|
||||||
|
)
|
||||||
|
|
||||||
echo creating image mountpoint ...
|
echo creating image mountpoint ...
|
||||||
mkdir %IMAGE% 1>nul 2>nul
|
mkdir %IMAGE% 1>nul 2>nul
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user