Heim MicrosoftWindows Server Server 2008: Create a Service from Application

Server 2008: Create a Service from Application

eftir Jón Ólafsson

 

One thing I have found missing on the newer Windows Server version is the ability to run an application as a service, at least I haven’t found it yet…

Here is how I did this for an app called IrisServer that I wanted as a service:

  • Download these files from Server 2003 Resouce kid :  SRVANY
  • Extract files in c:\reskit
  • Make a empty service with this command:
    c:\reskit\INSTSRV.EXE “IrisServer Service” c:\reskit\SRVANY.EXE

1

 

    • Now open regedit….   Start > Run > Regedit
    • Next navigate to this registry key:  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IrisServer Service
    • From the Edit menu, click Add Key and name it Parameters
    • Under Parameter click Edit, Add String Value and type this information.
      • Value Name: Application
        • Data Type: REG_SZ
              • String : path to app\IrisServer.exe

2

3

Now you can go ahead and start the new service up…  right click and start

4

Easy and simply and if you need to delete this service again your run this command:

c:\reskit\INSTSRV.EXE “IrisServer Service” REMOVE

Hvað finnst þér?

Þú hefur kannski áhuga á þessu...

Skildu eftir athugasemd

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Þessi vefur notast við vafrakökur. Samþykkja Lesa meira