G
Guest
I have a VS Setup project for a C# Windows Service. In the Control Panel's
"Add/Remove Programs" applet, my service appears with a change button, which
when clicked gives an option to repair the install. If I do that, I get an
error message saying "The specified service already exists" and the install
fails. It seems like the repair install ought to be more forgiving. If
someone is repairing an install, stuff could be in some random state of
chaos, but if the service is fine, the repair will fail.
Similarly, I've noticed that if the uninstall successfully removes the
service but fails in some later step, rerunning the uninstall also won't
work. This time the uninstall is unhappy because you're trying to remove a
service that doesn't exist and the process fails again.
Is there some way for these scenarios to work in a more robust way?
"Add/Remove Programs" applet, my service appears with a change button, which
when clicked gives an option to repair the install. If I do that, I get an
error message saying "The specified service already exists" and the install
fails. It seems like the repair install ought to be more forgiving. If
someone is repairing an install, stuff could be in some random state of
chaos, but if the service is fine, the repair will fail.
Similarly, I've noticed that if the uninstall successfully removes the
service but fails in some later step, rerunning the uninstall also won't
work. This time the uninstall is unhappy because you're trying to remove a
service that doesn't exist and the process fails again.
Is there some way for these scenarios to work in a more robust way?