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