I'm just using this thread to store C++ common language runtime snippets as I find them.
Windows service - add installer - right-click design view, Add Installer, serviceProcessInstaller1 and choose service user in properties
- to use, type [servicename] -Install
Windows service - add uninstall - edit *WinService.cpp
- in _tmain after if (_tcsicmp(argv[1], _T("-Install")) == 0) codeblock add
- to use, type [servicename] -Uninstall