Skip to content

Fix user settings deleted on update#48

Merged
danielchalmers merged 1 commit into
mainfrom
codex/remove-msi-wildcard
Jun 11, 2026
Merged

Fix user settings deleted on update#48
danielchalmers merged 1 commit into
mainfrom
codex/remove-msi-wildcard

Conversation

@danielchalmers

Copy link
Copy Markdown
Owner

Summary

Part of #46.

This is the smallest installer data-safety change from the issue: remove the wildcard RemoveFile Name="*.*" cleanup from the main executable component.

Settings currently live beside the executable, so wildcard-deleting the install folder can remove user-owned files such as:

  • RadialActions.settings
  • .corrupt-* recovery snapshots from the settings safety PR
  • any other user-owned files in the per-user install directory

The existing RemoveFolder entry remains. Windows Installer can still remove the install folder when it is empty, but the MSI no longer deletes files it does not own just to make cleanup look complete.

Out Of Scope

  • no WiX Util CloseApplication
  • no graceful app shutdown/save changes
  • no settings relocation
  • no backup/restore recovery flow

Validation

  • dotnet test RadialActions.sln (62 passed)
  • dotnet publish .\RadialActions\RadialActions.csproj -o publish\x64 -c Release -f net10.0-windows --os win --arch x64 --self-contained -p:PublishSingleFile=true -p:DebugType=embedded -p:Version=1.2.3
  • WiX 6.0.2 x64 MSI build: wix build Package.wxs -arch x64 -d Version=1.2.3 -d Arch=x64 -o publish\RadialActions-1.2.3-x64.msi

Radial Actions currently stores settings beside the executable. The MSI authoring removed every file in the install folder during upgrade and uninstall with a wildcard RemoveFile entry, which could match user-owned files such as RadialActions.settings or recovery snapshots.

This removes only that wildcard cleanup. The existing RemoveFolder entry remains, so Windows Installer can still remove the install directory when it is empty, but it will no longer delete files it does not own just to make the directory removable.

This PR intentionally avoids adding graceful close behavior or WiX Util authoring. It is the smallest installer data-safety change and can be reviewed independently from the settings persistence work.
@danielchalmers danielchalmers marked this pull request as ready for review June 11, 2026 17:21
@danielchalmers danielchalmers changed the title [codex] Stop wildcard-deleting install folder files Fix user settings deleted on update Jun 11, 2026
@danielchalmers danielchalmers merged commit 859b5d1 into main Jun 11, 2026
1 check passed
@danielchalmers danielchalmers deleted the codex/remove-msi-wildcard branch June 11, 2026 17: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