code to install and uninstall agent as windows service