Skip to content

fix(install): Retry temporary executable cleanup - #915

Merged
MathurAditya724 merged 1 commit into
masterfrom
codex/fix-windows-installer-cleanup
Oct 21, 2026
Merged

MathurAditya724 merged 1 commit into
masterfrom
codex/fix-windows-installer-cleanup

Conversation

@MathurAditya724

Copy link
Copy Markdown
Member

Windows can briefly retain a lock on the temporary executable after Craft finishes installing. The installer's EXIT trap treated that cleanup failure as an installation failure, causing the Windows distribution check on master to fail despite a successful install.

Retry temporary directory removal up to five times and warn if it remains blocked, while preserving the original installation exit status and cleaning the staging directory independently. Regression tests exercise temporary locks, persistent locks after success, and persistent locks after failed version verification.

Preserve the installation result when Windows temporarily locks an executed binary. Retry temporary directory removal and warn if cleanup remains blocked.
@MathurAditya724
MathurAditya724 marked this pull request as ready for review October 21, 2026 16:50
@MathurAditya724
MathurAditya724 enabled auto-merge (squash) October 21, 2026 16:51
@MathurAditya724
MathurAditya724 merged commit 1ad2856 into master Oct 21, 2026
27 checks passed
@MathurAditya724
MathurAditya724 deleted the codex/fix-windows-installer-cleanup branch October 21, 2026 17:16

This branch was previously deployed

1 inactive deployment
false — ce7d9505 Deployed Oct 21, 2026 by MathurAditya724 via Build #3143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants