MSFN Forum: How To Install A Service - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Install A Service Not a service pack....a windows service Rate Topic: -----

#1 User is offline   johnbreton 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 25-February 05

Posted 03 March 2005 - 11:21 AM

Is it possible to add to an unattend install of Windows SP2, the installation of an .exe as a service that start automatically.

I have copied my exe into the C:\windows\system32 directory.

Now I just want to make it a service.

Anyone has a link, a solution or any tip that would help me.

Best regards

John


#2 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 11:45 AM

what you you want to use as a service?

#3 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 03 March 2005 - 11:51 AM

you could add it to the key

HKLM\Software\Microsoft\Windows\CurrentVersion\Run
keyname=exename

and place it in the system32 folder, this would NOT install it as a service, but it would run each time the computer is booted up, this is where virus scanners are often installed for example..

#4 User is offline   johnbreton 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 25-February 05

Posted 03 March 2005 - 11:54 AM

Thanks Fett
Thanks Bledd

I don't want to run the program (exe) into the startup menu.

I want the program to run as a service.

I thought that Microsoft had made a software in the ressource kit that could allow that...

I am still searching

Thanks

Let me know if you find anything else.

John

#5 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 11:55 AM

Microsoft have it for NT4 :).. ill check if i cannot find something newer

#6 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 11:58 AM

OK i find it

http://www.microsoft.com/resources/documen...-us/instsrv.asp

Download link
http://www.microsoft.com/downloads/details...&displaylang=en

#7 User is offline   johnbreton 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 25-February 05

Posted 03 March 2005 - 12:02 PM

YESS!!!!!!

Thanks a million FETT!

JOhn

#8 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 12:12 PM

Np, plz reply if it work :)

#9 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,363
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 03 March 2005 - 01:42 PM

Look at SC.EXE, and the create command
SC CREATE <SERVICE NAME>


#10 User is offline   Vadikan 

  • MSFT MVP Windows Expert: Consumers
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 22-February 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 03 March 2005 - 06:31 PM

Yzöwl
Does SC.EXE from Win2k resource kit work with XP? This M$ KB article doesn't list XP in the "applies to" section. I don't see the utility in the W2003 resource kit tool list either. Thanks.

#11 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,363
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 03 March 2005 - 07:18 PM

sc.exe is already built in to XP, just type in it and see.

#12 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 09:18 PM

Thx Yzöwl... SC.exe are handly. ill use it for sure!

#13 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 03 March 2005 - 09:27 PM

i find easier to look on "hklm\system\currentcontrolset\services", see how it works and create your own reg.

#14 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 03 March 2005 - 09:30 PM

ouch! this is the hard way :)

#15 User is offline   Vadikan 

  • MSFT MVP Windows Expert: Consumers
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 22-February 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 06 March 2005 - 01:45 PM

Yzöwl, on Mar 3 2005, 07:18 PM, said:

sc.exe is already built in to XP, just type in it and see.
<{POST_SNAPBACK}>
Thanks. I had Win2k when I asked the question :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy