Custom Actions in Include Fragment file are not added to MSI:
To reproduce:
- Create new <include> <fragment> WIX file (.wxi)</fragment></include>
- Create reference from Product.wxs by using include directive: <?include "" />
- Add custom actions to fragment (ONLY Custom Actions and their Install Sequence) - I am using Type 38
- Build
- CAs are not in the MSI file
Workaround:
- Create dummy Component Group to the Fragment
- Reference it from the Product file
- Build
- Iesh! The CAs are there! :^)
If you're using a Fragment, there's no reason to also make it an Include file. To reference a custom action, use CustomActionRef or a *Ref to any other named element in the fragment.