Office Office Exchange Server. Not an IT pro? Windows Client. Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows Server General Forum. EXE file as a service. Many existing answers include human intervention at install time. This can be an error-prone process. If you have many executables wanted to be installed as services, the last thing you want to do is to do them manually at install time.
Towards the above described scenario, I created serman , a command line tool to install an executable as a service. All you need to write and only write once is a simple service configuration file along with your executable.
For more info, take a look at the project website. A working configuration file is very simple, as demonstrated below. I've tested a good product for that: AlwaysUp. Not free but they have a 30 days trial period so you can give it a try Same as Sergii Pozharov's answer , but with a PowerShell cmdlet:.
See New-Service for more customization. Here is create example:. Executable file google drive : [Download]. Source code: [Download]. Blog post: [BlogLink]. Service editor class: WinServiceUtils. Service Manager is a set of precompiled binaries that install and manage a system service on the target OS using nearly identical command-line options source code also available. Each platform does have subtle differences but the core features are mostly normalized.
Processes that are started with Service Manager should periodically watch for two notification files to handle restart and reload requests but they don't necessarily have to do that. Probably all your answers are better, but - just to be complete on the choice of options - I wanted to remind about old, similar method used for years:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Create Windows service from executable Ask Question.
Asked 11 years, 4 months ago. Active 4 months ago. Viewed k times. Improve this question. This site uses Akismet to reduce spam.
Learn how your comment data is processed. Skip to content. You know that Windows Services are kind of software that do that. But, what if you want a non-service app to run automatically, like a service, even notepad.
The solution is to simply use the windows integrated Task Scheduler. You can use it, to launch any app. You can make it run on any username.
0コメント