Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Can't acquire lock for uninstalling, when updating

Open Alonzzzo2 opened this issue 3 years ago • 2 comments

This just happened to me. Tried to uninstall but at the squirrel-uninstall log, I get 'Failed to grab lockfile'. Though it retries to grab the lock for a couple of times, it failed every time, cause during this time, my app was checking for update / downloading and installing an update.

I think the fix may be to kill the app before acquiring the lock, if that doesn't break anything.

WDYT?

Alonzzzo2 avatar Mar 10 '21 19:03 Alonzzzo2

Your app is most likely running while being uninstalled - tbh, I wouldn't worry about this, if a user uninstalls an app while it's running they kindaaaaa should expect things to Not Go Smoothly

anaisbetts avatar Mar 10 '21 19:03 anaisbetts

Thanks What if the kill-the-app code will run before trying to acquire the lock? Its a solution for this scenario, if it doesn't cause other issues

Alonzzzo2 avatar Mar 10 '21 20:03 Alonzzzo2