Skip to content
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

Auto-update not working (follow-up to issue #24) #29

Open
Caedendi opened this issue Nov 1, 2024 · 2 comments
Open

Auto-update not working (follow-up to issue #24) #29

Caedendi opened this issue Nov 1, 2024 · 2 comments

Comments

@Caedendi
Copy link

Caedendi commented Nov 1, 2024

I've finally gotten around to checking out the updater error:

  • the logs don't help, there's nothing after "Applying update"
  • the error is related to permissions to run the "update.ps1" script
    • it doesn't work from D2RMM itself
    • if I go to %LOCALAPPDATA%\Temp\D2RMM\Update\ and run it manually, then it just works

The error message is a bit hard to read but I'm 90% certain this is what it says:

File C:\Users\Caedendi\AppData\Local\Temp\D2RMM\Updater\update.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170
    + CategoryInfo          : SecurityError. (t) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

The link is an alias for this.

Any chance you could find a fix for this that would not involve us users having to change Windows settings manually?


Files:
screenshot
d2rmm.log

@Caedendi Caedendi changed the title Follow-up to issue #24: Auto-update not working Auto-update not working (follow-up to issue #24) Nov 1, 2024
@olegbl
Copy link
Owner

olegbl commented Nov 2, 2024

Oh, lol. Yeah, if the security policy prevents PowerShell scripts, this won't work. I guess I'd need to ship another executable... A task for a later time.

Thank you for taking the time to repro btw!

@Caedendi
Copy link
Author

Caedendi commented Nov 2, 2024

You're welcome! Thanks for the fast response(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants