From 7095b53a2a58a4a5ec10978eee32a18e19d27c3d Mon Sep 17 00:00:00 2001 From: Homes32 Date: Mon, 9 Jun 2025 22:06:54 -0500 Subject: [PATCH] fix regression in WriteProtectTool extract. --- .../Forensic Tools/WriteProtectTool.script | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Projects/PhoenixPE/Applications/Forensic Tools/WriteProtectTool.script b/Projects/PhoenixPE/Applications/Forensic Tools/WriteProtectTool.script index 40bd854..03b3e7f 100644 --- a/Projects/PhoenixPE/Applications/Forensic Tools/WriteProtectTool.script +++ b/Projects/PhoenixPE/Applications/Forensic Tools/WriteProtectTool.script @@ -35,8 +35,8 @@ Author=Homes32 Level=5 Selected=False Mandatory=False -Version=1.1.0.0 -Date=2025-06-01 +Version=1.2.0.0 +Date=2025-06-09 [Variables] %ProgramFolder%="WinFE" @@ -107,11 +107,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog [ExtractProgram] Echo,"Extracting program files..." 7z,"e -y -r #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q IntelWinFE\%SourceArch%\%ProgramExe% -o#$q%TargetPrograms%\%ProgramFolder%\#$q" -If,Not,#r,Equal,0,Begin - // Try without subdir... - 7z,"e -y -r #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q %SourceArch%\%ProgramExe% -o#$q%TargetPrograms%\%ProgramFolder%\#$q" - If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]." -End +If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]." [#DownloadProgram#] // ===============================================================================================================================