-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Initial Install event is not sent until AFTER attempt to delete RootAppDirectory #498
Comments
This is by design, we remove any old installs before reinstalling |
I understand, but we use Squirrel to install program running minimized in the system tray. Unfortunately, sometimes they run the Setup program twice. This happens very frequently. Surely there should be a way to avoid an ugly message when that happens. Such as an Event that everything will be deleted – before deletion starts. From: Paul Betts [mailto:[email protected]] This is by design, we remove any old installs before reinstalling — |
The problem is that usually the reason why people are reinstalling is that their existing installation is corrupted or not working, so we have a pretty low likelihood that Squirrel hooks will actually run / do anything useful. I understand that this is an issue though, we'll mull over doing what we do on uninstall, force killing any process that is in our directory |
Could Squirrel set system-wide named event before starting the uninstall - then the running app could wait for this event and kill itself if it saw it? |
We're running into the same issue here, where the user is accidentally trying to install the app twice. The major issue is Squirrel tries deleting the destination directory before it realises that some files are locked, leaving the installation in a broken state. It looks like Discord attempted to fix this in their fork, by checking if Squirrel can rename the directory before trying to delete, and rolling back if not. Is there any possibility we could do something similar? Possibly related to #1717. |
@anaisbetts @robmen We are hitting this issue daily with our end users, and are keen to resolve. It looks like the fix suggested by @Nawv would do the job nicely. Are you accepting community-contributed PR's for this repository? |
No way to avoid "Failed to remove existing directory on full install, is the app still running???" message.
If the event happened earlier, it could take care of everything BEFORE giving the installing user that message.
Alternatively, a command line switch to avoid this deletion behaviour would be helpful.
Reference commit:
1819ec7
The text was updated successfully, but these errors were encountered: