Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squirrel doesn't clean up previous app version, I want to only keep the app-1.0.2 #1763

Open
cioman opened this issue Nov 12, 2021 · 4 comments

Comments

@cioman
Copy link

cioman commented Nov 12, 2021

how to clean up the previous version and only keep the last version
image

@cioman cioman changed the title Squirrel doesn't clean up previous app version Squirrel doesn't clean up previous app version, I want to only keep the app-1.0.2 Nov 12, 2021
@ksrivastava20
Copy link

I am also seeing something similar where squirrel is not cleaning up previous versions. I want to keep 2 versions at a time.

@caesay
Copy link

caesay commented May 6, 2022

Squirrel keeps the current version, and one previous version. It will clean up versions during every update.

The reason app-1.0.0 remains is probably because there was a running process in that directory, or the app directory is otherwise locked during the update, so it was skipped by Squirrel - but clean up will get attempted again the next time you update.

If you check that there are no additional running processes, then perform an update, your old versions should get cleaned up. If this is not the case, please provide Squirrel logs which will include details about the version directory clean up, and any reasons why a folder was not deleted.

@ksrivastava20
Copy link

Thanks @caesay. I found that squirrel is cleaning up old version but since my app- folder contains few .exe's so its just not deleting those .exe's and .dead files. Rest of the files and folders inside app- are cleaned up.

@anaisbetts
Copy link
Contributor

@ksrivastava20 Unfortunately because Squirrel does not have access to MoveFile's "Delete on next reboot" feature (because that requires UAC elevation), we cannot delete these files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants