mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Warn about in-place downgrades
This commit is contained in:
parent
bac13eb507
commit
9a412ea17b
@ -220,8 +220,10 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
Locale.Set(Settings.Prop.Locale);
|
Locale.Set(Settings.Prop.Locale);
|
||||||
|
|
||||||
|
#if !DEBUG
|
||||||
if (!LaunchSettings.UninstallFlag.Active)
|
if (!LaunchSettings.UninstallFlag.Active)
|
||||||
Installer.HandleUpgrade();
|
Installer.HandleUpgrade();
|
||||||
|
#endif
|
||||||
|
|
||||||
LaunchHandler.ProcessLaunchArgs();
|
LaunchHandler.ProcessLaunchArgs();
|
||||||
}
|
}
|
||||||
|
@ -340,6 +340,18 @@ namespace Bloxstrap
|
|||||||
if (MD5Hash.FromFile(Paths.Process) == MD5Hash.FromFile(Paths.Application))
|
if (MD5Hash.FromFile(Paths.Process) == MD5Hash.FromFile(Paths.Application))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (currentVer is not null && existingVer is not null && Utilities.CompareVersions(currentVer, existingVer) == VersionComparison.LessThan)
|
||||||
|
{
|
||||||
|
var result = Frontend.ShowMessageBox(
|
||||||
|
Strings.InstallChecker_VersionLessThanInstalled,
|
||||||
|
MessageBoxImage.Question,
|
||||||
|
MessageBoxButton.YesNo
|
||||||
|
);
|
||||||
|
|
||||||
|
if (result != MessageBoxResult.Yes)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// silently upgrade version if the command line flag is set or if we're launching from an auto update
|
// silently upgrade version if the command line flag is set or if we're launching from an auto update
|
||||||
if (!App.LaunchSettings.UpgradeFlag.Active && !isAutoUpgrade)
|
if (!App.LaunchSettings.UpgradeFlag.Active && !isAutoUpgrade)
|
||||||
{
|
{
|
||||||
@ -466,6 +478,9 @@ namespace Bloxstrap
|
|||||||
App.FastFlags.Save();
|
App.FastFlags.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentVer is null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (isAutoUpgrade)
|
if (isAutoUpgrade)
|
||||||
{
|
{
|
||||||
Utilities.ShellExecute($"https://github.com/{App.ProjectRepository}/wiki/Release-notes-for-Bloxstrap-v{currentVer}");
|
Utilities.ShellExecute($"https://github.com/{App.ProjectRepository}/wiki/Release-notes-for-Bloxstrap-v{currentVer}");
|
||||||
|
11
Bloxstrap/Resources/Strings.Designer.cs
generated
11
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -1276,6 +1276,17 @@ namespace Bloxstrap.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to The version of Bloxstrap you've launched is older than the version you currently have installed.
|
||||||
|
///Issues may occur and your settings may be altered. A reinstall is recommended.
|
||||||
|
///Are you sure you want to continue?.
|
||||||
|
/// </summary>
|
||||||
|
public static string InstallChecker_VersionLessThanInstalled {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("InstallChecker.VersionLessThanInstalled", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Will drop you into the desktop app once everything's done.
|
/// Looks up a localized string similar to Will drop you into the desktop app once everything's done.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1142,4 +1142,9 @@ If not, then please report this exception to the maintainers of this fork. Do NO
|
|||||||
<data name="Menu.UnsavedChanges" xml:space="preserve">
|
<data name="Menu.UnsavedChanges" xml:space="preserve">
|
||||||
<value>You have unsaved changes. Are you sure you want to close without saving?</value>
|
<value>You have unsaved changes. Are you sure you want to close without saving?</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="InstallChecker.VersionLessThanInstalled" xml:space="preserve">
|
||||||
|
<value>The version of Bloxstrap you've launched is older than the version you currently have installed.
|
||||||
|
Issues may occur and your settings may be altered. A reinstall is recommended.
|
||||||
|
Are you sure you want to continue?</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user