|
There's some new command-line
arguments available for you to use with the SpamPal executable,
that allow you to control the SpamPal service in various ways:
-start_service
will start the SpamPal service, provided it has been installed and
is not currently running.
-stop_service
will stop a currently-running SpamPal service.
-remove_service
removes SpamPal from the list of services to run on your machine
- it does the same as the Uninstall SpamPal
Service shortcut in the Programs menu.
-install_service
adds SpamPal to the list of services to run on your machine, and
prompts the user to start the service and the GUI client.
-account_name <name>
and -account_password <pass>
can be used at the same time as -install_service
to specify the username under which the service should run - if
unspecified, it will run under the LocalSystem username. If the
username you choose doesn't have a password, just don't include
the -account_password directive.
-start_client,
if specified at the same time as -start_service,
will cause the SpamPal GUI client to start up along with the service.
-start_or_install_service
does the same as -start_service
if the SpamPal service has already been installed, or the same as
-install_service otherwise.
-run_spampal_from_installer
causes the SpamPal service & GUI client to start up if it's
installed and configured to auto-start. Or if the user doesn't have
administration rights, or is running Windows 95, 98 or ME, the SpamPal
application will start up. If neither of those cases is true, the
user will be prompted whether to run SpamPal as an application or
as a service.
-serviceServer <hostname>
allows you to specify to the GUI client the name of the machine
on which the SpamPal service is running. (This uses named pipes,
so it'll probably only work between two machines on your local network.)
If you do this, I strongly advise
you to use the password protection feature too!
-open_options_window automatically
opens the SpamPal options window on start-up
-password <pass>
allows specification of a password when the GUI client starts up;
see below.
Password Protection
You can password-protect your service to prevent
users without the password from connecting to it with a SpamPal
GUI client; you could do this, for example, to allow only administrators
to modify SpamPal's configuration.
When you start SpamPal as a client or a service,
it looks for a password in the following places (listed in order
of decreasing priority):
1. The -password
command-line argument
2. The registry key HKEY_CURRENT_USER\Software\SpamPal
for Windows\SpamPal\Password
3. The registry key HKEY_LOCAL_MACHINE\Software\SpamPal
for Windows\SpamPal\Password
If the SpamPal GUI client doesn't find the same
password as the SpamPal Service, the client won't be allowed to
start up. (Note that the service only searches for the password
when it starts up - so if you change the password, you'll need to
restart the service before the change will take effect.)
|