Frequently Asked Question
Can I run CICB-Server as a service?
Last Updated 10 days ago
The program itself does not have the functionality to run as a service. However, we are considering adding this feature in a future release. In the meantime, here are some alternative methods to run CICB-Server.exe as a service.
Method 1 (Recommended)
- NSSM is a lightweight and user-friendly tool that runs any EXE as a Windows service. It's reliable and widely used.
- Steps to Use
nssm
:- Download
nssm
:- Go to NSSM's official website and download the appropriate version for your system.
- Extract the
nssm.exe
file to a convenient location, such asC:\Windows\System32
for easy access.
- Install the Service:
- Open a Command Prompt with Administrator privileges.
- Run the following command:
nssm install CICB-Server
- A GUI window will appear:
- Path: Browse and select the EXE file you want to run as a service.
- Configure other optional settings, such as arguments, working directory, or log redirection.
- Start the Service:
- Use the following command to start the service:
nssm start CICB-Server
- Use the following command to start the service:
- Verify the Service:
- Check the service status:
nssm status CICB-Server
- Check the service status:
- Advantages of
nssm
:- Simple configuration through a GUI or command-line interface.
- Supports logging and service auto-restart on failure.
- It is ideal for running applications that are not natively designed as services.
- Download
Method 2
- srvany.exe is one of the Windows Resource Kit tools. It is a utility from the Windows Resource Kit that allows the running of any EXE as a service.
- Steps to Use
srvany
:- Download
srvany.exe
:srvany.exe
It is part of the Microsoft Windows Resource Kit. You can download it from trusted sources online or copy it from a Resource Kit installation.
- Create the Service:
- Open a Command Prompt with Administrator privileges.
- Use the following command to create a service:
sc create MyServiceName binPath= "C:\path\to\srvany.exe"
- Edit the Registry:
- Open the Windows Registry Editor (
regedit
). - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CICB-Server
- Create a new subkey named
Parameters
under the service key. - Inside the
Parameters
Key, create the following string values:Application
: Set this to the full path of the EXE file you want to run.AppParameters
(optional): Add any command-line arguments for the EXE.- Example:
Application: C:\path\to\CICBv2\Server\server.exe
AppParameters: --example-argument
- Example:
- Open the Windows Registry Editor (
- Start the Service:
- Use the following command to start the service:
sc start CICB-Server
- Use the following command to start the service:
- Verify the Service:
- Check the service status or use the Windows Services Manager to confirm that the EXE is running.
- Limitations of
srvany
:- It’s an older tool and might not handle some modern EXE behaviors well.
- Requires manual registry editing for configuration.
- Download
Comparison
Feature | nssm | srvany |
---|---|---|
Ease of Use | Very easy (GUI-based configuration) | More technical (requires registry edits) |
Logging Support | Built-in | Needs custom solutions |
Auto-Restart on Failure | Yes | Limited |
Modern Compatibility | Actively used and reliable | Older and less flexible |