Install associations as part of initial squirrel install

This commit is contained in:
Susko3 2024-02-07 21:56:39 +01:00
parent eeba937686
commit f9d257b99e
2 changed files with 1 additions and 3 deletions

View File

@ -137,9 +137,6 @@ protected override void LoadComplete()
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows)
LoadComponentAsync(new GameplayWinKeyBlocker(), Add);
if (OperatingSystem.IsWindows() && IsDeployedBuild)
LoadComponentAsync(new WindowsAssociationManager(), Add);
LoadComponentAsync(new ElevatedPrivilegesChecker(), Add);
osuSchemeLinkIPCChannel = new OsuSchemeLinkIPCChannel(Host, this);

View File

@ -174,6 +174,7 @@ private static void setupSquirrel()
{
tools.CreateShortcutForThisExe();
tools.CreateUninstallerRegistryEntry();
WindowsAssociationManager.InstallAssociations(null);
}, onAppUpdate: (_, tools) =>
{
tools.CreateUninstallerRegistryEntry();