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

Reply via email to