Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Who Is Online?
We have 118 guests online
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Command line parameters
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Command line parameters
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services - Command line parameters E-mail
User Rating: / 42
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 provides the following command line parameters:


Invocation:
ServiceExe -install inifile <params>   to install the service
ServiceExe -remove inifile <params>    to remove the service
ServiceExe -debug inifile <params>     to run as a console app for debugging
ServiceExe -console inifile <params>   same as -debug

<params>:
/A            Set service start type to automatic.
/S            Start the service after installation.
/U:username   Use this account instead of the local system
account.
/P:password   Password for account /U:username.


All command line parameters are case-sensitive, for instance '-Install' or '-INSTALL' will *not* work. See 'Example configuration file' for an example on how to use the command line parameters.

inifile

This is a placeholder for a configuration file. The file name must be provided including the file name extension. See 'Example configuration file' for an example on how to provide a configuration file parameter.

-install

Installs (registers) the applcation as a Windows service. After a successful installation the service is visible in the Windows Services Panel and can be started, stopped, etc, for there. If no user credentials are provided (/U: and /P: parameters) the service is installed to run with the credentials of the LocalSystem account. If credentials are provided the service is installed to work with these credentials. If the user specified with the /U: parameter doesn't have the right to log on as a Windows service yet this right is automatically given to him during the installation process. See 'User credentials' for some common pitfalls.

- remove

Uninstalls (unregisters) the application as a Windows service. If the service has been running (started) it is stopped first.

On Windows 2000 it is recommended that the Services Panel is not open when the service is removed. Windows 2000 has a bug that sometimes prevents the service from being removed without a system restart. This seems to have been fixed on newer versions of Windows like Windows XP and the 2003 series of servers.

- console
- debug

Runs the application in a test mode which allows to check that the configuration and file system structure has been set up correctly. It is recommended to use this option for some time before finally installing the service with -install. The parameters -console and -debug ignore any user credentials provided with /U: and /P:. The application always runs under the account of the current user. See 'User credentials' for some common pitfalls. The application is started immediately even without the /S parameter. Since no service is installed the /A parameter is ignored too.

/A

Marks the service as 'Automatic'. This ensures that the system attempts to start the service automatically after a system reboot.

/S

Attempts to start the service immediately after installation.

 

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)