As far as Media element, this can help:
http://blogs.technet.com/alexshev/archive/2008/04/04/from-msi-to-wix-part-16
-installable-items-handling-installation-media.aspx 

I have suspicion that wxs files created by Paraffin contain fragments and in
order to include content of fragment to resulting msi you need to reference
something from fragment in your main wxs file. Search for elements like
FeatureRef, ComponentRef, PropertyRef, etc.

Alex





-----Original Message-----
From: jo...@msli.com [mailto:jo...@msli.com] 
Sent: Wednesday, July 22, 2009 1:38 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] end up with emtpy msi

I am using wix3.0.5419.0 to generate an msi from 2 wxs files (first sets
project, second sets files in a <Fragment> tag), but the resulting msi
is too small and doesn't work.

Incantations to generate msi in my build product directory:
Paraffin.exe -dir '.\.' -custom "MyApp" -g -alias '.\' -ext '.WXS'
MyApp.fragment.wxs
candle.exe MyApp.wxs MyApp.fragment.wxs' -ext WixUIExtension.dll
light -sval  MyApp.wixobj MyApp.fragment.wixobj -o MyApp.msi -ext
WixUIExtension.dll

I used dark to de-construct the resulting msi into wxs, which only
contains the first wxs and none of the second wxs.  I also used dark's
-x, and the resulting File directory is empty, so I am missing some step
to load files into the msi.

The first wxs is created by hand, and the second wxs is created by
Paraffin3.0, and contains all my files.  As an experiment, I joined both
into one wxs file and then tried to build, which errors:
MyApp.wxs(2310) : error LGHT0094 : Unresolved reference to symbol 'Media:1'
in section 'Product:{20A1EE0E-832E-4541-9C9B-6527AB358F76}'.

Incantation:  
candle.exe MyApp.wxs  -cultures:en-us  -ext WixUIExtension.dll
light -sval MyApp.wixobj -o MyApp.msi -cultures:en-us -ext
WixUIExtension.dll


I am new to wix, but looking at other people's wxs files, I see a line 
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="none"
/>
What makes this cab file?
Is it necessary?
Is this why i get the error above?

In the wix docs, and searching the net,  I don't see a step in the
procedure to create a cab file, and my msi is definitely empty.

I feel like I need to be steered in the right direction.  
Is there a wix tool that makes the cab? 
Or am I supposed to deal with wix after making the cab file?  



CONFIDENTIALITY NOTICE:  This electronic mail message and any attachment
hereto may contain confidential information of Meyer Sound Laboratories,
Incorporated and is intended for the personal and confidential use of the
designated recipient(s) only.  If you are not the intended recipient (or
responsible for delivering the message to the intended recipient), you have
received this message in error and any review, distribution, or copying of
this message or any attachment hereto is prohibited.  If you have received
this message in error, please promptly notify the sender and permanently
delete it from your computer.

----------------------------------------------------------------------------
--
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to