-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix sc.ini permissions issue on Windows 10 #166
Conversation
2099617 to
b431c61
Compare
|
If you upload an installer EXE, I can test it in an XP VM if you like. |
|
http://gnuk.net/dmd-2.069.2.exe I might change this to just have it inherit the permissions like you mentioned in the other pull request. |
|
The installation seemed to have been completed successfully. The log window is closed right after that step though, so I didn't see what any log output would have been. |
b431c61 to
530a814
Compare
|
A silent failure is pretty much exactly what we wanted to happen. I've pushed a new version that follows you recommendation to inherit permissions instead of granting read to Users. I just did it on the whole installation directory to catch everything. I've tested and this approach works fine on Windows 10. |
530a814 to
34a87a5
Compare
|
The problem is not specific to Windows 10, I can reproduce it with 8.1, and it should exist for all versions that allow restricted users including XP IIRC. |
|
@rainers Is there an AccessControl API to reset ACLs on a file? If so then we should use that. |
|
BTW, there should be a Bugzilla issue for this, linking to the forum thread and these discussions, and a link to the Bugzilla in a code comment. |
|
Would it be realistic to fix the root of the issue (the string replace function using a system temp directory) instead? |
|
Alternatively, does NSIS provide a way to copy a file's contents but not attributes? |
|
Bugzilla entries are https://issues.dlang.org/show_bug.cgi?id=15456 and https://issues.dlang.org/show_bug.cgi?id=15572 |
Seems easy: just replace with in ReplaceInFile.nsh |
|
I also noticed that the file owner of sc.ini could not be displayed. Not going through the temp folder fixed that, too. |
This exact problem was reported to me by a 64 Windows 7 Pro user. In any case, we must still support Windows 7. A lot of developers are not wanting to move to newer versions of Windows. |
|
My understanding is that #167 supercedes this PR, so can it be closed? |
|
icacls is available in Windows 7. It has been included in every version of Windows since 2003. #167 works for me anyway, though. |
No description provided.