Archive: nsSCM - error installing service


nsSCM - error installing service
Hi,

I am getting an error when trying to install a new Windows service using the NSIS plugin nsSCM.

nsSCM::Install returns an error code of '6', which I believe is ERROR_INVALID_HANDLE (but I could be wrong).

The interesting thing is that this error is only occuring on 1 of our test environments. It has worked successfully in a number of other environments.

Offending System: Windows 2000, SP4

There is nothing in the Event Log, and I am getting no other error message.

Has anybody seen an error like this previously?
What else could I check?

Any help would be greatly appreciated.

Thanks

David Grinberg


Do you have any other Windows 2000 machines in your pool? Maybe it's an incompatibility with it.


Good point!!

I have tried it on a completely brand new Windows 2000 VM. I got the same error.

It would seem to me that the plugin nsSCM is not compatible with Windows 2000.


Are there any other methods for installing a Windows Service??


There's a FAQ item with a list of them:

http://nsis.sourceforge.net/How_do_I...heck_a_service


Just a quick update...

After kichik's prompting, I updated my installer to use the SimpleSC plugin and have not had an issues since.


Thanks kichik!!