Skip to content

Commit

Permalink
MP1-5185: DeployTool: Fix TvServer/TvClient uninstall order
Browse files Browse the repository at this point in the history
  • Loading branch information
epbk committed Dec 8, 2023
1 parent 813645e commit 4203414
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,16 @@ public CheckResult CheckStatus()
if (InstallationProperties.Instance["InstallType"] == "download_only")
{
result.state = result.needsDownload == false ? CheckState.DOWNLOADED : CheckState.NOT_DOWNLOADED;
return result;
}

CheckResult already = Utils.CheckNSISUninstallString("MediaPortal TV Server", "MementoSection_SecServer");
if (already.state != CheckState.NOT_INSTALLED)
else if (result.state != CheckState.VERSION_MISMATCH)
{
result.state = CheckState.INSTALLED;
//If the TvServer uninstall is not going to be executed, then check if the client is installed. If yes, then force to uninstall TvSever first.
//Otherwise the client will unistall the new TvServer installation.
CheckResult resultClient = Utils.CheckNSISUninstallString("MediaPortal TV Server", "MementoSection_SecClient");
if (resultClient.state == CheckState.VERSION_MISMATCH)
{
result.state = CheckState.VERSION_MISMATCH;
}
}

return result;
Expand Down

0 comments on commit 4203414

Please sign in to comment.