Last active
May 20, 2018 14:44
-
-
Save Eddy-Barraud/c947665cfd9e6265aed44b5d5e50526f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#COPY FILES TO THE PROGRAM DIR | |
New-Item -ItemType Directory -Force -Path "${env:programfiles(x86)}\Aria2\" | |
Copy-Item aria2c.exe "${env:programfiles(x86)}\Aria2\" | |
Copy-Item installer.ps1 "${env:programfiles(x86)}\Aria2\" | |
Copy-Item nssm.exe "${env:programfiles(x86)}\Aria2\" | |
#Install the service | |
##Verify that it's not already installed | |
sc.exe stop aria2c-rpc | |
sc.exe delete aria2c-rpc | |
sleep 2 | |
cd "${env:programfiles(x86)}\Aria2" | |
.\nssm.exe install aria2c-rpc "${env:programfiles(x86)}\Aria2\aria2c.exe" --enable-rpc -x5 -j3 --dir="${env:userprofile}\Downloads" --enable-http-pipelining --file-allocation=falloc | |
##Start the service | |
sc.exe start aria2c-rpc | |
#Allow appx to access local network and loop localhost | |
#This is for the aria2c windows store appX | |
checknetisolation.exe loopbackexempt -a -n="44050trevalim.Aria2crpc_ds8qmrpgzd7fg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment