Skip to content

Commit

Permalink
Remove .NET installation functionality and update project
Browse files Browse the repository at this point in the history
Removed the `-installDotNetAdmin` command line case and the
`InstallDotNet` method from the application. Deleted the
`DotNetInstallerWindow` and its associated logic. Updated the
project version to `0.9.012` and the target framework to
`net8.0-windows10.0.22000.0`. Updated the `LibreHardwareMonitorLib`
package reference to `0.9.4-pre335`. Removed the `OpenNETInstaller`
button and its event handler from the main window.
  • Loading branch information
BoiHanny committed Aug 25, 2024
1 parent 3e002b5 commit 5bc35ca
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 774 deletions.
5 changes: 0 additions & 5 deletions vrcosc-magicchatbox/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ protected override async void OnStartup(StartupEventArgs e)
loadingWindow.UpdateProgress("Rolling back and clearing the slate. Fresh start!", 50);
await Task.Run(() => updater.ClearBackUp());
break;
case "-installDotNetAdmin":
loadingWindow.UpdateProgress(".NET installation, coming right up!", 90);
updater.InstallDotNet();
return;
default:
loadingWindow.Hide();
Logging.WriteException(new Exception($"Invalid command line argument '{e.Args[0]}'"), MSGBox: true, exitapp: true);
Expand All @@ -82,7 +78,6 @@ protected override async void OnStartup(StartupEventArgs e)
loadingWindow.UpdateProgress("Rolling out the red carpet... Here comes the UI!", 100);
loadingWindow.Close();

updater.InstallDotNet();
}


Expand Down
8 changes: 0 additions & 8 deletions vrcosc-magicchatbox/Classes/DataAndSecurity/UpdateApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,7 @@ private void CopyDirectory(DirectoryInfo source, DirectoryInfo target)
}
}

public void InstallDotNet()
{
Thread.Sleep(500);
var installerWindow = new DotNetInstallerWindow();
installerWindow.Show();
}



private async Task DownloadAndExtractUpdate(string zipPath)
{
using (WebClient webClient = new WebClient())
Expand Down
6 changes: 3 additions & 3 deletions vrcosc-magicchatbox/MagicChatbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<Version>0.9.010</Version>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<Version>0.9.012</Version>
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
<RootNamespace>vrcosc_magicchatbox</RootNamespace>
<Nullable>enable</Nullable>
<UseWPF>True</UseWPF>
Expand Down Expand Up @@ -190,7 +190,7 @@
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="Dubya.WindowsMediaController" Version="2.5.5" />
<PackageReference Include="LibreHardwareMonitorLib" Version="0.9.4-pre329" />
<PackageReference Include="LibreHardwareMonitorLib" Version="0.9.4-pre335" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.122" />
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
32 changes: 0 additions & 32 deletions vrcosc-magicchatbox/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5049,38 +5049,6 @@
</CheckBox.Effect>
</CheckBox>

<Button
x:Name="OpenNETInstaller"
Width="auto"
Height="30"
Margin="0,0,0,5"
Padding="5"
HorizontalAlignment="Left"
Click="OpenNETInstaller_Click"
Opacity="0.7"
Style="{StaticResource UpdatedGreenButtonStyle}"
Visibility="{Binding RollBackUpdateAvailable, Converter={StaticResource InverseBoolToHiddenConverter}}">
<Button.ContentTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image
Height="18"
Margin="0,0,4,0"
RenderOptions.BitmapScalingMode="HighQuality"
Source="/Img/Icons/DOTNET.png" />
<TextBlock
x:Name="RollBackVersion"
Margin="0,-2,5,0"
VerticalAlignment="Center"
FontSize="15"
Text="Open .NET 8 install helper" />


</StackPanel>
</DataTemplate>
</Button.ContentTemplate>
</Button>

<Button
x:Name="Rollback"
Width="auto"
Expand Down
6 changes: 0 additions & 6 deletions vrcosc-magicchatbox/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1682,12 +1682,6 @@ private void MainDiscoundButton_grid_MouseUp(object sender, MouseButtonEventArgs
{
ViewModel.Instance.ActivateSetting("Settings_HeartRate");
}

private void OpenNETInstaller_Click(object sender, RoutedEventArgs e)
{
UpdateApp updater = new UpdateApp();
updater.InstallDotNet();
}
}


Expand Down
Loading

0 comments on commit 5bc35ca

Please sign in to comment.