Skip to content

Commit 08b524f

Browse files
committed
Remove classic user rights on ProgramData Ocs Inventory folder
1 parent 02585d0 commit 08b524f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

NSIS_agent_setup/OCS-NG_Windows_Agent_Setup_x64.nsi

+1-3
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ Section "!Working data folder" SEC01
14401440
; Set users and power users permission to read/execute/change
14411441
StrCpy $logBuffer "SetACL allowing Users / Power users read/write permissions on <$APPDATA\OCS Inventory NG\Agent>..."
14421442
Call Write_Log
1443-
nsExec::ExecToLog 'SetACL -on "$APPDATA\OCS Inventory NG\Agent" -ot file -actn ace -ace "n:S-1-5-32-545;p:read_ex,change;s:y;m:set" -ace "n:S-1-5-32-547;p:read_ex,change;s:y;m:set" -actn clear -clr "dacl,sacl" -actn rstchldrn -rst "dacl,sacl"'
1443+
nsExec::ExecToLog 'SetACL -on "$APPDATA\OCS Inventory NG\Agent" -ot file -actn ace -ace "n:S-1-5-18;p:full;s:y;m:set" -ace "n:S-1-5-32-544;p:full;s:y;m:set" -ace "n:S-1-5-32-547;p:read_ex,change;s:y;m:set" -actn setprot -op "dacl:p_nc;sacl:p_nc" -actn clear -clr "dacl,sacl" -actn rstchldrn -rst "dacl,sacl"'
14441444
Pop $0
14451445
StrCpy $logBuffer "Result: $0$\r$\n"
14461446
Call Write_Log
@@ -2033,8 +2033,6 @@ Section Uninstall
20332033
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
20342034
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${OLD_PRODUCT_UNINST_KEY}"
20352035
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
2036-
; Remove ProgramData folder and files
2037-
RMDir /r /REBOOTOK "$APPDATA\OCS Inventory NG"
20382036
SetAutoClose true
20392037
SectionEnd
20402038

0 commit comments

Comments
 (0)