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

If Developer Mode is enabled, allow continuing to creating symbolic link #1

Closed
nngo opened this issue Dec 26, 2018 · 2 comments
Closed

Comments

@nngo
Copy link

nngo commented Dec 26, 2018

If Windows Developer Mode is enabled, user can create symbolic link without having SeCreateSymbolicLinkPrivilege. This new symlinks support first shipped in Windows 10 Insiders Build 14972 and was formally delivered in Windows 10 Creators Update (Dec 2016).
https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10

Per this SO, might be able to check this DWORD key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense to see if it is enabled (when it has a value of 1)
https://stackoverflow.com/questions/40033608/enable-windows-10-developer-mode-programmatically

Might need to add SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE to the dwFlags (3rd parameter) of CreateSymbolicLinkW function.
https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-createsymboliclinkw

@irakhlin
Copy link
Owner

Sorry this is not a repo I watched or tracked for a very long time. Just coming across this issue it seemed like a simple ask, I have no idea if you still need this but I went ahead and pushed a version 1.2 with the change. If there are any issues feel free to let me know.

@nngo
Copy link
Author

nngo commented Mar 12, 2020

@irakhlin Thanks for making a release with this fix

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