Repository navigation
Template 0.1.47: the Windows uninstall stops the app's running processes - #72
Merged
Merged
Conversation
Testers who uninstalled while Jupyter was open found the app folder left behind (python.exe, its DLLs, Lib, DLLs, Library: 0.4 to 4 GB): Windows cannot delete files in use, and the restart-time deletion the uninstaller asks for needs an administrator. pre_uninstall.bat now stops every process whose program is inside the app folder (sparing the uninstaller and its helpers) and waits for them, so the uninstall removes the whole folder. The installer round trip's --busy mode becomes strict: the running Python of the app must be stopped and the folder gone. Migration 0.1.47 adds the lines before "echo Pre-uninstall completed!" (line endings kept, SKIPPED when that line is missing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
… by full path, a log of what was stopped The busy round trip found the running Python of the app still running after the uninstall, with nothing to show why. The command now takes the app folder from %~dp0 (not the PREFIX variable), calls PowerShell by its full path and writes %TEMP%\labconstrictor_pre_uninstall.log, which the uninstaller shows and the round trip prints and uploads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Template 0.1.47: on Windows, the uninstall stops the app's running processes first, so it removes the whole app folder.
The testers of LabConstrictor-CAREamics 0.0.5 found the app folder left behind on two Windows 11 computers: 433 MB on one and 4.1 GB on the other. What stayed was
python.exe,python3.dll,python312.dll, the VC++ runtime DLLs and the foldersDLLs,Lib,Libraryand<app>. Jupyter was still open.Windows cannot delete a file that a running process uses. The uninstaller asks for those files to be deleted at the next restart, but Windows does that only for an administrator, and the apps are installed for one user. The
--busyround trip of #71 showed the same files staying in CI, even after the process ended.Changes
app/bash_bat_scripts/pre_uninstall.bat: one PowerShell command, after three REM lines, placed just beforeecho Pre-uninstall completed!. It:_conda.exeandUninstall-*.exe;Notebook edits since Jupyter's last autosave are lost. Linux and macOS are unchanged, because
rm -rfremoves files that are in use.Installer round trip:
--busyis now strict. The running Python of the app must be stopped and the folder must be gone, on the real Windows installer.Migration
v0_1_46_to_v0_1_47.py: adds the four lines beforeecho Pre-uninstall completed!and keeps the file's line endings. It reports SKIPPED when that line is missing, and does nothing on a second run..tools/docs/migration_0_1_47.md. It also covers removing what an older uninstall left.tests/test_template_sync_0_1_47.py, plus the helpertests/_v0_1_47.py, chained from_v0_1_46.Checks
pytest tests(635 passed), ruff and mypy.Checklist
Generated by Claude Code