From 2f09fdab9b663271a4b02a18aca8e77043e75078 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 Signed-off-by: Gina Monti Signed-off-by: Galen Charlton --- installer/windows/hatch.nsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/windows/hatch.nsi b/installer/windows/hatch.nsi index 1cd0a541a3..4fb6142673 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