Remove Administrator check

This commit is contained in:
pizzaboxer 2024-06-14 23:52:06 +01:00
parent 5fdfc901c4
commit cf6b95e695
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
4 changed files with 5 additions and 24 deletions

View File

@ -153,14 +153,6 @@ namespace Bloxstrap
// REMOVE WHEN LARGER REFACTORING IS DONE // REMOVE WHEN LARGER REFACTORING IS DONE
await RobloxDeployment.InitializeConnectivity(); await RobloxDeployment.InitializeConnectivity();
// disallow running as administrator except for uninstallation
if (Utilities.IsAdministrator && !LaunchSettings.IsUninstall)
{
Frontend.ShowMessageBox(Bloxstrap.Resources.Strings.Bootstrapper_RanInAdminMode, MessageBoxImage.Error);
Terminate(ErrorCode.ERROR_INVALID_FUNCTION);
return;
}
if (LaunchSettings.IsUninstall && IsFirstRun) if (LaunchSettings.IsUninstall && IsFirstRun)
{ {
Frontend.ShowMessageBox(Bloxstrap.Resources.Strings.Bootstrapper_FirstRunUninstall, MessageBoxImage.Error); Frontend.ShowMessageBox(Bloxstrap.Resources.Strings.Bootstrapper_FirstRunUninstall, MessageBoxImage.Error);

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
@ -7,10 +7,11 @@
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<UseWindowsForms>True</UseWindowsForms> <UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon> <ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
<Version>2.6.0</Version> <Version>2.6.1</Version>
<FileVersion>2.6.0.0</FileVersion> <FileVersion>2.6.1.0</FileVersion>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -152,15 +152,6 @@ namespace Bloxstrap.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Bloxstrap does not support running in administrator mode. Relaunch or reinstall Bloxstrap with lower privileges..
/// </summary>
public static string Bootstrapper_RanInAdminMode {
get {
return ResourceManager.GetString("Bootstrapper.RanInAdminMode", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Applying Roblox modifications.... /// Looks up a localized string similar to Applying Roblox modifications....
/// </summary> /// </summary>

View File

@ -149,9 +149,6 @@ Your ReShade configuration files will still be saved, and you can locate them by
<data name="Bootstrapper.NotEnoughSpace" xml:space="preserve"> <data name="Bootstrapper.NotEnoughSpace" xml:space="preserve">
<value>Bloxstrap does not have enough disk space to download and install Roblox. Please free up some disk space and try again.</value> <value>Bloxstrap does not have enough disk space to download and install Roblox. Please free up some disk space and try again.</value>
</data> </data>
<data name="Bootstrapper.RanInAdminMode" xml:space="preserve">
<value>Bloxstrap does not support running in administrator mode. Relaunch or reinstall Bloxstrap with lower privileges.</value>
</data>
<data name="Bootstrapper.Status.ApplyingModifications" xml:space="preserve"> <data name="Bootstrapper.Status.ApplyingModifications" xml:space="preserve">
<value>Applying Roblox modifications...</value> <value>Applying Roblox modifications...</value>
</data> </data>