For the WiX installer, I am using a managed bootstrapper application (MBA).
In that, for the Major upgrade case, using WiX+Burn setup, Do we need to keep the Component ID same all the time (for all installer versions)?
I am using WiX harvesting to generate a component file programmatically. That will allow us to generate constant/dynamic component GUID. And currently, I am generating a new GUID all the time using GenerateGuidsNow="true"
.
- I observed that, if component GUID for the newer version,
- Same as the older version component GUID: after Major upgrade, all binaries/files are placed properly on the target directory.
- Generated new component GUID: after Major upgrade, binaries/files are removed from the target directory. (binaries should not be removed)
Questions
- What will be the behavior of Component Id for different updates (specifically for a Major Upgrade)? Do we need to keep the same?
- If we need to keep the same, then I have to do a major upgrade of one legacy installer and I need to keep the same component GUID with the newer WiX+Burn installer. So is it possible with WiX harvesting to generate a component file programmatically with existing (pre-defined) Component GUID?