Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not pre-create data files in wix for uninstall cleanup #1738

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

zackattack01
Copy link
Contributor

Certain data directory files are pre-created as empty files during wix packaging, to ensure that these are cleaned up on uninstall.

However some deployments forcibly re-install a new MSI outside of the autoupdate flow. This will trigger the uninstall first, which is now able to remove those files, leaving the device in an unenrolled state

@directionless
Copy link
Contributor

I'm not sure I quite understand what this will do. Can you make a table of the various install/uninstall pairs? Or I don't quite know what?

Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I talked to Zack about this.

Our current understanding is that a lot of MSI upgrade/downgrade/repair behaviors work by first triggering an msi uninstall. In those cases we do not want to uninstall the database.

And while we do want to uninstall, on balance, it's worse than removing the DB on upgrades.

@zackattack01 zackattack01 added this pull request to the merge queue Jun 7, 2024
Merged via the queue into main with commit c3d420f Jun 7, 2024
32 checks passed
@zackattack01 zackattack01 deleted the zack/windows_datadir_stomping branch June 7, 2024 14:26
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.

4 participants