Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Who Is Online?
We have 44 guests online
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services E-mail
User Rating: / 39
PoorBest 
Free Software - Command line utilities
Written by Thomas   
Thursday, 05 February 2009 17:22
Article Index
ServiceExe - Install and run applications as Windows services
License
Installation
The configuration file
Example configuration file
Configuration: The [General] section
Configuration: Process task sections
Embedded environment variables
Command line parameters
User credentials
Process logging
Common pitfalls
All Pages

 

ServiceExe can install Windows applications as Windows services. It works very similar to SrvAny from Microsoft and NSSM from Iain Patterson but doesn't have their disadvantages.


ServiceExe has been inspired by NSSM - the Non-Sucking Service Manager and derived from an unreleased application called File Copy Manager.

Unlike NSSM, ServiceExe can be run directly from the command line without additional keyboard or mouse input. It has no graphical user interface (GUI). This makes ServiceExe suitable for Windows service installations and removals from command line scripts.

ServiceExe can run Windows services

  • by running a single application as one single service.
  • by running several applications as one single service.
  • by running several applications as several different services.


NSSM and SrvAny use the Windows registry to store information about the services to install and run. ServiceExe uses a very simple and understandable configuration file for this purpose. No fiddling with the registry is required to use the software.

Applications run by SrvAny as a Windows service do not stop the actual service when they terminate or crash. This makes them look like actively working although they are not.

Applications run by older versionis of NSSM as a Windows service do not stop the actual service either. Instead, NSSM restarts them automatically. This had been a convenient task at the time when Windows NT was fashionate. From Windows 2000 onwards, all Windows versions support automatic restarts and actions to be taken if a service unexpectedly terminates. The latest version of NSSM supports these options too.

ServiceExe stops the Windows service if the application terminates and therefore hands over control to Windows again. If several applications are installed to run as one single service all applications belonging to the same service are automatically terminated. This avoids inconsistant states where some applications work fine while others don't. Once the service is started again all applications that belong to this service are started too.

The software can write extensive log files to help analyse issues. Everything it does can be logged.

Services can run under the LocalSystem account (default) or under any other user account. The user credentials can be provided via command line parameters.

ServiceExe supports further command line parameters to start the service optionally right after the installation and to set its start-up type to 'automatic'. Services with a start-up type of 'automatic' are automatically started when the system is rebooted (see dwStartType and SERVICE_AUTO_START at CreateService ().

 

Download ServiceExe.zip (0.11 MiB = 108.4 KiB = 111,041 bytes)




Last Updated on Thursday, 05 July 2012 13:25
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)