Fixes installer crash [TGSDeploy]

This commit is contained in:
Jordan Brown
2017-11-07 15:27:25 -05:00
committed by GitHub
parent 5fa47a291e
commit 3a517fd4f2
+2 -2
View File
@@ -73,7 +73,7 @@ namespace TGInstallerWrapper
var verifiedConnection = Interface.ConnectionStatus().HasFlag(ConnectivityLevel.Administrator);
try
{
VersionLabel.Text = Interface.GetComponent<ITGSService>().Version();
VersionLabel.Text = Interface.GetService().Version();
var isV0 = VersionLabel.Text.Contains("v3.0");
if (isV0) //OH GOD!!!!
MessageBox.Show("Upgrading from version 3.0 may trigger a bug that can delete /config and /data. IT IS STRONGLY RECCOMMENDED THAT YOU BACKUP THESE FOLDERS BEFORE UPDATING!", "Warning");
@@ -98,7 +98,7 @@ namespace TGInstallerWrapper
var connectionVerified = Interface.ConnectionStatus().HasFlag(ConnectivityLevel.Administrator);
try
{
Interface.GetComponent<ITGSService>().PrepareForUpdate();
Interface.GetService().PrepareForUpdate();
Thread.Sleep(3000); //chat messages
return true;
}