update-addon: use preevent
This commit is contained in:
@@ -15,7 +15,7 @@ namespace UpdateInstaller
|
|||||||
|
|
||||||
private void Installer_OnStep(object sender, UpdateInstallerStepEventArgs e)
|
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*/)
|
/*&& config.NewApplicationVersion is null && config.CurrentApplicationVersion is null*/)
|
||||||
{
|
{
|
||||||
Directory.Delete(Path.Combine(e.UpdateInstaller.Configuration.HostApplicationPath, @"Data\Importer Presets"), true);
|
Directory.Delete(Path.Combine(e.UpdateInstaller.Configuration.HostApplicationPath, @"Data\Importer Presets"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user