Ken
Ken

Reputation: 346

Error 1783 - instsrv.exe REMOVE from Win2k3

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?

Upvotes: 2

Views: 2067

Answers (2)

T00z
T00z

Reputation:

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.

Upvotes: 1

DmitryK
DmitryK

Reputation: 5582

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

Upvotes: 0

Related Questions