fix regression in WriteProtectTool extract.

This commit is contained in:
Homes32
2025-06-09 22:06:54 -05:00
parent 9f947caabc
commit 7095b53a2a

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5 Level=5
Selected=False Selected=False
Mandatory=False Mandatory=False
Version=1.1.0.0 Version=1.2.0.0
Date=2025-06-01 Date=2025-06-09
[Variables] [Variables]
%ProgramFolder%="WinFE" %ProgramFolder%="WinFE"
@@ -107,11 +107,7 @@ If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%PEPrograms%\%Prog
[ExtractProgram] [ExtractProgram]
Echo,"Extracting program files..." Echo,"Extracting program files..."
7z,"e -y -r #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q IntelWinFE\%SourceArch%\%ProgramExe% -o#$q%TargetPrograms%\%ProgramFolder%\#$q" 7z,"e -y -r #$q%ProgramsCache%\%ProgramFolder%\%SetupFile%#$q IntelWinFE\%SourceArch%\%ProgramExe% -o#$q%TargetPrograms%\%ProgramFolder%\#$q"
If,Not,#r,Equal,0,Begin If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
// 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
[#DownloadProgram#] [#DownloadProgram#]
// =============================================================================================================================== // ===============================================================================================================================