Giter VIP home page Giter VIP logo

srvany-ng's Introduction

srvany-ng: Run any Windows application as a Service

A drop in, compatible, replacement for the useful "srvany.exe", found in the Windows Server Resource Kit.
Written in C, for Windows XP and newer.

Support Me

Donate Via Paypal

Differences to the original

  • Open Source
  • 32 and 64 bit binary available
  • No OS/2 application support
  • Service will stop if the launched application exits

Building

Solution is known to build with Visual Studio 2013, no additional dependencies are needed. The project uses the "v120_xp" toolset to ensure XP / 2003 support, and links to the MSVCRT statically.

Installing

Place srvany-ng in an accessible folder on your system. Install it as a service from an Elevated (Administrator) Command Prompt:

sc create "MyServiceName" start= auto binPath= "C:\Path\To\srvany-ng.exe"
sc description MyServiceName "My services description"

Note the spaces between start=, binPath= and their parameters. This is intended.

Now, open the Registry editor (regedit.exe), and browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyServiceName

Create a new Key named "Parameters".
In the parameters key, create a new String value named "Application". The value should be the file path to the application you wish to run as a service.

Optional Parameters

Value name Value type Description
AppDirectory String value The starting directory for your application. Usually the same as the folder its executable is in.
AppParameters String value Command line arguments to pass to your application on startup.
AppEnvironment Multi-String value Environment variables to set for your application.

Further Reading

Microsoft support article describing the use of the original srvany.exe: https://support.microsoft.com/en-us/kb/137890

srvany-ng's People

Contributors

birkett avatar sadpencil avatar unsolaci avatar

Watchers

 avatar  avatar

Forkers

vporton

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.