Skip to content

Add optional uninstall cleanup for config and logs - #12

Merged
kellyelton merged 2 commits into
masterfrom
feature/uninstall-cleanup-options
Jan 2, 2026
Merged

Add optional uninstall cleanup for config and logs#12
kellyelton merged 2 commits into
masterfrom
feature/uninstall-cleanup-options

Conversation

@kellyelton

Copy link
Copy Markdown
Owner

Add REMOVECONFIG and REMOVELOGS properties for optional cleanup on uninstall. Replace hardcoded ProgramData paths with environment variables.

- Add REMOVECONFIG and REMOVELOGS properties (default 0) for optional cleanup on uninstall
- When REMOVECONFIG=1, removes config.json during uninstall
- When REMOVELOGS=1, removes logs folder during uninstall
- When both are set, also removes parent MaxBackup folder
- Replace hardcoded C:\ProgramData paths with Environment.SpecialFolder.CommonApplicationData
- Fixes paths in ServiceConfigManager, Program.cs, and WatchCommand.cs

Usage: msiexec /x {ProductCode} REMOVECONFIG=1 REMOVELOGS=1
@continue

continue Bot commented Jan 2, 2026

Copy link
Copy Markdown

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

- Add critical reminder to create feature branch BEFORE making any code changes
- Add GitHub CLI commands for waiting on workflows (gh run watch, gh pr checks)
- Add complete workflow example with all commands
- Emphasize waiting for test release before creating PR
@kellyelton
kellyelton merged commit d815f6c into master Jan 2, 2026
1 check passed
@kellyelton
kellyelton deleted the feature/uninstall-cleanup-options branch January 2, 2026 20:21
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.

1 participant