[PATCH 1 of 2] Add sleep in installer on update

Wald Commits scm-commit at wald.intevation.org
Fri Aug 8 15:11:38 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1407503448 -7200
# Node ID 8ac2d9b0668d28d3757b1ad1ccf0206c51986d9e
# Parent  2e7fff9d195acc92f1a55ce924ce9a58f3b97dcb
Add sleep in installer on update

    This fixes a race between shutdown of trustbridge and the
    installer trustbridge executable replacement.

diff -r 2e7fff9d195a -r 8ac2d9b0668d packaging/trustbridge.nsi
--- 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"


More information about the Trustbridge-commits mailing list