Wednesday, July 24, 2013

Install/Uninstall windows service using DOS command line

Problem Background

Once you created a windows service using Visual Studio, you will be able to deploy in development machine with Visual Studio Command prompt. But in production machine we will be not having Visual Studio command prompt, but will be having DOS command prompt. This is the way you can install using dos command prompt.


  1. Open the command prompt as administrator. (Start -> Accessories ->Command Line -> Right Click -> Run as administrator )
  2. Navigate to c:\Windows\Microsoft.NET\Framework\v4.0.30319 through command line (Type CD c:\Windows\Microsoft.NET\Framework\v4.0.30319)
  3. To Install Type installutil-i
    1. Eg. installutil -i “C:\Users\sjamaldeen\Desktop\Cust QA\VPlus.CustomerSurvey.GetResult.exe”
  4. To unistall  installutil/u
    1. Eg. installutil /u “C:\Users\sjamaldeen\Desktop\Cust QA\VPlus.CustomerSurvey.GetResult.exe”


  1. Hi Suhal,

    Thank you,i had tried this and it work perfectly fine