From 6563ed400c3f3e338a3466f6126af5fe90a2bb28 Mon Sep 17 00:00:00 2001 From: joshuacline <114229084+joshuacline@users.noreply.github.com> Date: Tue, 13 Dec 2022 04:55:41 -0700 Subject: [PATCH] Update $haZZam.cmd --- $haZZam.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/$haZZam.cmd b/$haZZam.cmd index d476fde..287c32c 100644 --- a/$haZZam.cmd +++ b/$haZZam.cmd @@ -343,6 +343,7 @@ IF "%WIM_SOURCE_IMAGE%"=="-SELECT-" SET "WIM_DESC_IMAGE=NULL"&&SET "WIM_INDEX_IM IF NOT "%WIM_SOURCE_IMAGE%"=="-SELECT-" IF "%WIM_INDEX_IMAGE%"=="NULL" SET "WIM_INDEX_IMAGE=1" IF NOT "%PROG_MODE%"=="RAMDISK" IF NOT EXIST "%PROG_SOURCE%\BOOT-MEDIA.SAV" SET "BOOT_IMAGE=NONE" IF NOT "%PROG_MODE%"=="RAMDISK" IF EXIST "%PROG_SOURCE%\BOOT-MEDIA.SAV" SET "BOOT_IMAGE=%PROG_SOURCE%\BOOT-MEDIA.SAV" +IF EXIST "%TEMP%\$WIM.TMP" DEL /Q /F "\\?\%TEMP%\$WIM.TMP">NUL 2>&1 IF "%PROG_MODE%"=="RAMDISK" SET "BOOT_IMAGE=U:\$.WIM" EXIT /B :FOLDER_MODE @@ -1792,7 +1793,7 @@ COPY /Y "%PROG_FOLDER%\$haZZam.CMD" "\\?\S:\$">NUL 2>&1 :BOOT_CLEANUP ECHO UNMOUNTING EFI...&&CALL:TITLECARD_NML&&CALL:VDISK_DETACH>NUL 2>&1 CALL:EFI_UNMOUNT>NUL 2>&1 -IF EXIST "%TEMP%\$.WIM" DEL /Q /F "\\?\%TEMP%\$.WIM">NUL 2>&1 +IF EXIST "%TEMP%\$WIM.TMP" DEL /Q /F "\\?\%TEMP%\$WIM.TMP">NUL 2>&1 IF EXIST "%TEMP%\$haZZam" RD /S /Q "\\?\%TEMP%\$haZZam">NUL 2>&1 IF EXIST "%TEMP%\DISK_PART" DEL /Q /F "%TEMP%\DISK_PART">NUL 2>&1 IF EXIST "%TEMP%\DISK_TARGET" DEL /Q /F "%TEMP%\DISK_TARGET">NUL 2>&1