Mercurial > trustbridge
diff packaging/trustbridge.nsi @ 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 | e93ae5233217 |
children | a10eae8ca290 |
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"