Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Setting a program to run as a service

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Scubar

Scubar

    - Local Smartass -

  • Member
  • PipPipPipPipPip
  • 829 posts
  • Joined 20-May 05
Hi

im making a silent installer for my copy of CpuIdle Extreme and i want to know how i can set it to run as a service, i checked over on there site but it tells u to use a program which u have to pay for todo it.

now i know that it can be done without using this program but i dont know what Registry Entries i need to create inorder for it to run as a service (eg path to .exe and description for showing in services.msc)

( i have set all my other reg entries for the program so that it doesnt display in the taskbar anyway and doesnt show the splash screen etc etc. )


How to remove advertisement from MSFN

#2
MHz

MHz

    Just simple

  • Member
  • PipPipPipPipPipPipPip
  • 1,659 posts
  • Joined 02-August 04
  • OS:Windows 7 x64
  • Country: Country Flag
Use InstSrv.exe and SrvAny.exe from Microsoft, webpage here. Another webpage here with more info and a link to download.

;)

#3
Scubar

Scubar

    - Local Smartass -

  • Member
  • PipPipPipPipPip
  • 829 posts
  • Joined 20-May 05
there must be a different way other than using these programs just to create a service.

i am making a silent installer for it to run from svcpack.inf so surely all i need todo is add some registry keys.

#4
cyberpyr8

cyberpyr8

    IT Ninja

  • Member
  • Pip
  • 57 posts
  • Joined 10-January 06
  • OS:Windows 7 x64
  • Country: Country Flag
You can still do it with your installer. Just use the MS instsrv.exe and srvany.exe and create the registry keys that it requires. Then export that out and use the .reg file and the two exe's and have them as part of your install. You do need those files.

I have moved created services from one PC to another by just exporting the registry settings and copying the exe's. Doing it in an installer should work the same way.
______________________________
a real guy living in a virtual world
Writer - Android Activist
My Android app reviews
Check me out on The Android Vibe podcast

See you at TechEd 2012...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users