[PATCH 3 of 8] Remove empty parent directory of installation direcotry

Wald Commits scm-commit at wald.intevation.org
Thu Oct 30 14:52:09 CET 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1414675643 -3600
# Node ID 1dbe849fd0bf29d812755ad0fb069c4ee5932b53
# Parent  214958fcfc87247664ee51eca990681a07fd40bd
Remove empty parent directory of installation direcotry.

diff -r 214958fcfc87 -r 1dbe849fd0bf packaging/trustbridge.nsi
--- a/packaging/trustbridge.nsi	Thu Oct 30 12:51:25 2014 +0100
+++ b/packaging/trustbridge.nsi	Thu Oct 30 14:27:23 2014 +0100
@@ -335,6 +335,8 @@
   RmDir "$0\BSI"
   Delete "$INSTDIR\Uninstall.exe"
   RMDir "$INSTDIR"
+  RMDir "$INSTDIR\.." # The instdir is \trustbridge usually \BSI\TrustBridge we delete the parent directory only if it is empty. So no harm
+                      # done if that is not the case.
 
   !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
 


More information about the Trustbridge-commits mailing list