mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
Add aria2 binaries for WebGetEx command
This commit is contained in:
@@ -687,10 +687,10 @@ While,ExistDir,#1,Begin
|
||||
|
||||
If,Question,"Error: The specified folder could not be deleted.#$x#$x#1#$x#$xPlease make sure there are no files open in other applications (eg. Text Editor/vmWare/VirtualBox), registry hives are unloaded, and you do not have the directory open in Explorer.#$x#$xRetry?",Begin
|
||||
// User clicked 'Yes'
|
||||
System,ErrorOff
|
||||
DirDelete,#1
|
||||
// Wait a few seconds to give async tasks time to complete...
|
||||
Wait,5
|
||||
System,ErrorOff
|
||||
DirDelete,#1
|
||||
// Wait a few seconds to give async tasks time to complete...
|
||||
Wait,5
|
||||
End
|
||||
Else,Begin
|
||||
// User clicked 'No'
|
||||
@@ -848,8 +848,8 @@ While,ExistFile,#1,Begin
|
||||
|
||||
If,Question,"Error: The specified file could not be deleted.#$x#$x#1#$x#$xPlease make sure the file is not running or in use by another application (eg. Text Editor/vmWare/VirtualBox).#$x#$xRetry?",Begin
|
||||
// User clicked 'Yes'
|
||||
Wait,3
|
||||
System,ErrorOff
|
||||
Wait,3
|
||||
System,ErrorOff
|
||||
If,ExistFile,#1,FileDelete,#1
|
||||
End
|
||||
Else,Begin
|
||||
@@ -1061,24 +1061,24 @@ If,%argc%,>,2,Begin
|
||||
ForRange,%i%,3,%argMax%,1,Begin
|
||||
GetParam,%i%,%Arg%
|
||||
|
||||
StrFormat,Split,%Arg%,"=",1,%ArgKey%
|
||||
StrFormat,Split,%Arg%,"=",1,%ArgKey%
|
||||
|
||||
If,%ArgKey%,Equal,"PASSWORD",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%Password%
|
||||
Set,%Password%," -p#$q%Password%#$q "
|
||||
Set,%Password%," -p#$q%Password%#$q "
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"CDIR",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%CurrentDir%
|
||||
Set,%CurrentDir%," -c#$q%CurrentDir%#$q "
|
||||
Continue
|
||||
If,%ArgKey%,Equal,"CDIR",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%CurrentDir%
|
||||
Set,%CurrentDir%," -c#$q%CurrentDir%#$q "
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"LIST",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%ListFile%
|
||||
Set,%ListFile%," #$q@%ListFile%#$q"
|
||||
Continue
|
||||
If,%ArgKey%,Equal,"LIST",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%ListFile%
|
||||
Set,%ListFile%," #$q@%ListFile%#$q"
|
||||
Continue
|
||||
End
|
||||
|
||||
Halt,"InnoExtract Syntax Error: Invalid Argument [%Arg%] at position [%i%]."
|
||||
@@ -1396,14 +1396,14 @@ Else,Begin
|
||||
If,Not,ExistFile,"%TargetSystem32%\PinUtil.ini",FileCreateBlank,"%TargetSystem32%\PinUtil.ini"
|
||||
If,%PinPos%,Equal,"Auto",Begin
|
||||
// Find an unused pin position
|
||||
ForRange,%i%,0,100,1,Begin
|
||||
IniRead,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%i%,%CurrentPos%
|
||||
If,%CurrentPos%,Equal,"",Begin
|
||||
Set,%PinPos%,%i%
|
||||
Break
|
||||
End
|
||||
Else,Set,%PinPos%,-1
|
||||
End
|
||||
ForRange,%i%,0,100,1,Begin
|
||||
IniRead,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%i%,%CurrentPos%
|
||||
If,%CurrentPos%,Equal,"",Begin
|
||||
Set,%PinPos%,%i%
|
||||
Break
|
||||
End
|
||||
Else,Set,%PinPos%,-1
|
||||
End
|
||||
End
|
||||
Else,If,%PinPos%,Smaller,0,Halt,"PinShortcut Syntax Error: [%PinPos%] is not a value from [0-99]."
|
||||
Else,If,%PinPos%,Bigger,99,Halt,"PinShortcut Syntax Error: [%PinPos%] is not a value from [0-99]."
|
||||
@@ -1422,11 +1422,11 @@ Else,Begin
|
||||
End
|
||||
|
||||
// Work around pin restrictions on removable media.
|
||||
IniRead,"%ProjectDir%\Components\330-AimRamdisk.script","Main","Selected",%IsSelectedAim%
|
||||
IniRead,"%ProjectDir%\Components\330-ImDisk.script","Main","Selected",%IsSelectedImDisk%
|
||||
If,%IsSelectedAim%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-AimRamdisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
||||
Else,If,%IsSelectedImDisk%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-ImDisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
||||
Else,Set,%RamDisk%,"B:"
|
||||
IniRead,"%ProjectDir%\Components\330-AimRamdisk.script","Main","Selected",%IsSelectedAim%
|
||||
IniRead,"%ProjectDir%\Components\330-ImDisk.script","Main","Selected",%IsSelectedImDisk%
|
||||
If,%IsSelectedAim%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-AimRamdisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
||||
Else,If,%IsSelectedImDisk%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-ImDisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
||||
Else,Set,%RamDisk%,"B:"
|
||||
StrFormat,Replace,%ProgramExe%,"Y:\","%RamDisk%\",%ProgramExe%
|
||||
|
||||
IniWrite,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%PinPos%,%ProgramExe%
|
||||
@@ -1515,7 +1515,7 @@ If,%argc%,>,0,Begin
|
||||
ForRange,%i%,1,%argMax%,1,Begin
|
||||
GetParam,%i%,%Arg%
|
||||
|
||||
If,%Arg%,Equal,"Force",Begin
|
||||
If,%Arg%,Equal,"Force",Begin
|
||||
Set,%ForceUnmount%,True
|
||||
Continue
|
||||
End
|
||||
@@ -1528,9 +1528,9 @@ If,%argc%,>,0,Begin
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"TARGET",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%UnloadTarget%
|
||||
Continue
|
||||
If,%ArgKey%,Equal,"TARGET",Begin
|
||||
StrFormat,Split,%Arg%,"=",2,%UnloadTarget%
|
||||
Continue
|
||||
End
|
||||
|
||||
Halt,"RegUnloadHives Syntax Error: Invalid Argument [%Arg%] at position [%i%]."
|
||||
@@ -1834,7 +1834,7 @@ If,%argc%,>,2,Begin
|
||||
ForRange,%i%,3,%argMax%,1,Begin
|
||||
GetParam,%i%,%Arg%
|
||||
|
||||
If,%Arg%,Equal,"NOERR",Begin
|
||||
If,%Arg%,Equal,"NOERR",Begin
|
||||
Set,%NoErr%,True
|
||||
Continue
|
||||
End
|
||||
@@ -1857,31 +1857,31 @@ If,%argc%,>,2,Begin
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"MD5",Begin
|
||||
If,%ArgKey%,Equal,"MD5",Begin
|
||||
Set,%HashType%,"MD5"
|
||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"SHA1",Begin
|
||||
If,%ArgKey%,Equal,"SHA1",Begin
|
||||
Set,%HashType%,"SHA-1"
|
||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"SHA256",Begin
|
||||
If,%ArgKey%,Equal,"SHA256",Begin
|
||||
Set,%HashType%,"SHA-256"
|
||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"SHA384",Begin
|
||||
If,%ArgKey%,Equal,"SHA384",Begin
|
||||
Set,%HashType%,"SHA-384"
|
||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||
Continue
|
||||
End
|
||||
|
||||
If,%ArgKey%,Equal,"SHA512",Begin
|
||||
If,%ArgKey%,Equal,"SHA512",Begin
|
||||
Set,%HashType%,"SHA-512"
|
||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||
Continue
|
||||
@@ -1907,7 +1907,7 @@ If,Not,%ExitCode%,Equal,0,Begin
|
||||
Else,Begin
|
||||
Math,Add,%Aria2ErrorDescrPos%,%Aria2ErrorPos%,1
|
||||
List,Get,%Aria2Errors%,%Aria2ErrorDescrPos%,%Aria2ErrorDescr%
|
||||
Set,%Aria2ErrorDescr%," %Aria2ErrorDescr%"
|
||||
Set,%Aria2ErrorDescr%," %Aria2ErrorDescr%"
|
||||
End
|
||||
|
||||
If,%NoErr%,Equal,True,Return,%ExitCode%
|
||||
|
BIN
Projects/PhoenixPE/Tools/x64/aria2c.exe
Normal file
BIN
Projects/PhoenixPE/Tools/x64/aria2c.exe
Normal file
Binary file not shown.
BIN
Projects/PhoenixPE/Tools/x86/aria2c.exe
Normal file
BIN
Projects/PhoenixPE/Tools/x86/aria2c.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user