Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

i have created a book inventory project in win form application and i have also creates windows services separately for database backup. so my question is how can i add windows services to my project and deploy project by setup wizard method.


Thanks in advance
Posted

You need to add separate project for Windows Service of type Windows Service and separate deployment project for it in the same solution.

You can use the same project reference which are used in windows form application.
 
Share this answer
 
Comments
priya3456 6-May-13 6:02am    
sorry i did not get you can you explain me
vijay__p 6-May-13 6:06am    
check this link
http://www.c-sharpcorner.com/UploadFile/mahesh/window_service11262005045007AM/window_service.aspxfor creation windows service
vijay__p 6-May-13 6:07am    
and this as well it will explain you how to create and deploy using setup project
http://www.codeproject.com/Articles/3990/Simple-Windows-Service-Sample
priya3456 6-May-13 6:17am    
It is good but i have to make single setup for my project and windows services. so how can i add windows services to my win form project and deploy project.
 
Share this answer
 
v2
Please go through this link which explain how to create windows service and deploy it
How to Create a Simple Polling Service[^]

Hope this helps
 
Share this answer
 
Comments
priya3456 6-May-13 7:18am    
It is good but i have to make single setup for my project and windows services. so how can i add windows services to my win form project and deploy project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900