• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Windows Service via Command Line

Written by Rahul, Updated on November 7, 2019

The .net framework provides and command-line installer utility for installing services on the Windows system. You can use installutil.exe to install Windows service via the command line. For .net 4 framework it’s available under C:\Windows\Microsoft.NET\Framework\v4.0.30319 directory.

Install Windows Service

First of all, navigate to the .net framework directory and then run installutil.exe followed by the Windows server exe file path.

c:\> cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319\"
c:\> installutil.exe "C:\Users\Rahul\WindowsService\bin\Debug\WindowsService.exe"

This will install service on your system. In case it prompts for the authentication, Inputs the username, and password of your Windows system. Remember the user name must start with “.\” followed by username as shown in the below screen.

See the onscreen messages and check if the command successfully completed.

UnInstall Windows Service

To Uninstall the Windows service use “-u” option with the same command as installation. The command to uninstall service look like below:

c:\> cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319\"
c:\> installutil.exe -u "C:\Users\Rahul\WindowsService\bin\Debug\WindowsService.exe"

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy