Jump to content

Anyone Know How To Add A Service?


tsamb.

Recommended Posts

Anyone know how to add a program as a service in windows xp? So it comes up in msconfig / loads as windows xp boots...

 

I googled for it but only came up with a bunch of SP2 crap...

 

thanks in advance,

 

-tsamb.

Share this post


Link to post
Share on other sites

not sure how to add a service, but if you just want an app to start at startup, that's easy. if you go to start-all programs-startup. find the address of the "startup" link, usually something like "c:\documents and settings\owner\start menu\programs\startup"(with owner being a variable). any executable file in this folder will automatically start with windows. just copy and paste the executable from the app you want to start with windows and voila!

good luck!

oh and by the way, it will show up in msconfig too.

Edited by upok

Share this post


Link to post
Share on other sites

I'm going to refer you to here

 

I used this as a guide to add a second instance of folding as a service. The only problem I had was in this line:

 

instsrv Folding c:\fold\srvany.exe

 

I had to put the source location in quotes like this "c:\fold\srvany.exe"

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks for the input guys! And just FYI the reason I wanted service instead of just startup is so it runs before anyone even logs on... and it was of course in relation to folding, heh. :foldon:

Share this post


Link to post
Share on other sites

ya, this is a couple of days out, so you may not notice but...

 

If you have the resource kit installed, there is an application called "srvinstw.exe" that will walk you through installing or removing any service or driver. If you use this, you won't have to touch the registry.

 

You can google this for specifics on how it can be used.

Share this post


Link to post
Share on other sites

Okay, great work guys, thanks for the info. But now that I've added the service, I still want the program to run, not just the process. Anyone know what to add to the string or whatnot to load the program as well as the process?

Share this post


Link to post
Share on other sites

I can't speak to the other suggestions, but if you just created the service, you'll have to go to the registry and make entries to tell what you want to run. This method is not hard, but if you're not comfortable touching the registry, one of the other methods may be a better alternative.

Share this post


Link to post
Share on other sites

No. Everything is done. I have created the service. I have added all of the parameters to the registry. The service loads as a service when I load windows. All I want to know now is how I get the service to actually open the program when it starts, rather than just run the process.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...