I sometimes suggest things from the top of my head but this I actually tried to
compile and link. And for Wix2.0.5325.0 it works. What version are you using?
You can leave out <![CDATA[ and ]]> stuff as long as your condition doesn't use
< or > as the expression. I picked it up as a best practice.
Rene
________________________________
From: [EMAIL PROTECTED] on behalf of stian
Sent: Wed 8/29/2007 14:29
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] GDI+ MergeModule
I put the condition under the component. Assume that is okay? However, I'm
having problems with the condition.. candle.exe won't eat it. Here is what I
use:
<Component Guid="{..}" Id="C_GDI">
<Condition>
<![CDATA[(VersionNT=500) Or (NOT Version9X="") ]]>
</Condition>
<File DiskId="1" Id="id1893" KeyPath="yes" Name="gdiplus.dll" Vital="yes"
src="gdiplus.dll" />
</Component>
And the error I get from candle is:
candle.exe : error CNDL0001 : Cannot have ']]>' inside an XML CDATA block.
Any clues?
Best regards.
Schrieken, Rene wrote:
>
> I have no experience with Installshield so I cannot comment on that. And
> if you have a working merge module that will`save time but i really wonder
> what the benefit is if it is not findable and does not work as intended.
>
> This snippet might help you out. Disclaimer: I'm not good at conditions so
> maybe someone on the list can check and correct me. And I didn't check if
> GdiPlus.dll needs to be registered. If it does you need to add that as
> well, you can use tallow or heat to obtain the registry markup.
>
> <Component Id="C_gdiplus" DiskId="1" Guid="YourGuidHere">
> <File Id="F_gdiplus" Name="GDIPLU_1.DLL" LongName="GdiPlus.dll"
> Source="GdiPlus.dll" />
> <Condition>
> <![CDATA[(VersionNT=500) Or (NOT Version9X="") ]]>
> </Condition>
> </Component>
>
> if you add the Component Id to your feature. I'm not sure if it is better
> to have the condition on the feature. But there is sure someone who want
> to educate me on that
>
> Rene
>
>
--
View this message in context:
http://www.nabble.com/GDI%2B-MergeModule-tf4316091.html#a12386104
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users