瀏覽代碼

winGRASS standalone installer: don't remove config dir when uninstalling

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49469 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
cb89fe063b
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      mswindows/GRASS-Installer.nsi

+ 7 - 6
mswindows/GRASS-Installer.nsi

@@ -869,11 +869,11 @@ Section "GRASS" SecGRASS
 	;replace \ with / in $GIS_DATABASE
 	${StrReplace} "$UNIX_LIKE_GIS_DATABASE_PATH" "\" "/" "$GIS_DATABASE"
   
-	;create $APPDATA\grass7\rc
+	;create $APPDATA\GRASS7\rc
 	SetShellVarContext current
 	ClearErrors
-	CreateDirectory	$APPDATA\grass7
-	FileOpen $0 $APPDATA\grass7\rc w
+	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'
@@ -999,9 +999,10 @@ Section "Uninstall"
 	SetShellVarContext all
 	RMDir /r "$SMPROGRAMS\${GRASS_BASE}"
 	
-	;remove the $APPDATA\grass7 folder
-	SetShellVarContext current
-	RMDir /r "$APPDATA\grass7"
+	;remove the $APPDATA\GRASS7 folder
+	;disabled, don't remove user settings
+	;SetShellVarContext current
+	;RMDir /r "$APPDATA\GRASS7"
 
 	;remove the Registry Entries
 	DeleteRegKey HKLM "Software\${GRASS_BASE}"