Important alert: (current site time 7/15/2013 9:08:03 AM EDT)
 

winzip icon

Windows Service Project Template

Email
Submitted on: 2/15/2006 5:40:11 PM
By: Luiz Carlos Brazao  
Level: Beginner
User Rating: By 8 Users
Compatibility: VB.NET
Views: 47602
author picture
(About the author)
 
     This is just my first contribution to PSC, and it's intended to help users of Visual Basic 2005 Express Edition to create a Windows Service Project since this version don't brings template for this type of project.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/17/2006 8:45:13 AMDoug Simpson

Awsome! this is exactly what I have been looking for!!! Great job.
(If this comment was disrespectful, please report it.)

 
2/21/2006 1:54:11 AMCharles Sollenberger

Great! I've been pulling my hair out trying to figure this out. Thanx a lot.
5 from me.
Charles
(If this comment was disrespectful, please report it.)

 
3/28/2006 4:52:21 AMFrancesco

sry, Im totally new to VS2005. How do I add it to my VS2005 standard edition templates list?
(If this comment was disrespectful, please report it.)

 
3/28/2006 7:49:20 AMLuiz

Hi Francesco,

You should place the zip file under "My Documents\Visual Studio 2005\Templates\ProjectTemplates\C:\Documents and Settings\Luiz.BRASVALOR\Meus documentos\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic" if it's doesnīt work, please, contact me.

Thank u
(If this comment was disrespectful, please report it.)

 
3/28/2006 7:53:41 AMLuiz

Hi Francesco,

You should place the zip file under "My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic" if it's doesnīt work, please, contact me.

Thank u
(If this comment was disrespectful, please report it.)

 
3/28/2006 8:27:56 AMFrancesco

Yeah Luiz,
it works very well now.
I was wrongly adding the files to the Templates folder. When I placed the zip, it worked smoothly. Thx
(If this comment was disrespectful, please report it.)

 
6/28/2006 10:20:42 AMMark

You are an absolute god send!! I dont normally take the time to register at a site to leave feedback and stuff when I download something but this deserves as thank you. Thank you VVVVVVVVVVVVV much :-))))
(If this comment was disrespectful, please report it.)

 
9/6/2006 11:10:47 AMSteve

Hi Luiz,
I notice that the project is a Windows Application rather than a Windows Service. Is this intentional and does it matter?
Steve
(If this comment was disrespectful, please report it.)

 
9/27/2006 6:38:06 PMFlip

Thanks, after now I can see the 'Service Template' in my VS2005Express.
But I must also add an ProjectInstaller but I cannot find the 'Add Installer' link.
Where is the link or how can I add the projectinstaller manual??
Thanks in advance
(If this comment was disrespectful, please report it.)

 
9/28/2006 2:06:41 PMFlip

I can not find the 'Add Installer'.
How can I add an installer to this service??
Thanks
(If this comment was disrespectful, please report it.)

 
1/14/2007 6:30:36 PMSharky

very helpful, how do you add a project installer
(If this comment was disrespectful, please report it.)

 
3/14/2007 11:31:10 AMsravani

Thank u very much. Great job. This is exactly i'm searching for.
(If this comment was disrespectful, please report it.)

 
4/19/2007 1:35:41 PMBianca

Thank you for the code. It looks fine, but does your service template have an installer and an uninstaller?
(If this comment was disrespectful, please report it.)

 
4/19/2007 3:15:34 PMBianca

For admin:
!!!!!!!!!! I'm using Microsoft Visual Studio 2005 and there is a template for windows service. My mistake! Please ignore the previous message. Thank you.
(If this comment was disrespectful, please report it.)

 
9/3/2007 8:18:30 AMRobert Andersson

Great stuff!
For all of you wondering about serivceinstaller you could programaticly add a class to your service providing this functionallity.

Code example from msdn:
http://msdn2.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller (VS.71).aspx

(If this comment was disrespectful, please report it.)

 
3/26/2008 6:18:36 AMPatrick

Iīve updated the version to also make it work with VS2008. I still need to put it on a site though.
(If this comment was disrespectful, please report it.)

 
6/24/2008 8:43:36 AMTwinky

I have a problem installing the template. i have put in the correct folder. i have checked in the options where the template folder is. but it still donīt work:/ anyone know how to solve this?
(If this comment was disrespectful, please report it.)

 
4/23/2009 2:34:19 PMRick

If anyone has install for VB2008 Express please let me know. I am having problem getting this code working properly.
Thanks!
(If this comment was disrespectful, please report it.)

 
12/22/2009 2:17:37 PMPcDave69

When will we see the VS2008 version. I would sure like to use it.
(If this comment was disrespectful, please report it.)

 
2/21/2011 5:55:30 AMManuel

Thanks a lot Luiz. It's is excellent to create Window Services. And for PCDave69, it works in VS2008

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.