diff --git a/src/Squirrel/UpdateManager.ApplyReleases.cs b/src/Squirrel/UpdateManager.ApplyReleases.cs index f37469a39..7ea8b138f 100644 --- a/src/Squirrel/UpdateManager.ApplyReleases.cs +++ b/src/Squirrel/UpdateManager.ApplyReleases.cs @@ -558,6 +558,11 @@ await squirrelApps.ForEachAsync(async exe => { }); } + // Include dead folders in folders to :fire: + toCleanup = di.GetDirectories() + .Where(x => x.Name.ToLowerInvariant().Contains("app-")) + .Where(x => x.Name != currentVersionFolder && x.Name != originalVersionFolder); + // Finally, clean up the app-X.Y.Z directories await toCleanup.ForEachAsync(async x => { try {