Skip to content

Commit 54cbbec

Browse files
[SYCL] Fix runtimes installation script (#16719) (#17002)
Fix the script to not give unnecessary permissions. Co-authored-by: Artur Gainullin <[email protected]>
1 parent 2f538d6 commit 54cbbec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/tools/install.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ IF %NEED_OPENCL_UPGRADE% == True (
7878
echo Replace %SYSTEM_OCL_ICD_LOADER% with the new downloaded %NEW_OCL_ICD_LOADER%
7979

8080
rem CHANGE THE FILE ATTRIBUTES. OTHERWISE, IT CANNOT BE REPLACED by regular MOVE, DEL, COPY commands.
81-
PowerShell -Command "& {$acl = Get-Acl %SYSTEM_OCL_ICD_LOADER%; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule(\"Users\",\"FullControl\",\"Allow\"); $acl.SetAccessRule($AccessRule); $acl | Set-Acl %SYSTEM_OCL_ICD_LOADER%; }"
81+
PowerShell -Command "& {$acl = Get-Acl %SYSTEM_OCL_ICD_LOADER%; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule(\"Administrators\",\"FullControl\",\"Allow\"); $acl.SetAccessRule($AccessRule); $acl | Set-Acl %SYSTEM_OCL_ICD_LOADER%; }"
8282

8383

8484
copy /Y %NEW_OCL_ICD_LOADER% %SYSTEM_OCL_ICD_LOADER%

0 commit comments

Comments
 (0)