From 99053e37fcb864cb95824b30f14c528f22fb9478 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Sun, 14 Nov 2010 21:05:41 +0000 Subject: [PATCH] - SetOutPath creates the empty folders for us. Thus 'File /nonfatal' trick is not needed. - Simplify deletion patterns in the Uninstall section git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1035068 13f79535-47bb-0310-9956-ffa450edef68 --- res/tomcat.nsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/res/tomcat.nsi b/res/tomcat.nsi index e900914a2..7410f161f 100644 --- a/res/tomcat.nsi +++ b/res/tomcat.nsi @@ -162,12 +162,10 @@ Section "Core" SecTomcatCore File NOTICE SetOutPath $INSTDIR\lib File /r lib\*.* + ; Note: just calling 'SetOutPath' will create the empty folders for us SetOutPath $INSTDIR\logs - File /nonfatal /r logs\*.* SetOutPath $INSTDIR\work - File /nonfatal /r work\*.* SetOutPath $INSTDIR\temp - File /nonfatal /r temp\*.* SetOutPath $INSTDIR\bin File bin\bootstrap.jar File bin\tomcat-juli.jar @@ -917,8 +915,10 @@ Section Uninstall MessageBox MB_YESNO|MB_ICONQUESTION \ "Remove all files in your Tomcat @VERSION_MAJOR_MINOR@ directory? (If you have anything \ you created that you want to keep, click No)" IDNO Removed - RMDir /r "$INSTDIR\webapps\ROOT" ; this would be skipped if the user hits no - RMDir "$INSTDIR\webapps" + ; these would be skipped if the user hits no + RMDir /r "$INSTDIR\webapps" + RMDir /r "$INSTDIR\logs" + RMDir /r "$INSTDIR\conf" Delete "$INSTDIR\*.*" RMDir /r "$INSTDIR" Sleep 500 -- 2.11.0