mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-17 02:31:28 -07:00
Fix a few remaining things
This commit is contained in:
parent
7a0f50bd81
commit
ff387cfc59
@ -162,11 +162,12 @@ namespace Bloxstrap
|
||||
const string LOG_IDENT = "Installer::DoUninstall";
|
||||
|
||||
var processes = new List<Process>();
|
||||
processes.AddRange(Process.GetProcessesByName(App.RobloxPlayerAppName));
|
||||
|
||||
if (!String.IsNullOrEmpty(App.State.Prop.Player.VersionGuid))
|
||||
processes.AddRange(Process.GetProcessesByName(App.RobloxPlayerAppName));
|
||||
|
||||
#if STUDIO_FEATURES
|
||||
processes.AddRange(Process.GetProcessesByName(App.RobloxStudioAppName));
|
||||
#endif
|
||||
if (!String.IsNullOrEmpty(App.State.Prop.Studio.VersionGuid))
|
||||
processes.AddRange(Process.GetProcessesByName(App.RobloxStudioAppName));
|
||||
|
||||
// prompt to shutdown roblox if its currently running
|
||||
if (processes.Any())
|
||||
@ -179,7 +180,10 @@ namespace Bloxstrap
|
||||
);
|
||||
|
||||
if (result != MessageBoxResult.OK)
|
||||
{
|
||||
App.Terminate(ErrorCode.ERROR_CANCELLED);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -1,6 +1,5 @@
|
||||
using System.Windows;
|
||||
|
||||
using Microsoft.Win32;
|
||||
using Windows.Win32;
|
||||
using Windows.Win32.Foundation;
|
||||
|
||||
@ -43,6 +42,8 @@ namespace Bloxstrap
|
||||
LaunchRoblox();
|
||||
else if (!App.LaunchSettings.QuietFlag.Active)
|
||||
LaunchMenu();
|
||||
else
|
||||
App.Terminate();
|
||||
}
|
||||
|
||||
public static void LaunchInstaller()
|
||||
@ -52,6 +53,7 @@ namespace Bloxstrap
|
||||
if (!interlock.IsAcquired)
|
||||
{
|
||||
Frontend.ShowMessageBox(Strings.Dialog_AlreadyRunning_Installer, MessageBoxImage.Stop);
|
||||
App.Terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -96,6 +98,7 @@ namespace Bloxstrap
|
||||
if (!interlock.IsAcquired)
|
||||
{
|
||||
Frontend.ShowMessageBox(Strings.Dialog_AlreadyRunning_Uninstaller, MessageBoxImage.Stop);
|
||||
App.Terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -116,7 +119,10 @@ namespace Bloxstrap
|
||||
}
|
||||
|
||||
if (!confirmed)
|
||||
{
|
||||
App.Terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
Installer.DoUninstall(keepData);
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image x:Name="IconImage" Grid.Column="0" Width="32" Height="32" Margin="0,0,15,0" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Source="pack://application:,,,/Resources/MessageBox/Error.png" />
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock x:Name="TitleTextBlock" Text="? is unable to connect to ?" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<TextBlock x:Name="TitleTextBlock" Text="? is unable to connect to ?" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" TextWrapping="Wrap" />
|
||||
<controls:MarkdownTextBlock x:Name="DescriptionTextBlock" MarkdownText="?" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<TextBlock Text="{x:Static resources:Strings.Dialog_Connectivity_MoreInfo}" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<RichTextBox x:Name="ErrorRichTextBox" Padding="8" Margin="0,8,0,0" Block.LineHeight="2" FontFamily="Courier New" IsReadOnly="True" />
|
||||
|
@ -33,7 +33,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" Width="32" Height="32" Margin="0,0,15,0" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Source="pack://application:,,,/Resources/MessageBox/Error.png" />
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Text="{x:Static resources:Strings.Dialog_Exception_Info_1}" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<TextBlock Text="{x:Static resources:Strings.Dialog_Exception_Info_1}" FontSize="18" Foreground="{DynamicResource TextFillColorPrimaryBrush}" TextWrapping="Wrap" />
|
||||
<RichTextBox x:Name="ErrorRichTextBox" Padding="8" Margin="0,16,0,0" Block.LineHeight="2" FontFamily="Courier New" IsReadOnly="True" />
|
||||
<controls:MarkdownTextBlock x:Name="HelpMessageMDTextBlock" Margin="0,16,0,0" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
</StackPanel>
|
||||
|
Loading…
Reference in New Issue
Block a user