Alternatively you can use the BinaryWrite CA from http://msiext.codeplex.com/ to extract binaries from a binary stream
http://code.dblock.org/Source/msiext/1.2/Docs/_msi_binary_8h.html#ae1b642e8fa3ad62c069a7a76eb90f688 should be the direct link to the CA documentation. DTF should have some functionality to process binary streams. As I assume you are german speaking did you consider Andreas Kerl "Inside Windows Installer 4.5" chapter 4 Deployment Tools Foundation or his code samples available at http://www.microsoft-press.de/ . They are a good intorduction when starting coding in DTF. But I'm not sure whether he discusses binary streams. Alternatively check out WiX sources and their good code samples esp. src\DTF\Samples\ManagedCASampleCAs.cs below session.Log("Testing record stream extraction..."); Regards Tobias 2011/3/4 Dan Vasilov <d...@rms.ro>: > You may want to take a look at > http://blogs.msdn.com/b/icumove/archive/2009/06/23/custom-action-using-wix-r > eading-from-the-binary-table.aspx. > Also http://www.installsite.org/pages/en/msi/ca.htm lists an example > " Streaming a File From the Binary Table". > > 'if the size of the file allows' => if you only have to read a 6KB > file and you are sure this size will not greatly increase in the future, > then you can safely use File.ReadAllBytes, knowing your code does not risk > allocating a large byte array. Otherwise, you have to plan the file reading > strategy (like creating a buffer and iteratively reading in this buffer > until you have processed all data from the file). > > > > > -----Original Message----- > From: Simon Chromow [mailto:simon.chro...@bewotec.de] > Sent: Friday, March 04, 2011 3:35 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to read binary file content using c#custom > action??? > > What I don't understand, is how to get the file from the binary table. > Could you give me an example? > What means 'if the size of the file allows' ? > Is there a maximum file size for this? > > Windows Explorer says the file has 6KB. > > -----Ursprüngliche Nachricht----- > Von: Dan Vasilov [mailto:d...@rms.ro] > Gesendet: Freitag, 4. März 2011 13:29 > An: 'General discussion for Windows Installer XML toolset.' > Betreff: Re: [WiX-users] How to read binary file content using c#custom > action??? > > In .NET you will use a BinaryReader or File.ReadAllBytes, if the > size of the file allows. Does this answer your question? > > Dan > > > -----Original Message----- > From: Simon Chromow [mailto:simon.chro...@bewotec.de] > Sent: Friday, March 04, 2011 1:05 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] How to read binary file content using c# custom > action??? > > Hi wix-users, > > Does anybody know, > > how to read content from a specific binary file using a c# custom-action? > > > > Thanks for your efforts > > Simon > > ---------------------------------------------------------------------------- > -- > What You Don't Know About Data Connectivity CAN Hurt You This paper provides > an overview of data connectivity, details its effect on application quality, > and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------------- > -- > What You Don't Know About Data Connectivity CAN Hurt You This paper provides > an overview of data connectivity, details its effect on application quality, > and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- > -- > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users