how to create setup project for windows service??? [Resolved]

Posted by Sudhakar_A under C# on 11/19/2013 | Points: 10 | Views : 1625 | Status : [Member] | Replies : 2
how to create setup project for windows service???




Responses

Posted by: Allemahesh on: 11/19/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
You can follows below steps:-

1. Start Microsoft Visual Studio.
2. On the File menu, point to New, and then click Project.
3. Click Visual C# Projects under Project Types, and then click Windows Service under Templates.

Note In Visual Studio 2005 or Visual Studio 2008, expand Visual C# under Project Types, click Windows, and then click Windows Service under Templates.
4. Type LogWriterService in the Name text box, and then type C:\ in the Location text box. Click OK.
5. In Solution Explorer, right-click Service1.cs, and then click View Code.
6. In the OnStart event handler, replace the comments with the following code:
EventLog.WriteEntry("My simple service started.");
7. In Solution Explorer, double-click Service1.cs.
8. In the Code Editor window, right-click Design View, and then click Properties
9. In the Properties pane, click the Add Installer link.
10. In the Properties pane for ServiceInstaller1, change the ServiceName property to Service1.
11. In the Code Editor window in Design view, click ServiceProcessInstaller1.
12. In the Properties pane, change the Account property to LocalSystem (The LocalService and NetworkService values are available only in Microsoft Windows XP).


Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Sudhakar_A, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 11/19/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
Also you can see the below one:-

http://www.dotnetwatch.com/Create-a-Setup-project-for-a-Windows-Service464_AR.aspx
http://philippsen.wordpress.com/2010/11/08/creating-a-setup-project-for-a-windows-service-using-vs2010/


Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Sudhakar_A, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response