Join GitHub today
Install included scripts into default MainDir on Windows #145
The included demo scripts (EMail.py and Logger.py) are installed into directory scripts of NZBGet installation directory (typically C:\Program Files (x86)\NZBGet\scripts).
When the program starts for the first time it creates MainDir directory (typically **C:\ProgramData\NZBGet**) with required sub-directories and new configuration file. As part of this process directory scripts is created and scripts are copied there from installation directory.
This may lead to confusion (see #144). Another problem is that the scripts are not updated in C:\ProgramData\NZBGet\scripts on program updates and users continue to use old versions of scripts.
To solve both issues setup should copy pp-scripts directly into C:\ProgramData\NZBGet\scripts instead of C:\Program Files (x86)\NZBGet\scripts.
A special case: if destination directory contains file nzbget.conf, that means NZBGet is used in portable mode. In that case the scripts should be installed into installation directory (just like before).