changeset 895:8ac2d9b0668d

Add sleep in installer on update This fixes a race between shutdown of trustbridge and the installer trustbridge executable replacement.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 08 Aug 2014 15:10:48 +0200
parents 2e7fff9d195a
children d7eca3c60370
files packaging/trustbridge.nsi
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/trustbridge.nsi	Fri Aug 08 14:37:31 2014 +0200
+++ b/packaging/trustbridge.nsi	Fri Aug 08 15:10:48 2014 +0200
@@ -182,6 +182,12 @@
 FunctionEnd
 
 Section ""
+  StrCmp $is_update '1' wait_a_bit continue
+wait_a_bit:
+  ; The trustbridge.exe might need some time to close
+  ; lets give it a chance to avoid failing to overwrite it
+  Sleep 1000
+continue:
 ; The actual installation
   SetOutPath "$INSTDIR"
   !include "filelist.nsh"

http://wald.intevation.org/projects/trustbridge/