Posts

Showing posts from October, 2016

how to install windows service in c#

Image
Introduction:  Here I will explain how to install windows service and how to start the windows service in our local machine. Description:  In previous article I explained clearly how to create windows service  and how to run windows service in scheduled intervals. Now I will explain how to install windows service in our system. To install windows service in your follow these steps Start  -->   All Programs   -->   Microsoft Visual Studio 2008  -->   Visual Studio Tools   -->   Open Visual Studio Command Prompt After open command prompt point to your  windowsservice.exe  file in your project Initially in our command prompt we are able to see path like this C:\Program Files\ Microsoft Visual Studio 9.0\VC >  This path is relating to our visual studio installation path because during installation if you give different path this path should be different now we can move to folder which contains our  windowsservice.exe file. After moving to ex

how to create windows service setup in c#.net

Image
how to create Windows Service in c#. Introduction :   Here I will explain what windows service is, uses of windows service and how to create windows service in c#. What is Windows Service ? Windows Services are applications that run in the background and perform various tasks.  The applications do not have a user interface or produce any visual output. Windows Services are started automatically when computer is booted. They do not require a logged in user in order to execute and can run under the context of any user including the system. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed. Create a Windows Service   Creating Windows Service is very easy with visual studio just follow the below steps to create windows service Open visual studio -->  Select  File  -->  New   --> Project -->  select  Windows Service And give name as  WinServiceSample After give  W