Skip to content

Installation on Windows

Timo edited this page Jul 2, 2022 · 4 revisions

Disclaimer: I copied most of this tutorial from Bazarr. So all credits for this guide go to the creator/developer of Bazarr.

Clone Addarr repository

  • Install GIT.
  • Install Python 3.6 or greater (latest is good) from this link and make sure to check the box to have Python directory added to the system path variable.
  • Open up CMD and go to the folder you want to install addarr. Do not use C:\Program Files or C:\Program Files (x86) as you could run into strange issues. Something like C:\addarr is a better choice.
  • Run git clone https://github.com/Waterboy1602/Addarr.git.
  • Go to addarr folder cd addarr.
  • Install Python requirements using pip install -r requirements.txt.
  • You can now start addarr via python addarr.py.

Autostart using NSSM

  1. Download the latest NSSM from https://nssm.cc/download. It is recommended to grab the prerelease due to a slight issue with the Windows 10 Creators Update.
  2. Either place the downloaded NSSM binary in C:\Windows\System32, or add it to your PATH. This is to allow you to use NSSM from any location.
  3. Run cmd as an Administrator and use the command nssm install addarr
  4. A GUI should pop up. Use the following configuration
    • Path: Should be the location to your Python 3.8 executable. Example: C:\Python38\python.exe
    • Startup Directory: Should be the location of your Python38 folder. Example: C:\Python38
    • Arguments: Should be the location of your addarr.py file. Example: C:\addarr\src\addarr.py
      • Please note that running Addarr from the Program Files or Program Files (x86) directories may cause issues.
  5. Under Process Tab, make sure to uncheck Console Windows.
  6. Click the Install Service button
  7. Use the command nssm start addarr to initiate addarr. It should autostart going forward.

nssm edit addarr will open up the GUI for further edits.
nssm restart addarr will restart addarr.
nssm stop addarr will stop addarr.
nssm remove addarr will remove the Windows Service.

  • Note that this guide will work in essence for any Python script, and you can use NSSM to run most things as Windows Services through some tweaking of this overall config.