Shmarya Rubenstein wrote:
> - A set of merge-modules for various "software components".
The first question: Do you need merge modules at all? They complicate 
things, as you've discovered, and with .wixlibs, they're not necessary 
unless you need to distribute them outside your organization.

You have to link to create a merge module, so WiX has to resolve all the 
references. .wixlibs can have "dangling" references up until you link, 
which would solve this problem.
> What seems to happen is that when linking the merge-module, the entire 
> ExitDialog is brought into the module and 're-branded' to be GUID 
> qualified. IE: I end up with a bunch of 
> "ExitDialog.CF74FF55_B670_488B_85AE_785C01C14AFB " Dialog keys all 
> over the show. Most importantly, for the DoAction event in the 
> ControlEvent table.
Yes, that makes sense. It's legal to have a dialog in a merge module. 
Having a control event for a dialog would create a reference to the 
dialog. So when you link the module, WiX would pull in the referenced 
sections.
> When the merge-module is linked into the actual MSI build (which also 
> has the wixui.wixlib linked so taht it can display UI), ExitDialog is 
> *again* brought into the final MSI, such that there are both " 
> ExitDialog.CF74FF55_B670_488B_85AE_785C01C14AFB" and "ExitDialog" 
> Dialog keys. 
Again, that makes sense from the WiX perspective -- they're two 
different dialogs. Light has to treat merge modules as black boxes, so 
it can't know that the dialog is one it already knows about.

The easiest solution is to stop using merge modules. Another approach 
would be to keep all your UI in one section (presumably the product). 
You can keep the CA in the module and then publish the DoAction control 
event from the product.

-- 
sig://boB
http://bobs.org


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to