[GRASS-SVN] r66253 - grass/trunk/mswindows

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 17 13:21:03 PDT 2015


Author: hellik
Date: 2015-09-17 13:21:03 -0700 (Thu, 17 Sep 2015)
New Revision: 66253

Modified:
   grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
Log:
GRASS-Installer.nsi.tmpl: 

- elevate run_gmkfontcap.bat
- add debug if AccessControl:GrantOnFile succeeded

Modified: grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
===================================================================
--- grass/trunk/mswindows/GRASS-Installer.nsi.tmpl	2015-09-16 20:32:30 UTC (rev 66252)
+++ grass/trunk/mswindows/GRASS-Installer.nsi.tmpl	2015-09-17 20:21:03 UTC (rev 66253)
@@ -528,10 +528,14 @@
 	SetOutPath "$INSTALL_DIR"
 	File /r ${PACKAGE_FOLDER}\*.*
 
-	;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"
+	;grant $INSTDIR\etc read write accessible and show if succeeded: error if it failed
+	AccessControl::GrantOnFile "$INSTDIR\etc" "(S-1-5-32-545)" "GenericRead + GenericWrite + GenericExecute"
+	Pop $R0
+	DetailPrint $R0	
+	;grant modifying/overwriting fontcap file and show if succeeded: error if it failed	
+	AccessControl::GrantOnFile "$INSTDIR\etc\fontcap" "(S-1-5-32-545)" "GenericRead + GenericWrite + Delete + GenericExecute"
+	Pop $R0
+	DetailPrint $R0	
 	
 	;create run_gmkfontcap.bat
 	ClearErrors
@@ -581,7 +585,7 @@
 	FileWrite $0 '    <security>$\r$\n'
 	FileWrite $0 '      <requestedPrivileges>$\r$\n'
 	FileWrite $0 '        <requestedExecutionLevel$\r$\n'
-	FileWrite $0 '          level="asInvoker"$\r$\n'
+	FileWrite $0 '          level="requireAdministrator"$\r$\n'
 	FileWrite $0 '          uiAccess="false"/>$\r$\n'
 	FileWrite $0 '        </requestedPrivileges>$\r$\n'
 	FileWrite $0 '       </security>$\r$\n'



More information about the grass-commit mailing list