Move uninstaller registry operation to onInitialInstall

This commit is contained in:
Dean Herbert 2022-03-03 03:54:39 +09:00
parent 3aa2d4548a
commit b286122413

View File

@ -116,6 +116,7 @@ namespace osu.Desktop
SquirrelAwareApp.HandleEvents(onInitialInstall: (version, tools) =>
{
tools.CreateShortcutForThisExe();
tools.CreateUninstallerRegistryEntry();
}, onAppUninstall: (version, tools) =>
{
tools.RemoveShortcutForThisExe();
@ -123,9 +124,6 @@ namespace osu.Desktop
}, onEveryRun: (version, tools, firstRun) =>
{
tools.SetProcessAppUserModelId();
if (firstRun)
tools.CreateUninstallerRegistryEntry();
});
}