Consolidating multiple wxs files with the same file structure #7337
-
I would like to consolidate multiple wxs files that have the same directory structure and components. This is for the Swift toolchain on Windows where we currently have nearly duplicated installer definitions for our three supported architectures: x86, amd64 and arm64 (see We've thought of using a single file with guids that have an arch-component such as |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
As long as the MSIs install the different architectures into different folders (which I think is what you are saying with the If you want a deep analysis of your project, we offer code reviews at FireGiant. But after a quick look at your code, in your next major upgrade (aka when you can change the GUIDs), I'd recommend a pattern more like: <ComponentGroup Id='PickSomethingUseful' Directory='ReferenceTheRootDirectoryForTheFollowingComponents'>
<Component>
<File Source="path\to\file.ext" />
</Component>
</ComponentGroup> I bet on a deeper review there is a lot you could simplify with a few My first impression is that you're typing a lot more .wxs code than is necessary. |
Beta Was this translation helpful? Give feedback.
-
Also take a look at |
Beta Was this translation helpful? Give feedback.
-
I was under the impression that auto-generated GUIDs did not do upgrades very well (and is part of the problem with the use of heat). If that is not the case and you can use auto-generated GUIDs, that sounds really interesting. |
Beta Was this translation helpful? Give feedback.
As long as the MSIs install the different architectures into different folders (which I think is what you are saying with the
ProgramFiles
references, and presumably you do since they can all be installed on the same computer), WiX can auto-assign the GUIDs for you.If you want a deep analysis of your project, we offer code reviews at FireGiant. But after a quick look at your code, in your next major upgrade (aka when you can change the GUIDs), I'd recommend a pattern more like:
I bet on a deeper rev…