From: Kyle Huckins Date: Tue, 21 Jan 2020 20:36:14 +0000 (+0000) Subject: lp1860187 Global Read Access on Properties X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a487bab5a4abc217a39666a989e8318d6fbc1a1b;p=working%2FHatch.git lp1860187 Global Read Access on Properties - Provide Generic Read Access to all Users for the Hatch.properties and logging.properties files located in Program Files on Windows Install. Signed-off-by: Kyle Huckins Changes to be committed: modified: installer/windows/hatch.nsi --- diff --git a/installer/windows/hatch.nsi b/installer/windows/hatch.nsi index 08ef332e4d..993b8e55b8 100644 --- a/installer/windows/hatch.nsi +++ b/installer/windows/hatch.nsi @@ -123,6 +123,10 @@ section "install" !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" + ; Ensure our properties files are readable and writable + AccessControl::GrantOnFile "$INSTDIR\hatch.properties" "(BU)" "GenericRead+ReadData+ReadEA+ReadAttributes+ReadControl+GenericExecute+Execute" + AccessControl::GrantOnFile "$INSTDIR\logging.properties" "(BU)" "GenericRead+ReadData+ReadEA+ReadAttributes+ReadControl+GenericExecute+Execute" + ; Registry info for Add/Remove Programs WriteRegStr HKLM "SOFTWARE\${COMPANYNAME}\${APPNAME}" "Logging Path" $APPDATA SetShellVarContext current