There is still a possible problem that if Squirrel crashes while staging updates, a restarted squirrel might think it's a valid update and try to update to it.
We could create a squirrel.incomplete file in that directory, and delete it after the update has been fully staged. That way, future restarted squirrel will ignore any folder with this file in it and not update to a broken install dir.
I've also planned to include a file manifest in the squirrel package nuspec, so an alternative solution could be to verify the directory against the manifest before completing the update.
I have exactly this issue when dealing with a full disk. Staging crashes due to no space and then it updates to the folder with half of the files missing. Has work on this already started?
There is still a possible problem that if Squirrel crashes while staging updates, a restarted squirrel might think it's a valid update and try to update to it.
We could create a
squirrel.incomplete
file in that directory, and delete it after the update has been fully staged. That way, future restarted squirrel will ignore any folder with this file in it and not update to a broken install dir.I've also planned to include a file manifest in the squirrel package nuspec, so an alternative solution could be to verify the directory against the manifest before completing the update.