I think the auto updater is finished! #29

This commit is contained in:
tidusjar 2016-05-20 13:51:25 +01:00
parent 0601f04582
commit aa2949cdd0
4 changed files with 56 additions and 6 deletions

View file

@ -192,7 +192,11 @@ namespace PlexRequests.Updater
private void FinishUpdate()
{
var startInfo = new ProcessStartInfo("PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" };
ProcessStartInfo startInfo;
startInfo = Type.GetType("Mono.Runtime") != null
? new ProcessStartInfo("mono PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" }
: new ProcessStartInfo("PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" };
Process.Start(startInfo);
Environment.Exit(0);