The closest thing we have today is $(sys.PLATFORM) (which the documentation
says comes from the Package\@Platform attribute but IIRC actually comes from
Candle's "-arch" command-line switch). That doesn't help you with the WixLib
which may have been compiled using a separate invocation of Candle,
however...

One option is to use a convention that requires referencing
platform-specific items (separated by fragments) in your WixLib. That way,
you pull in the appropriate condition (that should be relatively clean: you
always leave out the parts that are for the other platforms you support) and
you may be able to wrap the appropriate fragment in a <?foreach?> to
minimize your own coding.

I wonder if we also need a "!(sys.)" namespace? That could get ugly if we
take it to far, however...

-Blair

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Monday, January 17, 2011 4:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Can a wixlib know the referring projects Package
Platform?

Not today but we're hitting issues with this in WiX v3.6. Still pondering an
answer...

On Mon, Jan 17, 2011 at 6:56 AM, Maillet, Ed <email...@unum.com> wrote:

> Hey all,
>  I'm trying to setup some conditions in a wixlib and I'm finding that some
> need to be based on the <Package> Platform attrib on the project that
> references my wixlib.
>
> How can that be done? The only idea I have seems a bit like a kludge.
>
>
> ----- Ed
>
>
>
>
----------------------------------------------------------------------------
--
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
----------------------------------------------------------------------------
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to