Thanks, Alex!

I've long wondered about the CDATA thing.

On Wed, Feb 18, 2009 at 11:18 AM, Alexander Shevchuk <
alexander.shevc...@microsoft.com> wrote:

> Hi Colin,
>
> It is:
>
> <Property Id="XXX">
>  <RegistrySearch Id="YYY" ... />
> </Property>
>
> <Condition ...>
>  XXX
> </Condition>
>
> NOT:
>
> <Property Id="XXX">
>  <RegistrySearch Id="YYY" ... />
> </Property>
>
> <Condition ...>
>  YYY
> </Condition>
>
> Also, you want Property's Id to be in all uppercase.
> The only time when you need CDATA in condition is when condition text
> includes & > < ' " characters.
>
> Regards,
> Alex
>
>
>
>
> -----Original Message-----
> From: Colin Fox [mailto:greenene...@gmail.com]
> Sent: Wednesday, February 18, 2009 11:08 AM
> To: wix-users
> Subject: [WiX-users] Launch Conditions
>
> I'm trying to create a launch condition that makes sure SharePoint is
> installed. I thought this was the way to do it:
>
>    <Property Id="INSTALLDIR">
>        <RegistrySearch Id='SharepointRegistry' Type='raw' Win64='no'
>            Root='HKLM'
> Key='SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\SharePoint' />
>    </Property>
>
>    <Condition Message='SharePoint 2007 was not detected on the target
> computer.'>
>      SharepointRegistry
>    </Condition>
>
> But this always fails, even though the SharepointRegistry value does get
> set
> before the installation begins, because if SP is actually installed, the
> body of the package gets put in the correct place.
>
> What am I doing wrong here?
>
> Also - why are CDATA sections sometimes used inside conditions, and
> sometimes not? What's the difference?
>
> --
> Regards,
>  cf
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Regards,
 cf
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to