Need

As, starting with 2024.1.x, Semarchy does not provide a script to set the runtime to run as a service (installEngineAsService.bat), you may need help to use a third-party tool to help you.
You can refer to our documentation.


Summarized Solution

To set up your runtime to run as a Windows service, we will use NSSM (Non-Sucking Service Manager).
This approach ensures your runtime to start automatically with the system and runs in the background reliably, even after a reboot. 


NSSM (Non-Sucking Service Manager) is a free lightweight tool used to run scripts or applications easily as Windows services.

Official site: https://nssm.cc/download



This is a third-party tool example, not a supported Semarchy feature anymore.


Detailed Solution


1. Download NSSM

  • Go to https://nssm.cc/download

  • Choose the 64-bit version if you’re on a 64-bit system

  • Extract the archive, e.g., to C:\nssm

2. Open a Command Prompt as Administrator

  • Right-click the Start menu → "Command Prompt (Admin)" or "Windows PowerShell (Admin)"

3. Install the Service

C:\nssm\nssm.exe install MyRuntimeService

This opens the NSSM GUI interface.

4. Configure the Executable
In the Application tab:

  • Path: path to cmd.exe (C:\Windows\System32\cmd.exe)

  • Startup directory: the folder where your script is located

  • Arguments:

    /c startengine.bat

    (Replace start-runtime.bat with your actual script name)

5. (Optional) In the Shutdown tab:

  • Define a stop command if needed (stopengine.bat)

6. Click “Install service”

7. Start the Service
Run:

net start MyRuntimeService