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
|
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'
|
// User clicked 'Yes'
|
||||||
System,ErrorOff
|
System,ErrorOff
|
||||||
DirDelete,#1
|
DirDelete,#1
|
||||||
// Wait a few seconds to give async tasks time to complete...
|
// Wait a few seconds to give async tasks time to complete...
|
||||||
Wait,5
|
Wait,5
|
||||||
End
|
End
|
||||||
Else,Begin
|
Else,Begin
|
||||||
// User clicked 'No'
|
// 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
|
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'
|
// User clicked 'Yes'
|
||||||
Wait,3
|
Wait,3
|
||||||
System,ErrorOff
|
System,ErrorOff
|
||||||
If,ExistFile,#1,FileDelete,#1
|
If,ExistFile,#1,FileDelete,#1
|
||||||
End
|
End
|
||||||
Else,Begin
|
Else,Begin
|
||||||
@@ -1061,24 +1061,24 @@ If,%argc%,>,2,Begin
|
|||||||
ForRange,%i%,3,%argMax%,1,Begin
|
ForRange,%i%,3,%argMax%,1,Begin
|
||||||
GetParam,%i%,%Arg%
|
GetParam,%i%,%Arg%
|
||||||
|
|
||||||
StrFormat,Split,%Arg%,"=",1,%ArgKey%
|
StrFormat,Split,%Arg%,"=",1,%ArgKey%
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"PASSWORD",Begin
|
If,%ArgKey%,Equal,"PASSWORD",Begin
|
||||||
StrFormat,Split,%Arg%,"=",2,%Password%
|
StrFormat,Split,%Arg%,"=",2,%Password%
|
||||||
Set,%Password%," -p#$q%Password%#$q "
|
Set,%Password%," -p#$q%Password%#$q "
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"CDIR",Begin
|
If,%ArgKey%,Equal,"CDIR",Begin
|
||||||
StrFormat,Split,%Arg%,"=",2,%CurrentDir%
|
StrFormat,Split,%Arg%,"=",2,%CurrentDir%
|
||||||
Set,%CurrentDir%," -c#$q%CurrentDir%#$q "
|
Set,%CurrentDir%," -c#$q%CurrentDir%#$q "
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"LIST",Begin
|
If,%ArgKey%,Equal,"LIST",Begin
|
||||||
StrFormat,Split,%Arg%,"=",2,%ListFile%
|
StrFormat,Split,%Arg%,"=",2,%ListFile%
|
||||||
Set,%ListFile%," #$q@%ListFile%#$q"
|
Set,%ListFile%," #$q@%ListFile%#$q"
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
Halt,"InnoExtract Syntax Error: Invalid Argument [%Arg%] at position [%i%]."
|
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,Not,ExistFile,"%TargetSystem32%\PinUtil.ini",FileCreateBlank,"%TargetSystem32%\PinUtil.ini"
|
||||||
If,%PinPos%,Equal,"Auto",Begin
|
If,%PinPos%,Equal,"Auto",Begin
|
||||||
// Find an unused pin position
|
// Find an unused pin position
|
||||||
ForRange,%i%,0,100,1,Begin
|
ForRange,%i%,0,100,1,Begin
|
||||||
IniRead,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%i%,%CurrentPos%
|
IniRead,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%i%,%CurrentPos%
|
||||||
If,%CurrentPos%,Equal,"",Begin
|
If,%CurrentPos%,Equal,"",Begin
|
||||||
Set,%PinPos%,%i%
|
Set,%PinPos%,%i%
|
||||||
Break
|
Break
|
||||||
End
|
End
|
||||||
Else,Set,%PinPos%,-1
|
Else,Set,%PinPos%,-1
|
||||||
End
|
End
|
||||||
End
|
End
|
||||||
Else,If,%PinPos%,Smaller,0,Halt,"PinShortcut Syntax Error: [%PinPos%] is not a value from [0-99]."
|
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]."
|
Else,If,%PinPos%,Bigger,99,Halt,"PinShortcut Syntax Error: [%PinPos%] is not a value from [0-99]."
|
||||||
@@ -1422,11 +1422,11 @@ Else,Begin
|
|||||||
End
|
End
|
||||||
|
|
||||||
// Work around pin restrictions on removable media.
|
// Work around pin restrictions on removable media.
|
||||||
IniRead,"%ProjectDir%\Components\330-AimRamdisk.script","Main","Selected",%IsSelectedAim%
|
IniRead,"%ProjectDir%\Components\330-AimRamdisk.script","Main","Selected",%IsSelectedAim%
|
||||||
IniRead,"%ProjectDir%\Components\330-ImDisk.script","Main","Selected",%IsSelectedImDisk%
|
IniRead,"%ProjectDir%\Components\330-ImDisk.script","Main","Selected",%IsSelectedImDisk%
|
||||||
If,%IsSelectedAim%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-AimRamdisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
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,If,%IsSelectedImDisk%,Equal,True,ReadInterface,Value,"%ProjectDir%\Components\330-ImDisk.script",Interface,cmb_DriveLetter,%RamDisk%
|
||||||
Else,Set,%RamDisk%,"B:"
|
Else,Set,%RamDisk%,"B:"
|
||||||
StrFormat,Replace,%ProgramExe%,"Y:\","%RamDisk%\",%ProgramExe%
|
StrFormat,Replace,%ProgramExe%,"Y:\","%RamDisk%\",%ProgramExe%
|
||||||
|
|
||||||
IniWrite,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%PinPos%,%ProgramExe%
|
IniWrite,"%TargetSystem32%\PinUtil.ini","PinUtil",%PinLocation%%PinPos%,%ProgramExe%
|
||||||
@@ -1515,7 +1515,7 @@ If,%argc%,>,0,Begin
|
|||||||
ForRange,%i%,1,%argMax%,1,Begin
|
ForRange,%i%,1,%argMax%,1,Begin
|
||||||
GetParam,%i%,%Arg%
|
GetParam,%i%,%Arg%
|
||||||
|
|
||||||
If,%Arg%,Equal,"Force",Begin
|
If,%Arg%,Equal,"Force",Begin
|
||||||
Set,%ForceUnmount%,True
|
Set,%ForceUnmount%,True
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
@@ -1528,9 +1528,9 @@ If,%argc%,>,0,Begin
|
|||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"TARGET",Begin
|
If,%ArgKey%,Equal,"TARGET",Begin
|
||||||
StrFormat,Split,%Arg%,"=",2,%UnloadTarget%
|
StrFormat,Split,%Arg%,"=",2,%UnloadTarget%
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
Halt,"RegUnloadHives Syntax Error: Invalid Argument [%Arg%] at position [%i%]."
|
Halt,"RegUnloadHives Syntax Error: Invalid Argument [%Arg%] at position [%i%]."
|
||||||
@@ -1834,7 +1834,7 @@ If,%argc%,>,2,Begin
|
|||||||
ForRange,%i%,3,%argMax%,1,Begin
|
ForRange,%i%,3,%argMax%,1,Begin
|
||||||
GetParam,%i%,%Arg%
|
GetParam,%i%,%Arg%
|
||||||
|
|
||||||
If,%Arg%,Equal,"NOERR",Begin
|
If,%Arg%,Equal,"NOERR",Begin
|
||||||
Set,%NoErr%,True
|
Set,%NoErr%,True
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
@@ -1857,31 +1857,31 @@ If,%argc%,>,2,Begin
|
|||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"MD5",Begin
|
If,%ArgKey%,Equal,"MD5",Begin
|
||||||
Set,%HashType%,"MD5"
|
Set,%HashType%,"MD5"
|
||||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"SHA1",Begin
|
If,%ArgKey%,Equal,"SHA1",Begin
|
||||||
Set,%HashType%,"SHA-1"
|
Set,%HashType%,"SHA-1"
|
||||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"SHA256",Begin
|
If,%ArgKey%,Equal,"SHA256",Begin
|
||||||
Set,%HashType%,"SHA-256"
|
Set,%HashType%,"SHA-256"
|
||||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"SHA384",Begin
|
If,%ArgKey%,Equal,"SHA384",Begin
|
||||||
Set,%HashType%,"SHA-384"
|
Set,%HashType%,"SHA-384"
|
||||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||||
Continue
|
Continue
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%ArgKey%,Equal,"SHA512",Begin
|
If,%ArgKey%,Equal,"SHA512",Begin
|
||||||
Set,%HashType%,"SHA-512"
|
Set,%HashType%,"SHA-512"
|
||||||
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
StrFormat,Split,%Arg%,"=",2,%HashDigest%
|
||||||
Continue
|
Continue
|
||||||
@@ -1907,7 +1907,7 @@ If,Not,%ExitCode%,Equal,0,Begin
|
|||||||
Else,Begin
|
Else,Begin
|
||||||
Math,Add,%Aria2ErrorDescrPos%,%Aria2ErrorPos%,1
|
Math,Add,%Aria2ErrorDescrPos%,%Aria2ErrorPos%,1
|
||||||
List,Get,%Aria2Errors%,%Aria2ErrorDescrPos%,%Aria2ErrorDescr%
|
List,Get,%Aria2Errors%,%Aria2ErrorDescrPos%,%Aria2ErrorDescr%
|
||||||
Set,%Aria2ErrorDescr%," %Aria2ErrorDescr%"
|
Set,%Aria2ErrorDescr%," %Aria2ErrorDescr%"
|
||||||
End
|
End
|
||||||
|
|
||||||
If,%NoErr%,Equal,True,Return,%ExitCode%
|
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