comparison 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
comparison
equal deleted inserted replaced
894:2e7fff9d195a 895:8ac2d9b0668d
180 Function "un.onInit" 180 Function "un.onInit"
181 !insertmacro MULTIUSER_UNINIT 181 !insertmacro MULTIUSER_UNINIT
182 FunctionEnd 182 FunctionEnd
183 183
184 Section "" 184 Section ""
185 StrCmp $is_update '1' wait_a_bit continue
186 wait_a_bit:
187 ; The trustbridge.exe might need some time to close
188 ; lets give it a chance to avoid failing to overwrite it
189 Sleep 1000
190 continue:
185 ; The actual installation 191 ; The actual installation
186 SetOutPath "$INSTDIR" 192 SetOutPath "$INSTDIR"
187 !include "filelist.nsh" 193 !include "filelist.nsh"
188 194
189 ;Create uninstaller 195 ;Create uninstaller

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