-
Notifications
You must be signed in to change notification settings - Fork 24
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
Naked File
s can result in WIX0095 errors in mysterious circumstances
#8674
Comments
barnson
added a commit
to wixtoolset/wix
that referenced
this issue
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
added a commit
to wixtoolset/wix
that referenced
this issue
Aug 4, 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
added a commit
to wixtoolset/wix
that referenced
this issue
Aug 4, 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
added a commit
to wixtoolset/wix
that referenced
this issue
Dec 27, 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
added a commit
to wixtoolset/wix
that referenced
this issue
Dec 28, 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WiX Version
5.0.1
.NET or MSBuild or Visual Studio Version
n/a
HeatWave Version
n/a
Windows Version
n/a
Repro Repo
No response
Repro Steps
wix build package.wxs
Actual Result
path\to\package.wxs(4) : error WIX0095: Multiple primary references were found for Component 'filbnxAhte7CMAiUkJkbiTH7FDb69c' in Feature 'WixDefaultFeature' and Feature 'WixDefaultFeature'.
path\to\package.wxs(5) : error WIX0095: Multiple primary references were found for Component 'filbnxAhte7CMAiUkJkbiTH7FDb69c' in Feature 'WixDefaultFeature' and Feature 'WixDefaultFeature'.
path\to\package.wxs(6) : error WIX0095: Multiple primary references were found for Component 'filbnxAhte7CMAiUkJkbiTH7FDb69c' in Feature 'WixDefaultFeature' and Feature 'WixDefaultFeature'.
path\to\package.wxs(7) : error WIX0095: Multiple primary references were found for Component 'filbnxAhte7CMAiUkJkbiTH7FDb69c' in Feature 'WixDefaultFeature' and Feature 'WixDefaultFeature'.
Expected Result
The files are going to different
Subdirectory
s, so there should not be duplicate anything, even though the fileName
s are the same. (The component ids are duplicated.)Acknowledgements
The text was updated successfully, but these errors were encountered: