Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.23k stars 1.02k forks source link

Directory not found exception during clean dead versions #1883

Open KarlNylander opened 1 week ago

KarlNylander commented 1 week ago

Squirrel version(s) Which version(s) of the project are you using?

Description We occasionally get a System.IO.DirectoryNotFoundException during cleaning of dead versions. This only happens rarely (in our case about 12 times since the end of 2021 from what I can find).

warn: ApplyReleasesImpl: Failed to clean dead versions, continuing anyways: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\admin\AppData\Local\Project\packages\RELEASES'.

Not sure if this is an issue that you're already aware of or not since it seems to happen so rarely.

Steps to recreate We have not been able to reproduce this issue since it happens so rarely.

Expected behavior It should clean the dead versions since the path is correct.

Actual behavior It seems that the path can't be found which result in an error and crash.

Additional information The longest gap we went without it was about 1 year, but this year it has happened almost once a month so it doesn't seem to be consistent.