I rewrote my code to use the CabInfo class instead of the CabEngine class 
and it works now.  I'm not sure what's different other then the resulting 
.CAB is 1KB smaller but MSI seems happy now.

----------------------------------------

From: "Christopher Painter" <chr...@iswix.com>

Sent: Saturday, June 16, 2012 10:42 PM

To: "General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>, "General discussion for Windows 
Installer XML toolset." <wix-users@lists.sourceforge.net>

Subject: Re: [WiX-users] Custom Application to Add file to a built MSI 
using DTF


I did a test and used makecab to create the cab file and the installer 

worked.  So the source of my problem appears to be in using DTF to generate 


the CAB.  I'm pretty sure that all of my other authoring and streaming is 

correct.


----------------------------------------


From: "Christopher Painter" <chr...@iswix.com>


Sent: Saturday, June 16, 2012 10:25 PM


To: "General discussion for Windows Installer XML toolset." 

<wix-users@lists.sourceforge.net>


Subject: [WiX-users] Custom Application to Add file to a built MSI using 

DTF


I'm working on a C#/DTF application that can take a base MSI and among 


other things add files to it.  I'm using the CabEngine class in DTF to 


create the ZIP and various SQL updates to generate rows into the 


FeatureComponents, Component, Directory, File and Media tables.  I'm also 


updating the _Streams table to embed the CAB into the MSI.


I'm getting the following error message when trying to install or admin 


install:


Error 1334: The file 'file110' cannot be installed because the file cannot 



be found in cabinet file 'Data2.cab'. This could indicate a network error, 



an error reading from the CD-ROM, or a problem with this package.


'file110' is what I've set the primary key of the File table to and it's 


also the name of the file that I compressed into the cab.  I can explore 


the cab using Windows Explorer and I can see the file.  If I extract it and 



rename it to the correct filename ( FileName column ) then the file is the 



correct contents also.


I'm going to keep digging into this but I was wondering if anyone had any 


suggestions on what I might be missing.


Thanks,


Chris


----------------------------------------------------------------------------


--


Live Security Virtual Conference


Exclusive live event will cover all the ways today's security and 


threat landscape has changed and how IT managers can respond. Discussions 


will include endpoint security, mobile security and the latest in malware 


threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________


WiX-users mailing list


WiX-users@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--

Live Security Virtual Conference

Exclusive live event will cover all the ways today's security and 

threat landscape has changed and how IT managers can respond. Discussions 

will include endpoint security, mobile security and the latest in malware 

threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to