update-addon: use preevent

This commit is contained in:
2023-11-21 09:22:25 +01:00
parent 0d87c8f43b
commit c183f1e915

View File

@@ -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);