Here's some example code (this was WiX v2) for configurable merge modules:

In the merge module (foo.msm) => module GUID = 
03A6BA5C-D324-4BB6-9109-35DCAFA943FE:
====================================
                <!-- MODULE INTERFACE PROPERTIES -->
                <Configuration Name='Com_User_Property'                         
Format='Text'   DefaultValue='[COMUSER]'/>
                <Substitution Table='CustomAction' Row='SetCom_User'    
Column='Target'         Value='[=Com_User_Property]'/>
                <CustomAction Id='SetCom_User'                                  
Property='COMUSER'      Value='[COMUSER]'/>

                <InstallExecuteSequence>
                        <Custom Action='SetCom_User'                            
                                Before="LaunchConditions">1</Custom>
                </InstallExecuteSequence>


In the consuming installation:
====================================
                        <Merge Id='FooModule' src='foo.msm' DiskId='1' 
Language='1033'>
                                <ConfigurationData Name='Com_User_Property' 
Value='[COMUSER]'/>
                        </Merge>


Notes:
====================================

In the above example, I mapped the MSI property "COMUSER" to the merge module's 
property "COMUSER".  Note that when merge modules are built through WiX, module 
properties are 'modularized' meaning IDs get ".<ModuleGUID.Replace("-", "_")>" 
added to them.  So my merge module's property will be 
"COMUSER.03A6BA5C_D324_4BB6_9109_35DCAFA943FE".

So if you're referencing the "COMUSER" property within WiX code within your 
merge module, you can simply refer to "COMUSER" (the modularization will happen 
for you auto-magically).  If you're referring to the property through custom 
action code within the merge module, you'll want to refer to it as 
"COMUSER.03A6BA5C_D324_4BB6_9109_35DCAFA943FE".




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching
Sent: Thursday, July 10, 2008 1:01 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Configurable Merge Modules

Configurable Merge Modules are pretty complicated beasties but there is 
documentation in the MSI SDK about them.  I've never tried to build one myself 
because I never needed it... <shrug/>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher 
Karper
Sent: Wednesday, July 09, 2008 12:22
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Configurable Merge Modules

I'm still working on my merge module solution here, and my last e-mail riled
up some interesting convo, but never really answered my questions.   I'm
trying to use the Configuration element in my modules, does this just make
the elements available as properties?   Do I need to access them some other
way?
If someone had an example of how to do this, that would help me out a great
deal I think.   I've searched high and low, and just can't seem to find one.

Thanks for any assistance. :-)
Chris
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to