Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Service question

Hi
2 service begginer questions :

1) when i want to uninstall and the reinstall service i"m doing the following steps
Myservice.exe / uninstall

the service manager show that the service status is : disabled

How can i delete the service since when i try to re-install it by : Myservice.exe /install i receive error :"system error: code 1072 the specified service has been mark for deletion "


2) when i try to run the service i receive the error :

can not run the service on locale machine - why ?


0
asi
Asked:
asi
  • 2
1 Solution
 
kretzschmarCommented:
guessing you must restart your machine before reinstalling
0
 
pedeCommented:
I would also like to know the answer to this problem. As kretzschmar said you have to reboot when this happens (service marked for deletion), but the real question is: how can we make sure the service is uninstalled, instead of just marked for deletion?

In my experience service manager must not be opened when uninstalling, as it may lock the service somehow. Maybe this is a Delphi issue, since I've only seen it happen with Delphi services, but I dont know. Anyway, I dont recall it happening when service manager is *not* open, so closing it before /uninstall could solve it. But thats just my experiences, I dont have any facts.

/Pede
0
 
kretzschmarCommented:
usual the service-app cannot removed by the os,
because there is already an instance in memory.

therefore there is done an entry into the registry, i guess, not shure yet,
which remembers the os that this files are to be removed
on next startup, before any other files are executed

meikl ;-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now