Introduce delay in Windows installer to improve update reliability
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Added a 3-second sleep before clearing leftover installation directories, allowing for smoother transitions during the update process and reducing potential conflicts with file locks.
This commit is contained in:
Tom Butcher 2026-08-09 00:16:10 +01:00
parent a0ea239aa6
commit de2c93d82f

View File

@ -131,6 +131,8 @@ Var FinalInstDir
; is any process's working directory cannot be renamed, so move out first.
SetOutPath "$TEMP"
Sleep 3000
; Clear a leftover .old from a previous interrupted update.
${If} ${FileExists} "$FinalInstDir.old"
DetailPrint "Removing leftover Farm Control.old..."