Skip to content

Commit a91d402

Browse files
committed
Fix setACL path
1 parent 508338f commit a91d402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NSIS_agent_setup/OCS-NG_Windows_Agent_Setup_x64.nsi

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setcompressor /SOLID lzma
1313
; HM NIS Edit Wizard helper defines
1414
!define PRODUCT_NAME "OCS Inventory NG Agent"
1515
!define OLD_PRODUCT_NAME "OCS Inventory Agent"
16-
!define PRODUCT_VERSION "2.10.0.0"
16+
!define PRODUCT_VERSION "2.10.1.0"
1717
!define PRODUCT_PUBLISHER "OCS Inventory NG Team"
1818
!define PRODUCT_WEB_SITE "http://www.ocsinventory-ng.org"
1919
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\OCSInventory.exe"
@@ -1595,14 +1595,14 @@ Section "!Working data folder" SEC01
15951595
; Set users and power users permission to read/execute/change
15961596
StrCpy $logBuffer "SetACL allowing Users / Power users read/write permissions on <$APPDATA\OCS Inventory NG\Agent>..."
15971597
Call Write_Log
1598-
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"'
1598+
nsExec::ExecToLog '$PLUGINSDIR\SetACL.exe -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"'
15991599
Pop $0
16001600
StrCpy $logBuffer "Result: $0$\r$\n"
16011601
Call Write_Log
16021602
; Propagate inherited permissions to Download directory
16031603
StrCpy $logBuffer "SetACL propagating inherited permissions on <$APPDATA\OCS Inventory NG\Agent\Download>..."
16041604
Call Write_Log
1605-
nsExec::ExecToLog 'SetACL.exe -on "$APPDATA\OCS Inventory NG\Agent\Download" -ot file -actn setprot -op "dacl:np;sacl:np" -actn clear -clr "dacl,sacl" -actn rstchldrn -rst "dacl,sacl"'
1605+
nsExec::ExecToLog '$PLUGINSDIR\SetACL.exe -on "$APPDATA\OCS Inventory NG\Agent\Download" -ot file -actn setprot -op "dacl:np;sacl:np" -actn clear -clr "dacl,sacl" -actn rstchldrn -rst "dacl,sacl"'
16061606
Pop $0
16071607
StrCpy $logBuffer "Result: $0$\r$\n"
16081608
Call Write_Log

0 commit comments

Comments
 (0)