The approach that I used, (some time ago before I switched to using a mba), is (as I recall)
1) Define a string variable in your Bundle and make it overridable-'yes'. <Variable Name='svWelcomeMessage' Value='some default text' Type='string' bal:Overridable='yes'/> 2) In the localization file define a sting which uses that string variable. <String Id="WelcomeMsg">[svWelcomeMessage]</String> 3) Make a copy of the BAFunctions project (included in the wix source is a sample project). Look at: src\burn\Samples\bafunctions 4) In OnDetectComplete, implement code that checks for the prerequisite and then set the Engine String variable to the message which you want to display. hr = m_pEngine->SetVariableString(L"svWelcomeMessage", "This is my message."); The above is from memory. You may need to make some syntax adjustments. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-Based-content-display-in-theme-file-tp7595843p7595845.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users