@@ -59,7 +59,6 @@ cscript /nologo /B /E:VBS HexChar.vbs < "cursorpos.hex" > "cursorpos.exe"
5959del cursorpos.hex
6060del hexchar.vbs
6161
62-
6362:Main
6463if " %~1 " == " /help" goto help
6564:: UPDATE SYSTEM
@@ -269,7 +268,6 @@ set "Scheme=%~6"
269268set " Key = %~7 "
270269if [%Output:~-1 % ]== [\] set " OUT = %Output:~0 ,-1 % "
271270
272-
273271set counter = 0
274272echo> %temp% \getfiles.vbs Set objFS = CreateObject(" Scripting.FileSystemObject" )
275273echo>> %temp% \getfiles.vbs Set objArgs = WScript.Arguments
@@ -284,22 +282,24 @@ for /f "delims=*" %%f in ('cscript //nologo %temp%\getfiles.vbs "%ESD%"') do (
284282)
285283del> nul %temp% \getfiles.vbs
286284
287-
288285if not " !MODE! " == " WIM" if not " !MODE! " == " ESD" call :Exception MODE
289286for /f " tokens=2 delims==" %%f in ('set ESD[') do (
290287 if not exist " !ESD! " call :Exception ESD_Not_Found
291288)
292289if not exist " !Output! " mkdir " !Output! "
293290if not exist " !Output! " call :Exception Output_Not_Valid
294291
295-
296292set " wimlib = %~dps0 bin\wimlib-imagex.exe"
297293if %PROCESSOR_ARCHITECTURE% == AMD64 set " wimlib = %~dps0 bin\bin64\wimlib-imagex.exe"
298294if not exist " !wimlib! " (
299295 call :Exception WIMLIB_Notfound
300296)
301297
302298for /f " tokens=2 delims==" %%f in ('set ESD[') do (
299+ Echo [Info] ESD Being processed currently :
300+ Echo .
301+ Echo %%~nxf
302+ Echo .
303303 Echo [Info] Checking the current state of the provided ESD File...
304304 " !wimlib! " info " %%f " 4 1 > nul 2 > nul
305305 IF !ERRORLEVEL! EQU 74 call :DecryptManager " %%f " " !Backup! " " !Key! "
@@ -315,7 +315,6 @@ Echo [Info] Label: !DVDLABEL!
315315Echo .
316316echo [Info] Creating Setup Media Layout...
317317
318-
319318IF EXIST ISOFOLDER\ rmdir /s /q ISOFOLDER\
320319mkdir ISOFOLDER
321320echo .
@@ -394,7 +393,6 @@ if "!DeleteESD!"=="YES" (
394393call :progress 100
395394exit /b
396395
397-
398396:DecryptManager < ESD> < Backup(YES| NO)> {key}
399397set " ESD_ = %~1 "
400398set " Backup_ = %~2 "
@@ -738,29 +736,18 @@ if %~1==ESD_Decrypt (
738736 Echo .
739737 type " %temp% \esddecrypt.log"
740738)
741- if %~1 == ESD_Damaged (
742- Echo The specified ESD File is damaged or not a Valid ESD File.
743- )
744- if %~1 == WIMLIB_Notfound (
745- Echo %PROCESSOR_ARCHITECTURE% wimlib-imagex.exe not found
746- )
747- if %~1 == Apply (
748- Echo Critical Errors were found after apply.
749- )
750- if %~1 == Export (
751- Echo Critical Errors were found after export.
752- )
753- if %~1 == ISO (
754- Echo Critical Errors were found during ISO creation.
755- )
739+ if %~1 == ESD_Damaged Echo The specified ESD File is damaged or not a Valid ESD File.
740+ if %~1 == WIMLIB_Notfound Echo %PROCESSOR_ARCHITECTURE% wimlib-imagex.exe not found
741+ if %~1 == Apply Echo Critical Errors were found after apply.
742+ if %~1 == Export Echo Critical Errors were found after export.
743+ if %~1 == ISO Echo Critical Errors were found during ISO creation.
756744Echo .
757745goto exit
758746
759747:exit
760748:: Clean up tasks here
761749exit /b
762750
763-
764751:GetCoords Cols= Lines=
765752set /A " %1 = %ERRORLEVEL% & 0xFFFF, %2 = (%ERRORLEVEL%>> 16)& 0xFFFF"
766753exit /B
@@ -801,7 +788,6 @@ cursorpos !Cols! !Lines!
801788ENDLOCAL
802789exit /b
803790
804-
805791:: UPDATE SYSTEM
806792:updatesystem
807793if exist " %~1 \%~nx0 " (
0 commit comments