how to start applications when the system starts?

T

Tomasz Chmielewski

Tomasz said:
Michael Bednarek schrieb:
(...)

But a .job file only contains part of needed information; other parts
are stored somewhere in the registry.

So when the .job file is copied to another computer, one has to reset a
username (and perhaps a password).
I might try if it will work with a password-less user (SYSTEM), without
resetting a username? This would be great, as it would be an answer to
my question!

unfortunately, even if a password-less user is used (SYSTEM), .job files
that are moved to another computer won't work.


Tomek
 

ola

Joined
Jul 4, 2005
Messages
1
Reaction score
0
Why don't you just write your app as a service, and let it post a service shutdown request to itself when the 'simple stuff' is done? Then you set the service to automatic startup when registering it.

Doing as said above will cause your service to start at boot time, close when finished, restart next reboot. It will appear in the service manager as a standard service with automatic startup and logon credentials as specified by an administrator. I think that is what you are asking for.

best regards
Ola
 
T

Tomasz Chmielewski

ola said:
Why don't you just write your app as a service, and let it post a
service shutdown request to itself when the 'simple stuff' is done?
Then you set the service to automatic startup when registering it.

hmm, I guess because I can't? :)

Doing as said above will cause your service to start at boot time,
close when finished, restart next reboot. It will appear in the service
manager as a standard service with automatic startup and logon
credentials as specified by an administrator. I think that is what you
are asking for.

so, how can I make it to be a "service"?

I looked at some installers, and figured out they add some registry
entries, but I didn't find any good documentation which registry entries
I have to change to start an application as a service.
 
D

Dave Patrick

These may help.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createservice.asp
http://support.microsoft.com/?kbid=251192

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| ola schrieb:
| > Why don't you just write your app as a service, and let it post a
| > service shutdown request to itself when the 'simple stuff' is done?
| > Then you set the service to automatic startup when registering it.
|
| hmm, I guess because I can't? :)
|
|
| > Doing as said above will cause your service to start at boot time,
| > close when finished, restart next reboot. It will appear in the service
| > manager as a standard service with automatic startup and logon
| > credentials as specified by an administrator. I think that is what you
| > are asking for.
|
| so, how can I make it to be a "service"?
|
| I looked at some installers, and figured out they add some registry
| entries, but I didn't find any good documentation which registry entries
| I have to change to start an application as a service.
|
|
| --
| Tomek
 
D

Dave Patrick

You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks!
| It doesn't look easy, but probably it'll help!
|
|
| --
| Tomek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top