- 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 <khuckins@catalyte.io>
Changes to be committed:
modified: installer/windows/hatch.nsi
!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