mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fix permissions for everything inside the installation folder (#342)
* add ci to iacls * make sure files get affected too Co-authored-by: Joao Moreno <joao.moreno@microsoft.com>
This commit is contained in:
committed by
Tyler Leonhardt
parent
c2beae1c0f
commit
c20b68a62d
@@ -1491,10 +1491,10 @@ var
|
||||
ResultCode: Integer;
|
||||
Permissions: string;
|
||||
begin
|
||||
Permissions := '/grant:r "*S-1-5-18:F" /grant:r "*S-1-5-32-544:F" /grant:r "*S-1-5-11:RX" /grant:r "*S-1-5-32-545:RX"';
|
||||
Permissions := '/grant:r "*S-1-5-18:(OI)(CI)F" /grant:r "*S-1-5-32-544:(OI)(CI)F" /grant:r "*S-1-5-11:(OI)(CI)RX" /grant:r "*S-1-5-32-545:(OI)(CI)RX"';
|
||||
|
||||
#if "user" == InstallTarget
|
||||
Permissions := Permissions + ' /grant:r "*S-1-3-0:F"';
|
||||
Permissions := Permissions + ' /grant:r "*S-1-3-0:(OI)(CI)F"';
|
||||
#endif
|
||||
|
||||
Exec(ExpandConstant('{sys}\icacls.exe'), ExpandConstant('"{app}" /inheritancelevel:r ') + Permissions, '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
|
||||
|
||||
Reference in New Issue
Block a user