diff --git a/TGInstallerWrapper/Main.cs b/TGInstallerWrapper/Main.cs index b497c0b6cc..1c6b6cea85 100644 --- a/TGInstallerWrapper/Main.cs +++ b/TGInstallerWrapper/Main.cs @@ -18,7 +18,7 @@ namespace TGInstallerWrapper const string InterfaceDLL = "TGServiceInterface.dll"; const string InterfaceNamespace = "TGServiceInterface"; const string InterfaceComponentsNamespace = InterfaceNamespace + ".Components"; - const string InterfaceClass = InterfaceNamespace + ".Server"; + const string InterfaceClass = InterfaceNamespace + ".Interface"; const string InterfaceServiceInterface = InterfaceComponentsNamespace + ".ITGSService"; //fuck this typo const string InterfaceClassVerifyConnection = "VerifyConnection"; const string InterfaceClassGetComponent = "GetComponent"; @@ -95,6 +95,8 @@ namespace TGInstallerWrapper try { VersionLabel.Text = (string)Version.Invoke(GetComponentITGSService.Invoke(null, null), null); + if (VersionLabel.Text.Contains("v3.0")) //OH GOD!!!! + MessageBox.Show("Warning! 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!"); } catch { diff --git a/TGServiceInterface/Interface.cs b/TGServiceInterface/Interface.cs index 21a196edba..7cbbd1f090 100644 --- a/TGServiceInterface/Interface.cs +++ b/TGServiceInterface/Interface.cs @@ -141,7 +141,7 @@ namespace TGServiceInterface var splits = Interface.GetComponent().Version().Split(' '); var theirs = new Version(splits[splits.Length - 1].Substring(1)); var ours = new Version(FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion); - if(theirs != ours) + if(theirs.Major != ours.Major || theirs.Minor != ours.Minor || theirs.Revision != ours.Revision) //don't care about the patch level { errorMessage = String.Format("Version mismatch between interface version ({0}) and service version ({1}). Some functionality may crash this program.", ours, theirs); return true;