[GRASS-SVN] r47954 - grass/branches/develbranch_6/mswindows
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 29 15:01:59 EDT 2011
Author: mmetz
Date: 2011-08-29 12:01:59 -0700 (Mon, 29 Aug 2011)
New Revision: 47954
Modified:
grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
Log:
NSIS script: update location of GISRC file
Modified: grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
===================================================================
--- grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi 2011-08-29 18:45:39 UTC (rev 47953)
+++ grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi 2011-08-29 19:01:59 UTC (rev 47954)
@@ -798,19 +798,18 @@
;replace \ with / in $GIS_DATABASE
${StrReplace} "$UNIX_LIKE_GIS_DATABASE_PATH" "\" "/" "$GIS_DATABASE"
- ;create $PROFILE\.grassrc6
+ ;create $APPDATA\grass6\rc
SetShellVarContext current
ClearErrors
- FileOpen $0 $PROFILE\.grassrc6 w
- IfErrors done_create_.grassrc6
+ CreateDirectory $APPDATA\grass6
+ FileOpen $0 $APPDATA\grassrc6\rc w
+ IfErrors done_create_grassrc6\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_.grassrc6:
+ done_create_grassrc6\rc:
- CopyFiles $PROFILE\.grassrc6 $INSTALL_DIR\msys\home\$USERNAME
-
SectionEnd
Function DownloadDataSet
@@ -917,9 +916,9 @@
SetShellVarContext all
RMDir /r "$SMPROGRAMS\${GRASS_BASE}"
- ;remove the .grassrc6 file
+ ;remove the $APPDATA\grass6 folder
SetShellVarContext current
- Delete "$PROFILE\.grassrc6"
+ RMDir /r "$APPDATA\grass6"
;remove the Registry Entries
DeleteRegKey HKLM "Software\${GRASS_BASE}"
More information about the grass-commit
mailing list