No, you always have to add some sort of authoring under the Product
element to pull in declarations from anywhere else, including a Fragment
even in the same file. In this case the authoring would be the InstallExecuteSequence/Custom/@Action
reference.
There are at least three ways to avoid putting the text of that element directly into your setup project code:
- a preprocessor
<?include ../ProjectA/libraryA.wxi ?>
, which would necessitate an absolute or relative path - a custom element, implemented in an extension
- a merge module reference
An extension seems like overkill. I'd use an include if I could.