Contenu
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Rechercher
Login
Navigation
Home Logiciel gratuit Command line utilities ServiceExe - Install and run applications as Windows services - Command line parameters
Les plus récents
Articles vedettes
Joomla 1.5 Featured Articles
Navigation
Home Logiciel gratuit Command line utilities ServiceExe - Install and run applications as Windows services - Command line parameters
Qui est en ligne?
Nous avons 5 invités en ligne
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services - Command line parameters Envoyer
Note des utilisateurs: / 0
MauvaisTrès bien 
Logiciel gratuit - Command line utilities
Écrit par Thomas   
Jeudi, 05 Février 2009 17:22
Index de l'article
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
Toutes les 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.10 MiB = 105.8 KiB = 108,365 bytes)

 



Mise à jour le Jeudi, 15 Octobre 2009 15:07
 
You need to login or register to post comments.
Discutez de ceci sur le forum. (0 posts)
Discutez de (0 posts)