[go: nahoru, domu]

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

bug: DeleteFile not accessible #179

Open
oryon-dominik opened this issue Nov 1, 2020 · 0 comments
Open

bug: DeleteFile not accessible #179

oryon-dominik opened this issue Nov 1, 2020 · 0 comments

Comments

@oryon-dominik
Copy link
Collaborator
oryon-dominik commented Nov 1, 2020

When I'm working on a Windows10-1909-corporate-pc, where system policies are strict and administrative access is restricted: The install script pyenv-win/libexec/pyenv-install.vbs fails on line 115 at If objfs.FileExists(msi) Then objfs.DeleteFile msi.

If I comment out this single line, everything works as expected. (Besides not deleting the install-file of course).
Unfortunately I don't know what policy exactly is blocking the deletion of the object. I'm still running pyenv as a local admin though.

In my point of view pyenv should also run completely without any administrative privileges. Maybe there is another way of using the installPaths or something is wrong with the file permissions.
Proposal: Having a try, catch/except around that line and issue a message when failed, would fix the problem. (Ok, it's a more or less dirty workaround). On old vb-versions an On Error Resume Next might help, but I'm in no way proficient in vb-scripts :-)

Regards,

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

1 participant