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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 25 19:27:19 EDT 2010


Author: martinl
Date: 2010-06-25 23:27:19 +0000 (Fri, 25 Jun 2010)
New Revision: 42658

Modified:
   grass/trunk/mswindows/GRASS-Installer.nsi
Log:
store rc to C:\Users\landa\AppData\Roaming\GRASS7

Modified: grass/trunk/mswindows/GRASS-Installer.nsi
===================================================================
--- grass/trunk/mswindows/GRASS-Installer.nsi	2010-06-24 22:40:47 UTC (rev 42657)
+++ grass/trunk/mswindows/GRASS-Installer.nsi	2010-06-25 23:27:19 UTC (rev 42658)
@@ -62,7 +62,7 @@
 ;Publisher variables
 
 !define PUBLISHER "GRASS Development Team"
-!define WEB_SITE "http://grass.osgeo.org/"
+!define WEB_SITE "http://grass.osgeo.org"
 !define WIKI_PAGE "http://grass.osgeo.org/wiki/Main_Page"
 
 ;----------------------------------------------------------------------------------------------------------------------------
@@ -684,8 +684,8 @@
 	FileWrite $0 'rem Set GRASS Installation Directory Variable$\r$\n'
 	FileWrite $0 'set GISBASE=$INSTALL_DIR$\r$\n'
 	FileWrite $0 '$\r$\n'
-	FileWrite $0 'rem Directory where your .grass7/rc file will be stored$\r$\n'
-	FileWrite $0 'set HOME=%USERPROFILE%$\r$\n'
+	FileWrite $0 'rem Directory where your GRASS7/rc file will be stored$\r$\n'
+	FileWrite $0 'set HOME=%APPDATA%$\r$\n'
 	FileWrite $0 '$\r$\n'
 	FileWrite $0 'rem Name of the wish (Tk) executable$\r$\n'	
 	FileWrite $0 'set GRASS_WISH=wish.exe$\r$\n'
@@ -842,25 +842,22 @@
 	;replace \ with / in $GIS_DATABASE
 	${StrReplace} "$UNIX_LIKE_GIS_DATABASE_PATH" "\" "/" "$GIS_DATABASE"
   
-	;create $PROFILE\.grass7\rc
+	;create $APPDATA\GRASS7\rc
 	SetShellVarContext current
 	ClearErrors
-	CreateDirectory	$PROFILE\.grass7
-	FileOpen $0 $PROFILE\.grass7\rc w
-	IfErrors done_create_.grass7\rc
+	CreateDirectory	$APPDATA\GRASS7
+	FileOpen $0 $APPDATA\GRASS7\rc w
+	IfErrors done_create_GRASS7\rc
 	FileWrite $0 'GISDBASE: $UNIX_LIKE_GIS_DATABASE_PATH$\r$\n'
 	FileWrite $0 'LOCATION_NAME: demolocation$\r$\n'
 	FileWrite $0 'MAPSET: PERMANENT$\r$\n'
 	FileClose $0	
-	done_create_.grass7\rc:
+	done_create_GRASS7\rc:
 	
-	CreateDirectory	$INSTALL_DIR\msys\home\$USERNAME\.grass7
-	CopyFiles $PROFILE\.grass7\rc $INSTALL_DIR\msys\home\$USERNAME\.grass7
-	
-		;replace gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn" in grass70.py with $INSTDIR
-	 Push "$INSTDIR\grass70.py" ; file to modify
-	 Push 'gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn"' ; string that a line must begin with *WS Sensitive*
-	 Push 'gisbase = "$INSTDIR"' ; string to replace whole line with
+	;replace gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn" in grass70.py with $INSTDIR
+	Push "$INSTDIR\grass70.py" ; file to modify
+	Push 'gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn"' ; string that a line must begin with *WS Sensitive*
+	Push 'gisbase = "$INSTDIR"' ; string to replace whole line with
 	Call ReplaceLineStr
 	
 	;replace config_projshare = "/c/OSGeo4W/share/proj" i n grass70.py with $INSTDIR\proj
@@ -868,6 +865,12 @@
 	Push 'config_projshare = "/c/OSGeo4W/share/proj"' ; string that a line must begin with *WS Sensitive*
 	Push 'config_projshare = "$INSTDIR\proj"' ; string to replace whole line with
 	Call ReplaceLineStr
+
+	;replace grass_config_dirname = ".grass7" i n grass70.py with GRASS7
+	Push "$INSTDIR\grass70.py" ; file to modify
+	Push 'grass_config_dirname = ".grass7"' ; string that a line must begin with *WS Sensitive*
+	Push 'grass_config_dirname = "GRASS7"' ; string to replace whole line with
+	Call ReplaceLineStr
                  
 SectionEnd
 
@@ -975,9 +978,9 @@
 	SetShellVarContext all
 	RMDir /r "$SMPROGRAMS\${GRASS_BASE}"
 	
-	;remove the .grass7\rc file
+	;remove the $APPDATA\GRASS7\rc file
 	SetShellVarContext current
-	RMDir /r "$PROFILE\.grass7"
+	RMDir /r "$APPDATA\GRASS7"
 
 	;remove the Registry Entries
 	DeleteRegKey HKLM "Software\${GRASS_BASE}"



More information about the grass-commit mailing list