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.

КОМЕНТАРІ • 38

  • @dcsinfoway1319
    @dcsinfoway1319 5 років тому

    Great tutorial. Helped me get started. And a start knowledge of the service commands too. Thank you

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      You are welcome. Thank you for your feedback. If you have any queries, you can reach me out anytime.

  • @adityagurav2348
    @adityagurav2348 5 років тому

    Thank you man...
    This helped me a lot...
    Subscribed 👍👍

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      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.

  • @Dragonfrompakistan
    @Dragonfrompakistan 2 роки тому

    Thanks. It helps me understand well.

  • @jpedrozo
    @jpedrozo 4 роки тому

    Thank you man!!
    Great tutorial.. Great Job!
    This helped me a lot..
    Again... Thank you
    God bless you

    • @ProgramWithBalaji
      @ProgramWithBalaji  4 роки тому

      Thank you for your kind words. I'm so glad when reading your comment :)

  • @michelangelodivenere1471
    @michelangelodivenere1471 5 років тому

    Great guide !thanks a lot!

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      You are welcome Michelangelo. If you want me to teach anything, just let me know :)

  • @MasterJOEvlog
    @MasterJOEvlog 4 роки тому

    nice tutorial thank you

  • @ibrahimnada4702
    @ibrahimnada4702 6 років тому

    Great Demo !

    • @ProgramWithBalaji
      @ProgramWithBalaji  6 років тому

      Thank you Ibrahim Nada

    • @ibrahimnada4702
      @ibrahimnada4702 6 років тому

      Can u Show us how to Debug a service ?

    • @ProgramWithBalaji
      @ProgramWithBalaji  6 років тому

      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.

  • @karlazaldivar8845
    @karlazaldivar8845 6 років тому

    I have a doubt. Where should I put the code that performs the functions of the service?

  • @sulmedici
    @sulmedici 3 роки тому

    Did you host sample code you used here somewhere?

  • @svens3722
    @svens3722 3 роки тому

    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.

  • @snowmeltgaming
    @snowmeltgaming 6 років тому

    Good Video :)

  • @tnut3588
    @tnut3588 5 років тому

    Hi Balaji S. Can you make video about : how to get event logon || logout of user - windows service. Many thks to help

  • @simonetusino458
    @simonetusino458 5 років тому

    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!

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      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.

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      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 :)

    • @simonetusino458
      @simonetusino458 5 років тому

      Thanks, I have see where is instalutil.exe, so now I can try to install it! Thanks again!

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      @@simonetusino458 👍

  • @anandhu5082
    @anandhu5082 6 років тому +1

    Can i install and run the service from a form button click? Stop it etc?

    • @ken6753
      @ken6753 5 років тому

      I want to know too

  • @Thekavitkumar
    @Thekavitkumar 6 років тому

    Hello which version of windows are you using example : windows 10 version 1709 ?

  • @ProgramWithBalaji
    @ProgramWithBalaji  6 років тому

    What is the reason for 2 dislikes? Can I know the reason please? Give your valuable suggestions to me.

    • @AbhishekSingh-tt5xo
      @AbhishekSingh-tt5xo 5 років тому

      Bro this video is very helpful for me, please upload more videos like this.... thanks man

    • @rwestvang
      @rwestvang 5 років тому

      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

  • @m1ph
    @m1ph 5 років тому

    WHY ARE THERE SO MANY ADS!!!
    Edit: There’s 14 or more, I just counted

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Sorry for the inconvenience. It helps me to earn some money. I'll reduce the number of ads.

  • @t_e669
    @t_e669 3 роки тому

    The cmd part is not clear. does not show how the installation was done. (24:30). 👎👎👎👎👎

    • @ProgramWithBalaji
      @ProgramWithBalaji  3 роки тому

      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 :)

    • @GunMeat
      @GunMeat 2 роки тому

      @@ProgramWithBalaji Yes, it is not clear cause the screen has been clipped. The C# shows everything allright. Thanks!

    • @ProgramWithBalaji
      @ProgramWithBalaji  2 роки тому

      @@GunMeat Sorry, after an year, now only I understood what's the issue in that timeline. Happy to hear my C# video helped you