Your last approach is correct. In  general, you:
Place resources in a fragment in a separate file.
Add the file to the project.
Reference resources from your main wxs file (or any wxs file that it already
references) using an xxxRef.
When candle runs, it compiles the wxs file into a wixobj because it is in the
project.
When light runs, it will see the ref to the fragment and pull in the relevant
wixobj created by candle.

FragmentRefs are deprecated - just reference the fragment contents.
It sounds like you're doing it right. You might have made a mistake
somewhere. Try it with a minimal project if necessary to see how it works.

-----Original Message-----
From: Tristen Fielding [mailto:tfield...@tradestation.com] 
Sent: 12 February 2013 22:55
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Fragments and Binary elements...

We have a very large wix project and we would like to break it apart. One of
the things we would like to do is move several of our <Binary> element to a
fragment but we can't seem to figure out how to make it work.

We have something like define in the master.wxs file:

    <Binary Id="WixUI_Bmp_Dialog"
SourceFile="$(var.MEDIAPATH)\side_panel.bmp" />
    <Binary Id="WixUI_Bmp_Banner"
SourceFile="$(var.MEDIAPATH)\WizardHeader.bmp" />
    <Binary Id="WixUI_Bmp_BannerJpn"
SourceFile="$(var.MEDIAPATH)\WizardHeaderJpn.bmp" />
    <Binary Id="WixUI_Bmp_Footer"
SourceFile="$(var.MEDIAPATH)\WizardFooter.bmp" />

    <Binary Id="FirstProgressBMP"
SourceFile="$(var.MEDIAPATH)\1_awards12_A.bmp" />
    <Binary Id="SecondProgressBMP"
SourceFile="$(var.MEDIAPATH)\2_awards12_B.bmp" />
    <Binary Id="ThirdProgressBMP"
SourceFile="$(var.MEDIAPATH)\3_awards12_C.bmp" />
    <Binary Id="FourthProgressBMP"
SourceFile="$(var.MEDIAPATH)\4_awards12_D.bmp" />

So we tried simply to move these definition into a new file and wrapped them
with a <Fragment> element.

When we built the project the project didn't complain but the binaries
weren't in the binaries table.

So, we then tried to reference these elements using <BinaryRef> and
<FragmentRef> but we got error instead.

What is the right way to reference these Binary elements in the master.wxs
file?

Thanks.

Tristen Fielding
Sr. Software Developer / Program Lead
TradeStation Group, Inc.
http://www.TradeStation.com<http://www.tradestation.com/>

8050 SW 10th Street, Suite 2000
Plantation, FL 33324
Tel.  954.652.7320
Fax 954.652.5320



TradeStation Group, Inc. is the parent company of four operating
subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and
NFA), IBFX, Inc. (Member NFA), TradeStation Technologies, Inc., a trading
software and subscription company, and TradeStation Europe Limited, a United
Kingdom, FSA-authorized introducing brokerage firm. None of these companies
provides trading or investment advice, recommendations or endorsements of any
kind. The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. Forex products and services are offered by TradeStation Forex, a
division of IBFX, Inc.

-----------------------------------------------------------------------------
-
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to