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

RemoveFoldersEx test and error message correction #556

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

bevanweiss
Copy link
Contributor

Adds in an integration test case for RemoveFoldersEx Util extension. Just a simple install / uninstall with removing files/folders.
Nothing particularly complex about it, although one file doesn't have an extension, just to confirm RemoveFiles with . would remove this file also.

Fixed up a typo in the error message, and split off the invalid file from the junction point error messaging (so there's no confusing message about a junction point, when the actual issue is an incorrect path).

Contains no files etc to verify that Remove action can still occur without
other elements bringing in the RemoveFiles Standard Action


Signed-off-by: Bevan Weiss <[email protected]>
When ::GetFileAttributesW returns 0xFFFFFFFF it means
'Invalid File/Folder'
So we should return a matching error message.
To avoid confusing invalid paths with junctions (in error message)

Unfortunately the constant for this is not defined.
So just define it here as though it would be.

Signed-off-by: Bevan Weiss <[email protected]>
@barnson barnson force-pushed the RemoveFoldersEx_test branch from 7368297 to 79948c0 Compare September 3, 2024 02:59
@barnson barnson enabled auto-merge (rebase) September 3, 2024 03:01
@barnson barnson merged commit 638532e into wixtoolset:main Sep 3, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
@bevanweiss bevanweiss deleted the RemoveFoldersEx_test branch September 3, 2024 05:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants