question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible issues with concurrent installations

See original GitHub issue

In 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:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
caesaycommented, Sep 29, 2022

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.

0reactions
bzuillsmithcommented, Sep 29, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found