From 4b8420a17f6559d02c045d5a9c4a9929c1c3c168 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 23 Jan 2009 19:54:23 +0000 Subject: [PATCH] * added to remove when deinstalling RetroShare to delete from APPDATA cache,Partials folder, *.cfg,*.log and *.conf files git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@941 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/retroshare.nsi | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/retroshare.nsi b/retroshare-gui/src/retroshare.nsi index 423ebceed..77117b953 100644 --- a/retroshare-gui/src/retroshare.nsi +++ b/retroshare-gui/src/retroshare.nsi @@ -295,7 +295,16 @@ Section "Uninstall" ; Don't remove the directory, otherwise ; we lose the XPGP keys. ; Should make this an option though... - Delete $APPDATA\RetroShare\kadc.ini + Delete "$APPDATA\${APPNAME}\kadc.ini" + Delete "$APPDATA\${APPNAME}\*.cfg" + Delete "$APPDATA\${APPNAME}\*.conf" + Delete "$APPDATA\${APPNAME}\*.log-save" + Delete "$APPDATA\${APPNAME}\*.log" + Delete "$APPDATA\${APPNAME}\*.failed" + + RMDir /r "$APPDATA\${APPNAME}\cache" + RMDir /r "$APPDATA\${APPNAME}\Partials" + ; Remove shortcuts, if any Delete "$SMPROGRAMS\${APPNAME}\*.*" @@ -308,10 +317,12 @@ Section "Uninstall" ; Remove directories used RMDir "$SMPROGRAMS\${APPNAME}" - RMDir "$INSTDIR" - RMDir "$INSTDIR\mplayer" - RMDir "$INSTDIR\smplayer" - RMDir "$INSTDIR\qss" + RMDir /r "$INSTDIR" + RMDir /r "$INSTDIR\mplayer" + RMDir /r "$INSTDIR\smplayer" + RMDir /r "$INSTDIR\qss" + RMDir /r "$INSTDIR\emoticons" + RMDir /r "$INSTDIR\style" SectionEnd