Hi all,


I am using Microsoft.Deployment.WindowsInstaller API to add new files (not
originally existing in MSI) into a MSI. However, I am unable to update the
MSI with the new .CAB file and need some help in identifying problem in the
code.





---- cabFile is the location of media1.cab file-----------

Microsoft.Deployment.Compression.Cab.CabInfo info =
                            new
Microsoft.Deployment.Compression.Cab.CabInfo(cabFile);
info.PackFiles(Path.Combine(pkg.WorkingDirectory, "Files"),
filesInWorkingDir, filesInWorkingDir);    
Record updStreamRec = new Record(1);
updStreamRec.SetStream(1, cabFile);
pkg.Execute(String.Format(
                            "UPDATE `_Streams` SET `Data` = ? WHERE `Name` =
'{0}'", mediaCab),
                            updStreamRec);
pkg.Commit();
pkg.Close();


When i run dark.exe on the resultant .msi file, I dont see any files
extracted. Why is the .CAB file not getting updated in the MSI?


thanks,
sangeeta







                    

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/DTF-How-to-add-CAB-file-into-InstallPackage-tp5796761p5796761.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to