[GRASS-SVN] r66166 - grass/trunk/mswindows
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 10 11:14:34 PDT 2015
Author: hellik
Date: 2015-09-10 11:14:34 -0700 (Thu, 10 Sep 2015)
New Revision: 66166
Modified:
grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
Log:
GRASS-Installer.nsi.tmpl: attempt to fix #2448
make folder and file writeable before run g.mkfontcap
change after g.mkfontcap run back to only readable
Modified: grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
===================================================================
--- grass/trunk/mswindows/GRASS-Installer.nsi.tmpl 2015-09-10 17:53:44 UTC (rev 66165)
+++ grass/trunk/mswindows/GRASS-Installer.nsi.tmpl 2015-09-10 18:14:34 UTC (rev 66166)
@@ -528,7 +528,9 @@
SetOutPath "$INSTALL_DIR"
File /r ${PACKAGE_FOLDER}\*.*
- ;grant modifying/overwriting fontcap file
+ ;grant $INSTDIR\etc read write accessible
+ AccessControl::GrantOnFile "$INSTDIR\etc" "(S-1-5-32-545)" "GenericRead + GenericWrite"
+ ;grant modifying/overwriting fontcap file
AccessControl::GrantOnFile "$INSTDIR\etc\fontcap" "(S-1-5-32-545)" "GenericRead + GenericWrite + Delete"
;create run_gmkfontcap.bat
@@ -590,6 +592,9 @@
;Run g.mkfontcap outside a grass session during installation to catch all fonts
ExecWait '"$INSTALL_DIR\etc\run_gmkfontcap.bat"'
+
+ ;set $INSTDIR\etc back to read accessible
+ AccessControl::SetOnFile "$INSTDIR\etc" "(S-1-5-32-545)" "GenericRead + GenericExecute"
;Install demolocation into the GIS_DATABASE directory
SetOutPath "$GIS_DATABASE\demolocation"
More information about the grass-commit
mailing list