M
Marcel Brekelmans
Hi,
I was wondering if it's possible to install/uninstall a service from code
without using the InstalUtil.exe tool with the /i and /u flags. As far as I
can Google everyone is doing it that way and MicroSoft also mentions this.
There's something like the ServiceBase class from which you ought to derive
your own class. This has a Uninstall() and a Install() method, but I'm not
getting access to these methods. MicroSoft says that this class is not
intended to be used directly, it's there for the InstalUtil.exe utility.
Stopping and starting a service is easy. I use the ServiceController class
for this.
Any suggestions?
Thanks!
I was wondering if it's possible to install/uninstall a service from code
without using the InstalUtil.exe tool with the /i and /u flags. As far as I
can Google everyone is doing it that way and MicroSoft also mentions this.
There's something like the ServiceBase class from which you ought to derive
your own class. This has a Uninstall() and a Install() method, but I'm not
getting access to these methods. MicroSoft says that this class is not
intended to be used directly, it's there for the InstalUtil.exe utility.
Stopping and starting a service is easy. I use the ServiceController class
for this.
Any suggestions?
Thanks!
