How to create Windows Service in VB Net?
Вставка
- Опубліковано 16 січ 2017
- This tutorial helps you to understand how to create Windows Service through VB .Net
To install a Service
installUtil.exe "Service_Name.exe"
Give the name of your project as a Service Name to install the Service.
To Uninstall a Service
sc.exe "Service_Name"
Give the name of your service as the Service Name to Uninstall the Service.
Great tutorial. Helped me get started. And a start knowledge of the service commands too. Thank you
You are welcome. Thank you for your feedback. If you have any queries, you can reach me out anytime.
Thank you man...
This helped me a lot...
Subscribed 👍👍
I'm so glad that I could help you with this video 🙂.
Thank you for subscribing to my channel. If you have any queries, just let me know. I'll try my best to help you, my friend.
Thanks. It helps me understand well.
Thank you man!!
Great tutorial.. Great Job!
This helped me a lot..
Again... Thank you
God bless you
Thank you for your kind words. I'm so glad when reading your comment :)
Great guide !thanks a lot!
You are welcome Michelangelo. If you want me to teach anything, just let me know :)
nice tutorial thank you
Great Demo !
Thank you Ibrahim Nada
Can u Show us how to Debug a service ?
Currently I can't able to record tutorial on that. I'm busy in working some other project. So, I can able to record video after a month only.
If you want to know service debugging quickly means, then don't wait for me. Instead refer this link docs.microsoft.com/en-us/dotnet/framework/windows-services/how-to-debug-windows-service-applications
If you have any doubts, contact me.
I have a doubt. Where should I put the code that performs the functions of the service?
Did you host sample code you used here somewhere?
very nice video :D thanks a lot. Any chance to give dynamic Parameters to the service? Maybe an IP for example which you can enter on properties or something? EDIT: I found a solution i think. i will try it with a json config file.
Good Video :)
Thank you Gagan
Hi Balaji S. Can you make video about : how to get event logon || logout of user - windows service. Many thks to help
Good work!! This help me some much!
Just a question, what I can install service in other PC without Visual Studio Developers Command Prompt? I try with Command Prompt but don't work installUtil.exe... Thanks!
Hi Simone,
Installutil.exe is not related to Visual Studio. It is inside the Dot Net Framework. You can use it without Visual Studio Dev command prompt.
Navigate to the installutil.exe in your .net folder (for .net 4 it's C:\Windows\Microsoft.NET\Framework\v4.0.30319 for example) and use it to install your service, like this:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\myservice.exe"
Make sure to run the command prompt as a administrator. Also, Check the path of the Dot Framework on the target system. It may vary.
There are some better ways to install the service. One among them is to create a installer for your service.
Don't worry. I'm planning to create a complete guide to create, use, debug and finally deploy a windows service through C#. I'm planning to record it as soon as possible. Stay Tuned.
Finally, Thank you for your support. If you have any queries, the let me know. Consider me as one of your friends :)
Thanks, I have see where is instalutil.exe, so now I can try to install it! Thanks again!
@@simonetusino458 👍
Can i install and run the service from a form button click? Stop it etc?
I want to know too
Hello which version of windows are you using example : windows 10 version 1709 ?
Windows 10.0.16299
What is the reason for 2 dislikes? Can I know the reason please? Give your valuable suggestions to me.
Bro this video is very helpful for me, please upload more videos like this.... thanks man
Maybe because you don't mention that "InstallUtil.exe" is framework specific and resides inside each specific framework version folder. (i.e : C:\Windows\Microsoft.NET\FrameWork\v4.0.30319\InstallUtil.exe" It's not in the %PATH% environment by default
WHY ARE THERE SO MANY ADS!!!
Edit: There’s 14 or more, I just counted
Sorry for the inconvenience. It helps me to earn some money. I'll reduce the number of ads.
The cmd part is not clear. does not show how the installation was done. (24:30). 👎👎👎👎👎
Hey Man, Sorry to hear that you didn't understand the installation part. I have same kind of video in c#, where I explained the things better. So, check out this video ua-cam.com/video/HHOM-P1-NqU/v-deo.html
Hope my answer helps :)
@@ProgramWithBalaji Yes, it is not clear cause the screen has been clipped. The C# shows everything allright. Thanks!
@@GunMeat Sorry, after an year, now only I understood what's the issue in that timeline. Happy to hear my C# video helped you