From 1eb0cb0720e6633d49abccf447007ba7a789bd0c Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 24 Sep 2021 13:27:45 -0400 Subject: [PATCH] LP1860187: Set .properties Permissions Appropriately Use the AccessControl plugin to allow permissions to be inheirited normally. Signed-off-by: Jason Boyer --- installer/windows/hatch.nsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/windows/hatch.nsi b/installer/windows/hatch.nsi index 08ef332e4d..fa8f33fc64 100644 --- a/installer/windows/hatch.nsi +++ b/installer/windows/hatch.nsi @@ -115,6 +115,7 @@ section "install" !insertmacro _ReplaceInFile "$INSTDIR\extension\host\org.evergreen_ils.hatch.firefox.json" "/path/to/hatch.sh" "$0\\hatch.bat" AccessControl::EnableFileInheritance "$INSTDIR\extension\host\org.evergreen_ils.hatch.chrome.json" AccessControl::EnableFileInheritance "$INSTDIR\extension\host\org.evergreen_ils.hatch.firefox.json" + ; Set logging to be in ProgramData SetShellVarContext all ${IfNot} ${FileExists} "$APPDATA\${APPNAME}" @@ -122,6 +123,8 @@ section "install" ${EndIf} !insertmacro _ReplaceInFile "$INSTDIR\hatch.properties" "#data.directory=/tmp/foo" "data.directory=C://ProgramData//${APPNAME}" !insertmacro _ReplaceInFile "$INSTDIR\logging.properties" "%h/.evergreen/hatch.log" "C://ProgramData//${APPNAME}//hatch.log" + AccessControl::EnableFileInheritance "$INSTDIR\hatch.properties" + AccessControl::EnableFileInheritance "$INSTDIR\logging.properties" ; Registry info for Add/Remove Programs WriteRegStr HKLM "SOFTWARE\${COMPANYNAME}\${APPNAME}" "Logging Path" $APPDATA -- 2.11.0