diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index f6574e8..22c755d 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -46,4 +46,21 @@ This installation assumes Headphones is installed to `/home/sabnzbd/headphones`. Tested on Mac OS X 10.8.2. Assumes Headphones is installed to `/Applications/Headphones/` * `cp /Applications/Headphones/init-scripts/init.osx ~/Library/LaunchAgents/com.rembo10.headphones.plist` (do not symlink!) -* `launchctl [load | unload] ~/Library/LaunchAgents/com.rembo10.headphones.plist` \ No newline at end of file +* `launchctl [load | unload] ~/Library/LaunchAgents/com.rembo10.headphones.plist` + +## Windows +Tested on Windows 7 (similar process should work on 8+). +This method will startup the headphones application even before a Windows user logs in. +With Windows 7+ there is no need to mess with srvany, nssm, etc. +This assumes you have a working headphones.py. + +* Open up the Window's Task Scheduler application (`Taskschd.msc`). +* Right-click on "Task Scheduler Library" and choose "Create Task" (NOT "Create Basic Task"). +* Set the following on each respective tab: +* `General` - Set `Name` to "Headphones". Set `Security Options` to "Run whether user is logged in or not." Click `Change user or group` and type "System" in the object name to select. Click "OK" +* `Triggers` - Click "New". Under "Begin the Task" select "At startup." Click "OK" +* `Actions` - Click "New". Set the script location to your `headphones.py` file (in double quotes). Click "OK" +* `Conditions` - Uncheck all boxes. +* `Settings` - Uncheck all boxes except "Allow task to be run on demand." +* Click "OK" on the new task and supply your administrator credentials. +* Script can be tested by right-click and `Run`. You should see a new instance of python appear in your task manager. \ No newline at end of file