From dfd34e8260c270da74b5c2d86d61aee4b6d56977 Mon Sep 17 00:00:00 2001 From: SteVen Batten <6561887+sbatten@users.noreply.github.com> Date: Mon, 11 Apr 2022 03:30:00 -0400 Subject: [PATCH] Fix permissions for everything inside the installation folder (#342) * add ci to iacls * make sure files get affected too Co-authored-by: Joao Moreno --- build/win32/code.iss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/win32/code.iss b/build/win32/code.iss index 0f9f20fc9ba81..e96ca4bde77ef 100644 --- a/build/win32/code.iss +++ b/build/win32/code.iss @@ -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);