Note that it will not work for just any executable: the executable must be a Windows Service i. When registering a non-service executable as a service, you'll get the following error upon trying to start the service:. There are tools that can create a Windows Service from arbitrary, non-service executables, see the other answers for examples of such tools. BAT or any. 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.
Incredibuild Agent - Enabled. Improve this answer. Solid, got my guys to subscribe me. Going to edit the answer for a screenshot. Thanks a bunch. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. Thank you for the feedback. The comment is now awaiting moderation. You will be notified via email when the author replies to your comment. Please select a comment to reply.
You can add your comment about this article using the form below. Make sure you provide a valid email address else you won't be notified when the author replies to your comment Please note that all comments are moderated and will be deleted if they are Not relavant to the article Spam Advertising campaigns or links to other sites Abusive content.
Please do not post code, scripts or snippets. Required Invalid Email Address. Security code:. Required Invalid security code. Hi, my name is Roger Karlsson. I've been running this website since I want to let you know about the FreeFixer program. FreeFixer is a freeware tool that analyzes your system and let you manually identify unwanted programs. Once you've identified some malware files, FreeFixer is pretty good at removing them.
You can download FreeFixer here. Supports both and bit Windows. If you have questions, feedback on FreeFixer or the freefixer. You can find my email address at the contact page.
Please share with the other users what you think about this file. What does this file do?
0コメント