From: kkolinko Date: Sun, 14 Nov 2010 21:05:41 +0000 (+0000) Subject: - SetOutPath creates the empty folders for us. Thus 'File /nonfatal' trick is not... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=99053e37fcb864cb95824b30f14c528f22fb9478;p=tomcat7.0 - 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 --- 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