From d37d73017f7c57b91995b1ffe2035edb797fdac6 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 14 Jul 2018 15:49:41 +0200 Subject: [PATCH] nsis: add sleep timer to ensure unlocking of vc_redist (#3325) * add 3s sleep + log hint --- cmake/NSIS.template.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/NSIS.template.in b/cmake/NSIS.template.in index 7d0acac3..4e81b7df 100644 --- a/cmake/NSIS.template.in +++ b/cmake/NSIS.template.in @@ -244,12 +244,16 @@ ${If} $PortableMode = 0 IfFileExists "$INSTDIR\vc_redist.x86.exe" VcRedist86Exists PastVcRedist86Check VcRedist86Exists: ExecWait '"$INSTDIR\vc_redist.x86.exe" /passive /norestart' + DetailPrint "Sleep to ensure unlock of vc_redist file after installation..." + Sleep 3000 Delete "$INSTDIR\vc_redist.x86.exe" PastVcRedist86Check: IfFileExists "$INSTDIR\vc_redist.x64.exe" VcRedist64Exists PastVcRedist64Check VcRedist64Exists: ExecWait '"$INSTDIR\vc_redist.x64.exe" /passive /norestart' + DetailPrint "Sleep to ensure unlock of vc_redist file after installation..." + Sleep 3000 Delete "$INSTDIR\vc_redist.x64.exe" PastVcRedist64Check: @@ -310,4 +314,4 @@ LangString DESC_UnSecConfiguration ${LANG_ENGLISH} "Configurations, decks, card !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${UnSecApplication} $(DESC_UnSecApplication) !insertmacro MUI_DESCRIPTION_TEXT ${UnSecConfiguration} $(DESC_UnSecConfiguration) -!insertmacro MUI_UNFUNCTION_DESCRIPTION_END \ No newline at end of file +!insertmacro MUI_UNFUNCTION_DESCRIPTION_END