Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 6c5545e

Browse files
committed
Fixed even more
1 parent 080c43a commit 6c5545e

1 file changed

Lines changed: 22 additions & 30 deletions

File tree

decrypt.bat

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ IF NOT "%1"=="" (
9191
set "SCHEME=%~2"
9292
shift
9393
)
94-
if "%1"=="/NoBackup" (
95-
set BACKUP=NO
96-
)
97-
if "%1"=="/DeleteESD" (
98-
set DeleteESD=YES
99-
)
94+
if "%1"=="/NoBackup" set BACKUP=NO
95+
if "%1"=="/DeleteESD" set DeleteESD=YES
10096
shift
10197
goto :PARSE
10298
)
@@ -235,16 +231,14 @@ del>nul %temp%\getfiles.vbs
235231

236232
if not "!MODE!"=="WIM" if not "!MODE!"=="ESD" set "Exception=MODE" && goto :Exception
237233
for /f "tokens=2 delims==" %%f in ('set ESD[') do (
238-
if not exist "!ESD!" set "Exception=ESD_Not_Found" && goto :Exception
234+
if not exist "%%f" set "Exception=ESD_Not_Found" && goto :Exception
239235
)
240236
if not exist "!Output!" mkdir "!Output!"
241237
if not exist "!Output!" set "Exception=Output_Not_Valid" && goto :Exception
242238

243239
set "wimlib=%~dps0bin\wimlib-imagex.exe"
244240
if %PROCESSOR_ARCHITECTURE%==AMD64 set "wimlib=%~dps0bin\bin64\wimlib-imagex.exe"
245-
if not exist "!wimlib!" (
246-
set "Exception=WIMLIB_Notfound" && goto :Exception
247-
)
241+
if not exist "!wimlib!" set "Exception=WIMLIB_Notfound" && goto :Exception
248242

249243
for /f "tokens=2 delims==" %%f in ('set ESD[') do (
250244
Echo [Info] ESD Being processed currently :
@@ -259,6 +253,23 @@ for /f "tokens=2 delims==" %%f in ('set ESD[') do (
259253
)
260254
Echo [Info] Getting Informations from the provided ESD File...
261255
call :GETESDINFO "!ESD!" !Scheme!
256+
for /l %%n in (1 1 %counter2%) do (
257+
Echo [Info] Detailed ESD Information for :
258+
echo.
259+
for /f "delims=" %%f in ('echo !ESD2[%%n]!') do echo %%~xnf
260+
if /i !Architecture[%%n]!==x86 set arch=x86&archl=X86
261+
if /i !Architecture[%%n]!==x86_64 set arch=x64&set archl=X64
262+
Echo.
263+
echo [Info] ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
264+
echo [Info] Build : !Build[%%n]!.!ServicePackBuild[%%n]!.!CompileDate[%%n]!
265+
echo [Info] Build Branch : !BuildBranch[%%n]!
266+
echo [Info] Build Type : !BuildType[%%n]!
267+
echo [Info] Architecture : !arch!
268+
echo [Info] Edition : !EditionID[%%n]!
269+
echo [Info] Language : !DefaultLanguage[%%n]!
270+
echo [Info] ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
271+
echo.
272+
)
262273
Echo [Info] The ISO will be saved with the following specifications :
263274
Echo.
264275
Echo [Info] Filename: !DVDISO!
@@ -280,15 +291,14 @@ Echo.
280291
IF NOT ERRORLEVEL 0 set "Exception=Export" && goto :Exception
281292
Echo.
282293
call :progress 50
283-
echo.
284294
"!wimlib!" export "!ESD[1]!" 3 ISOFOLDER\sources\boot.wim --boot
285295
IF NOT ERRORLEVEL 0 set "Exception=Export" && goto :Exception
286296
echo.
287297
call :progress 60
288298
if "!MODE!"=="WIM" (
289299
echo [Info] Creating install.wim file...
300+
Echo.
290301
for /f "tokens=2 delims==" %%f in ('set ESD[') do (
291-
Echo.
292302
"!wimlib!" export "%%f" 4 ISOFOLDER\sources\install.wim --compress=maximum
293303
IF NOT ERRORLEVEL 0 set "Exception=Export" && goto :Exception
294304
Echo.
@@ -407,24 +417,6 @@ for /l %%n in (1 1 %counter2%) do (
407417
)
408418
)
409419

410-
for /l %%n in (1 1 %counter2%) do (
411-
Echo [Info] Detailed ESD Information for :
412-
echo.
413-
for /f "delims=" %%f in ('echo !ESD2[%%n]!') do echo %%~xnf
414-
if /i !Architecture[%%n]!==x86 set arch=x86&archl=X86
415-
if /i !Architecture[%%n]!==x86_64 set arch=x64&set archl=X64
416-
Echo.
417-
echo [Info] ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
418-
echo [Info] Build : !Build[%%n]!.!ServicePackBuild[%%n]!.!CompileDate[%%n]!
419-
echo [Info] Build Branch : !BuildBranch[%%n]!
420-
echo [Info] Build Type : !BuildType[%%n]!
421-
echo [Info] Architecture : !arch!
422-
echo [Info] Edition : !EditionID[%%n]!
423-
echo [Info] Language : !DefaultLanguage[%%n]!
424-
echo [Info] ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
425-
echo.
426-
)
427-
428420
set LanguageID=!DefaultLanguage[1]!
429421
for %%b in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do set LanguageID=!LanguageID:%%b=%%b!
430422
set tag=IR3&set tag2=ir3

0 commit comments

Comments
 (0)