Skip to content

Commit

Permalink
Try to stop YAMDCC service first before uninstalling it
Browse files Browse the repository at this point in the history
Normally this wouldn't make a difference on my system, but I'm trying it anyway to exhaust options
  • Loading branch information
Sparronator9999 committed Sep 7, 2024
1 parent 253b74c commit ef790ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions YAMDCC.GUI/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,13 @@ private void tsiUninstall_Click(object sender, EventArgs e)

IPCClient.Stop();
Close();

if (!Utils.StopService("yamdccsvc"))
{
MessageBox.Show("Failed to stop the YAMDCC service!",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

if (Utils.UninstallService("yamdccsvc"))
{
// Only delete service data if the
Expand Down

0 comments on commit ef790ec

Please sign in to comment.