Skip to content

Commit dfd34e8

Browse files
sbattenjoaomoreno
andauthored
Fix permissions for everything inside the installation folder (#342)
* add ci to iacls * make sure files get affected too Co-authored-by: Joao Moreno <[email protected]>
1 parent 82affae commit dfd34e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/win32/code.iss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,10 +1491,10 @@ var
14911491
ResultCode: Integer;
14921492
Permissions: string;
14931493
begin
1494-
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"';
1494+
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"';
14951495
14961496
#if "user" == InstallTarget
1497-
Permissions := Permissions + ' /grant:r "*S-1-3-0:F"';
1497+
Permissions := Permissions + ' /grant:r "*S-1-3-0:(OI)(CI)F"';
14981498
#endif
14991499
15001500
Exec(ExpandConstant('{sys}\icacls.exe'), ExpandConstant('"{app}" /inheritancelevel:r ') + Permissions, '', SW_HIDE, ewWaitUntilTerminated, ResultCode);

0 commit comments

Comments
 (0)