Who knows a simple solution how to install or uninstall a Windows service remotely on a Win2k8R2 server?
This server is a hosted at the internet, so it's not in a domain or such. Thus I want to avoid the use of windows file sharing or administration services.
I would prefer a possibility where I can trigger the execution of a server-side script which installs already uploaded service-binaries.
You're welcome to name any tools or .NET code solutions if you know how to accomplish that.
Edit: Sorry, I have to clarify a bit, it's not as easy as using powershell or scripting with InstallUtil in my case. I'll try it with bullet points:
- I want to install a service unattendedly by invoking the service installation on a server, running on the internet, from a client.
- I don't have a GUI from the server while invoking the service install. For example, I trigger a setup.exe, which installs the services itself via SSH (self-installing service to make use of custom service names). Not having a GUI seems to be a problem(?).
I even tried desperately to invoke the service setup program via a php web service (shell_exec), but the result is always the same: Setup is executed, but no services are installed.
To the client it should be as easy as possible to invoke the service installation on the server, without seeing anything of it. It's for a periodic and automated deployment of some service-based applications we create.