How to Install the Service:
1. Go to Command Prompt and run as administrator option
2. type Command 'C:\Windows\Microsoft.NET\Framework\v4.0.30319' as by default installutil.exe is stored at this path.
3. Now Copy the fullpath where compiled service is stored (e.g. my system's local path is D:/TestService/TestService.exe)
4. Run the following command:
installutil.exe /i D:/TestService/TestService.exe
5. By doing the 4th step, your service will be installed.
6. Now, Go to Run -> type 'services.msc' to open the running window services.
7. Search for TestService installed, start the service
How uninstall the window service:
1. Repeat the above steps 1 to 3
2. Run the following command:
installutil.exe /u D:/TestService/TestService.exe
Please reply / comment if miss anything above.
1. Go to Command Prompt and run as administrator option
2. type Command 'C:\Windows\Microsoft.NET\Framework\v4.0.30319' as by default installutil.exe is stored at this path.
3. Now Copy the fullpath where compiled service is stored (e.g. my system's local path is D:/TestService/TestService.exe)
4. Run the following command:
installutil.exe /i D:/TestService/TestService.exe
5. By doing the 4th step, your service will be installed.
6. Now, Go to Run -> type 'services.msc' to open the running window services.
7. Search for TestService installed, start the service
How uninstall the window service:
1. Repeat the above steps 1 to 3
2. Run the following command:
installutil.exe /u D:/TestService/TestService.exe
Please reply / comment if miss anything above.
No comments:
Post a Comment