Hi Everyone,

First trip to the forums and I hope this is an educated enough post.

I've written a service in C++ that performs some functions I need for my office. Right now, I'm manually issuing SC commands like:

sc MyService binpath= c:\Whatever\whatever.exe

To install the service, then I head up to services.msc and then set the service to start. After that, it works fine. But now, I have a question that I can't seem to get my head around:

How can I have the service install itself by someone just "double-clicking" it without using any other utility than basic code (no .NET, no ATL, no nothing but pure C++)?

Anyone that helps out will receive great praise and thanks from me.