From c183f1e9156e688eacf6135daee3f0fc4e7487ae Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Tue, 21 Nov 2023 09:22:25 +0100 Subject: [PATCH] update-addon: use preevent --- SM64RomManager.UpdateInstallerAddOn/AddOn.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SM64RomManager.UpdateInstallerAddOn/AddOn.cs b/SM64RomManager.UpdateInstallerAddOn/AddOn.cs index 0cd483e..d884221 100644 --- a/SM64RomManager.UpdateInstallerAddOn/AddOn.cs +++ b/SM64RomManager.UpdateInstallerAddOn/AddOn.cs @@ -15,7 +15,7 @@ namespace UpdateInstaller private void Installer_OnStep(object sender, UpdateInstallerStepEventArgs e) { - if (e.Step == UpdateInstallerStep.CopyFiles && e.State == UpdateInstallerStepState.PostEvent + if (e.Step == UpdateInstallerStep.CopyFiles && e.State == UpdateInstallerStepState.PreEvent /*&& config.NewApplicationVersion is null && config.CurrentApplicationVersion is null*/) { Directory.Delete(Path.Combine(e.UpdateInstaller.Configuration.HostApplicationPath, @"Data\Importer Presets"), true);