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

Ensure naked files take Subdirectory into account. #557

Merged
merged 2 commits into from
Dec 29, 2024
Merged

Conversation

barnson
Copy link
Member

@barnson barnson commented Aug 3, 2024

Naked files generated their ids using the attributes that are common to both naked and clothed files. But naked files also support Subdirectory to magic up a subdirectory in a specified directory (Directory) or the default INSTALLFOLDER. That subdirectory needs to factor in to the generated file id (which is then used as the component id too). Without it, generated ids for files with the same name but from different Subdirectory values would be duplicated. (Authored file ids must also continue to be supported.)

Naked files now generate different file and component ids. :(

Fixes wixtoolset/issues#8674

@barnson barnson requested a review from robmen August 3, 2024 20:38
@barnson barnson force-pushed the bob/wixbug8674 branch 2 times, most recently from d9c3799 to e804d30 Compare August 4, 2024 02:34
@barnson barnson self-assigned this Sep 3, 2024
@robmen robmen enabled auto-merge (rebase) December 27, 2024 06:18
@barnson
Copy link
Member Author

barnson commented Dec 27, 2024

@robmen, you enabled automerge but didn't approve.

@robmen
Copy link
Member

robmen commented Dec 27, 2024

Yes. I'm still mulling over this one.

Naked files generated their ids using the attributes that are common to
both naked and clothed files. But naked files also support @subdirectory
to magic up a subdirectory in a specified directory (@Directory) or the
default INSTALLFOLDER. That subdirectory needs to factor in to the
generated file id (which is then used as the component id too).
Without it, generated ids for files with the same name but from
different @subdirectory values would be duplicated. (Authored file ids
must also continue to be supported.)

Naked files now generate different file and component ids. :(

Fixes wixtoolset/issues#8674
src/wix/WixToolset.Core/Compiler.cs Outdated Show resolved Hide resolved
Copy link
Member

@robmen robmen left a comment

Choose a reason for hiding this comment

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

I like this much better. One nit.

src/wix/WixToolset.Core/Compiler.cs Show resolved Hide resolved
@robmen robmen merged commit a4fb0e4 into main Dec 29, 2024
2 checks passed
@robmen robmen deleted the bob/wixbug8674 branch December 29, 2024 03:39
@github-actions github-actions bot locked and limited conversation to collaborators Dec 29, 2024
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.

Naked Files can result in WIX0095 errors in mysterious circumstances
2 participants