Project

General

Profile

QuasselCore As A Service (Windows)

Instructions for settting up Quasel as a service can be found here: http://dotknot.blogspot.ca/2012/01/installing-quassel-on-windows.html

Note that since the core is running on a different user, your configuration folder will be at C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\quassel-irc.org.

If you already have a configuration setup that you want to migrate, copy the contents of %APPDATA%\.quassel-irc.org\ (aka C:\Users\<Username>\AppData\Roaming\.quassel-irc.org\) to the NetworkService's configuration folder.

Windows 7

There were a few changes needed to setup the service in step 3. Specifically, the argument bin in sc create changed to binPath, and required the .exe tacked onto the end.

sc create QuasselCore binPath= "C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe" DisplayName= "QuasselCore" obj= "NT AUTHORITY\NETWORK SERVICE" 
reg add HKLM\SYSTEM\CurrentControlSet\Services\QuasselCore\Parameters
reg add HKLM\SYSTEM\CurrentControlSet\Services\QuasselCore\Parameters /v Application /t REG_SZ /d "C:\Program Files (x86)\Quassel\quasselcore.exe" 

Adding Parameters onto QuasselCore.exe

Say you wanted to run the service on a different port like: quasselcore.exe -p 4241. We need to add another registry value according to the srvany readme.

reg add HKLM\SYSTEM\CurrentControlSet\Services\QuasselCore\Parameters /v AppParameters /t REG_SZ /d "-p 4241" 

Have The Service Run Automatically

Run services.exe. Find the QuasselCore. Right click it and click properties. Then set the Startup Type to Automatic.

Where is the QuasselCore Database/ConfigDir now located?

The config directory for the QuasselCore when run under the Network Service user account will be located at:

C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\quassel-irc.org

Windows 10/11

Download Non-Sucking Service Manager (NSSM) .zip file from https://nssm.cc

Extract the nssm.exe in win64 to "C:\Program Files\Quassel IRC" or wherever you installed it.

Go to "C:\Program Files", right click the "Quassel IRC" folder and select "Open in Terminal", alternatively just open the terminal and type:

cd C:\Program Files\Quassel IRC

In the terminal type:

nssm install QuasselCore

A GUI opens. In the tab "Application" under "Path:" press on the "..." button and select the file "quasselcore.exe".

In the tab "Details" enter "Quassel IRC Core Service" under "Description:".

In the tab "Log on" enter your credentials under "This account:" as "HOST\USER" with HOST being your PC hostname and USER being your current Windows username (assuming that you are an Administrator, if you don't want to use your user then use "NT AUTHORITY\NETWORK SERVICE" and leave the password empty).

If you don't know your hostname just type ".\USER". Enter your password twice.

If you don't use your current user but the network service you will have to copy all files from

%APPDATA%\quassel-irc.org

to
%WINDIR%\ServiceProfiles\NetworkService\AppData\Roaming\quassel-irc.org

Click the button "Install service".

Hold the Windows key + R and type "services.msc", hit Enter. If the service "QuasselCore" is not started, start it manually.