Error 1783 - instsrv.exe REMOVE from Win2k3

1.9k Views Asked by At

My applications installer offers the user the ability to run the application as a service through use of the srvany.exe application. To remove the application on uninstall, I've been using the application instsrv.exe with the following command:

instsrv "myservice" REMOVE

On Windows Server 2003, I encounter error 1783.

Any ideas on what is causing this problem? Am I using the wrong approach for Win2k3?

2

There are 2 best solutions below

0
AudioBubble On

I tried the same with Rk-Tools 2003 and 2000 and I get the same error both times. But after removing the registry-parameters manually after the next reboot the services (I tried out several constellations) were gone. Please think about stopping the service before(!) you're gonna delete the registry-entries, because otherwise the service will not accept any further commands. Maybe this will help you.

0
DmitryK On

First of all - references to instsrv.c is just an error message (it tells you where the error has actually happened in the source code). I think (but I am not sure) that this 1783 error occurs when it tries to enumerate services but hits an overflow error (too many services installed?)

A better approach would be to use sc.exe:

SC STOP servicename
SC DELETE servicename