Possible issues with concurrent installations
See original GitHub issueIn Squirrel.Windows there is a bug that multiple deployments running at the same time on login can overwrite each other’s files in the extraction process before Updater is called to install each. I am thinking about switching to Clowd.Squirrel but wanted to see if the same problem could occur in this program. I quick look makes me think the same issue may exist. Two programs deploying on login could overwrite each other’s files as they both write to %temp%\squirrel
. See updaterPath and get_temp_file_path() Am I reading this correctly (not a C++ guy)? Or are there steps to ensure they extract to different places that I’m not quite seeing.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Concurrent installs · Issue #941 · pnpm/pnpm
It appears that yarn doesn't support concurrent runs as it messes with its cache and uses a --mutex flag to not run more...
Read more >Why Windows Installer can only install a single program at ...
One problem is, that multiple locks can lead to a deadlock - then you need deadlock detection (or both installers will hang forever),...
Read more >Is it bad to install multiple pieces of software at the same ...
Yes, it is. You just don't want to run the risk of accessing the same resources from 2 or more different threads. Can...
Read more >Two Concurrent UiPath Studio Installations Were Detected
Multiple installations (one per-machine and at least one per-user) exist at the same time and interfere with an upgrade or change of the...
Read more >3 Installation and Migration Issues
This section covers the following installation issues: Simultaneous Installations Using Common Infrastructure May Result in Errors. Multiple Installations ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the specific parts of code you pointed out - those are not an issue here. I will leave this issue open as I still think it’s a good idea to address the incrementing temp folder creation - there is still potential for collisions there (maybe less likely than the issue you pointed out) but it will be trivial to fix.
Got it. Good to know Clowd.Squirrel does things a little better. Sounds like there is still some potential for problems, but much less.
To see the behavior in Squirrel.Windows – this line and this line set the target directory for extracting files from Setup.exe and this line sets it as the base directory for the extracted files. I watched the directory as the install ran and saw the files I mentioned above placed in the directory temporarily.
Feel free to close unless you feel there are things to be addressed in Clowd.Squirrel related to this