From a487bab5a4abc217a39666a989e8318d6fbc1a1b Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Tue, 21 Jan 2020 20:36:14 +0000 Subject: [PATCH] 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 --- installer/windows/hatch.nsi | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0