Application as Service - How to create new system service?
Here is step-by-step guide, which helps you to create new system service using Application as Service.
1. Create new system service using graphical interface:
- Click "Create" button on Toolbar and select "Create on localhost" ("create on ..." if you want to create new service on remote PC or "Import from XML" option to create service using XML configuration file) to invoke "Create service" tab
- Please, tick the corresponding "Create new service" checkbox and click "Browse" button to select service application to install

- Now you are able to configure plenty of settings using different tabs (Service, Dependencies, Recovery, Save). Full description of these tabs you can see here.
- After configuring all the available settings, please, click "Create service" button.
- Your new service after successful creation will appear in "Services list":

2. Create new system service from command line:
- Install the service by typing the full path to app2srv.exe file (by default it is "c:\Program Files\Eltima Software\Application as Service\", alternatively you may add this path to Path environment variable), INSTALL and providing all necessary command line options. For instance:
c:\Program Files\Eltima Software\Application as Service\app2srv.exe INSTALL /SN="system_1" /PM="C:\notepad.exe" /WD="C:" /SRV1
- SN (Service Name) and PM (Executable file) parameters are mandatory. Please, not that your application will run in background unless you provide the /ID1 parameter (Interaction with desktop enabled) and set "User account" to "LocalSystem" (which is default parameter and therefore, could be omitted).
- Start the service by typing full path to the app2srv.exe file, START and valid SN (Service Name) key. For instance:
c:\Program Files\Eltima Software\Application as Service\app2srv.exe START /SN="system_1"
3. Create new system service using XML configuration file
- The easiest way to create new system service using XML configuration file is with the help of graphical interface. Please, click "Create" button on Toolbar and select "Import from XML"
- Select your XML configuration file and click "Open" button. On successful creation you will see your service in "Local system services" section of Services list.
- The second way to create new system service is to install the service by typing the full path to app2srv.exe file (by default it is "c:\Program Files\Eltima Software\Application as Service\", alternatively you may add this path to Path environment variable), INSTALLXML command and providing the full path to your XML_FILE. For instance:
c:\Program Files\Eltima Software\Application as Service\app2srv.exe INSTALLXML c:\Work\App2srv_config.xml
- Start the service by typing full path to the app2srv.exe file, START and valid SN (Service Name) key. For instance:
c:\Program Files\Eltima Software\Application as Service\app2srv.exe START /SN=Notepad