Skip to content

Instantly share code, notes, and snippets.

@Eddy-Barraud
Last active May 20, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eddy-Barraud/c947665cfd9e6265aed44b5d5e50526f to your computer and use it in GitHub Desktop.
Save Eddy-Barraud/c947665cfd9e6265aed44b5d5e50526f to your computer and use it in GitHub Desktop.
#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