PDA

View Full Version : Unable to install repacked CAB file.


SonicFlare
2nd May 2009, 02:25 PM
I have a strange problem with the repacked cab files.
I use CabLib (http://www.codeproject.com/KB/files/CABCompressExtract.aspx) for compression and extraction.
This lib can extract and compress cab's without any problems, but the problem starts with old cabs (with binary inf file *.000). Repacked cab are not installed by wceload. It's just prints "Installation was unsuccessful".
However, if you do the same thing with the "new" cab's (with _setup.xml) they will work fine.
And now I'm stuck. What is the trick with those files? Are the .000 file should be at the specific offset?

One workaround of this, is based on .000 file generate _setup.xml... but i really don't want to do that :)

Both file attached.
The target OS is 6+


UPDATED:
Ok, i've figured it out, as i suspect, the .000 file should be the first in the cab, but i was compresing directory. Thanks for the help anyway :D