Giter VIP home page Giter VIP logo

Comments (5)

dsheiko avatar dsheiko commented on August 23, 2024

You do not need admin permissions for swap. Swap takes files from TMP (given you specified a directory accessible to the user) and replaces corresponding ones in the app. But according to your error message, seems like it's symlink issue reported in #6, which not yet resolved.

from nw-autoupdater.

adamtal3 avatar adamtal3 commented on August 23, 2024

@dsheiko - Thanks for the response.

My error is in Windows (not mac) and the permission issue is not in the TEMP directory but in the installation directory (under Program Files). I can verify that it's solved by running the exe at the TEMP directory as admin.

I don't think it has anything to do with the symlink issue.

I tested the process on a MAC and it fails with ERROR: LSOpenURLsWithRole() failed for the application code -10810 - not sure why is that (might be also a permission issue, or maybe something wrong with the process which makes it exit with an exit code greater than 0).

from nw-autoupdater.

adamtal3 avatar adamtal3 commented on August 23, 2024

@dsheiko - About the MAC issue, I've made some tests and it seems that if I use exec instead of spawn it manages to open the app. Do you have any explanation?
If that makes sense I'll create a PR for this.

from nw-autoupdater.

dsheiko avatar dsheiko commented on August 23, 2024

But I use spawn to create a detached process. If you try to replace your app on a child of the same process, it will report files are locked

from nw-autoupdater.

adamtal3 avatar adamtal3 commented on August 23, 2024

I managed to run the process with my fork using exec on MAC.. It just didn't work with spawn.

If you have any idea what the cause of the issue with spawn is I'll be glad to use a better solution for it.

from nw-autoupdater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.