Running an application with no user logged on

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to have an application automatically run (as an administrative user) before any other user logs on?

I have an application that works with my UPS, but the way it normally installs, someone has to log on for it to run from the start-up group. Is there a way for it to be launched pre-login so that it operates when the computer is sitting waiting for someone to log in?

It is far more likely for a power failure to occur when the computer is waiting for a login, and it would be nice for it to do a proper shut-down should that occur.

Thanks,
Cal.
 
Cal said:
Is it possible to have an application automatically run (as an
administrative user) before any other user logs on?
I have an application that works with my UPS, but the way it normally
installs, someone has to log on for it to run from the start-up group. Is
there a way for it to be launched pre-login so that it operates when the
computer is sitting waiting for someone to log in?
It is far more likely for a power failure to occur when the computer is
waiting for a login, and it would be nice for it to do a proper shut-down
should that occur.
Thanks,
Cal.

I think you're approaching this issue from the wrong angle.
UPS software is supposed to run as a service, not as an
application, and as such it runs under the "system" account
and starts when the machine starts, independently of
anyone logging on.
 
Pegasus (MVP) said:
I think you're approaching this issue from the wrong angle.
UPS software is supposed to run as a service, not as an
application, and as such it runs under the "system" account
and starts when the machine starts, independently of
anyone logging on.

That is what I want to do -- so how do I set this up?
 
Cal said:
That is what I want to do -- so how do I set this up?

You use the automatic installation process that was included
with your UPS software. One of its options says "Install as a
service".
 
Pegasus (MVP) said:
You use the automatic installation process that was included
with your UPS software. One of its options says "Install as a
service".

This option does not exist on my UPS software.

When I installed it as a user other than the Administrator, it gave an error
saying there was an error when it called CreateService.

When installed as Administrator, it is definately running when any user is logged
in, but it is definately not running when no user is logged in.

I tried creating a schedulled task to have it run at start up. This works fine during
the initial login, but once a user has logged in and logged out, the process is no
longer running until another user logs in (log-outs kill the process).
 
Cal said:
This option does not exist on my UPS software.

When I installed it as a user other than the Administrator, it gave an error
saying there was an error when it called CreateService.

When installed as Administrator, it is definately running when any user is logged
in, but it is definately not running when no user is logged in.

I tried creating a schedulled task to have it run at start up. This works fine during
the initial login, but once a user has logged in and logged out, the process is no
longer running until another user logs in (log-outs kill the process).

The only way I have run applications as services is with the autoexnt
facility that is included with the Win2000 Resource Kit.

It is possible to run applications as services even without autoexnt. If you
wish to go down this path then I suggest you repost with a subject header
that attracts the attention of those who have, e.g. "How to run an
application as a service".
 
Pegasus said:
The only way I have run applications as services is with the autoexnt
facility that is included with the Win2000 Resource Kit.

It is possible to run applications as services even without autoexnt. If you
wish to go down this path then I suggest you repost with a subject header
that attracts the attention of those who have, e.g. "How to run an
application as a service".
Hi

srvany.exe/instsrv.exe from the free NT 3.5 Resource kit is also
an option:

http://groups.google.com/[email protected]
 
Back
Top