- Pull up a command window
- Start bar, type cmd and click cmd.exe.
- Change directory to the correct Microsoft.net framework: For me the directory was at:
- cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
- Execute installutil
- C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil C:\(location of the service)\Myservice\Bin\Myservice.exe
- Start the service
- Open the Window Services list
- Open a run box.
- Type services.msc and press return.
- Right Click the service and select Start.
When making changes to the Service, make sure to uninstall the service before re-installing it.
- Stop the service
- Open the Window Services list
- Open a run box.
- Type services.msc and press return.
- Right Click the service and select Stop.
- Close the Window Services list
- Pull up a command window
- Start bar, type cmd and click cmd.exe.
- Change directory to the correct Microsoft.net framework: For me the directory was at:
- cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
- Execute installutil with /U Parameter
- C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil /U C:\(location of the service)\Myservice\Bin\Myservice.exe
Thanks to Jayesh Jain for the great article on Creating a Windows Service in VB.NET
No comments:
Post a Comment