Hi,

Thanks, this patch might be more generic than the one already in svn.
I'll need to do some regression testing though.


Cheers,

David


On Wed, 2009-07-22 at 10:05 +0100, Mark Ellis wrote:
> On Wed, 2009-07-22 at 10:58 +0200, serpilliere serpilliere wrote:
> > yop
> > 
> > 
> 
> Hi, I don't really do much with unshield, don't know the file format at
> all, so I've forwarded your message to the synce-devel list.
> 
> Mark
> 
> > I was testing unshield on a Dell archive.
> > It didn't work cause it seems not seen good version:
> > """
> > [unshield_read_headers:284] Version 0x020005dc handled as major
> > version 0
> > """
> > 
> > So After debugging and hexdump the archive, it unshield works by
> > patching version test and force it to "9" 
> > (file desciption are avery 0x57bytes, md5sum is in desc file...)
> > 
> > 
> > So I made a little patch, but maybe version handling is different in
> > the present cabfile.
> > patch:
> > """
> > diff -r 56b5c54882d1 lib/libunshield.c
> > --- a/lib/libunshield.c Wed Jul 22 09:25:49 2009 +0200
> > +++ b/lib/libunshield.c Wed Jul 22 10:52:49 2009 +0200
> > @@ -269,7 +269,10 @@
> >          goto error;
> >        }
> > 
> > -      header->major_version = (header->common.version >> 12) & 0xf;
> > +      if ((header->common.version >> 12)  == 0x2000)
> > +             header->major_version = 9;
> > +      else
> > +             header->major_version = (header->common.version >> 12) &
> > 0xf;
> > 
> >  #if 0
> >        if (header->major_version < 5)
> > """
> > 
> > Maybe its a bit wreid, but it works :)
> > 
> > 
> > If you wand to test the archive, it can be downloaded on DELL site at:
> > http://support.dell.com/support/downloads/download.aspx?c=us&cs=555&l=en&s=biz&releaseid=R206690&SystemID=LAT_E5400&servicetag=&os=WLH&osl=en&deviceid=16358&devlib=0&typecnt=0&vercnt=3&catid=-1&impid=-1&formatcnt=2&libid=25&fileid=289361
> > 
> > (sorry for big link)
> > or simplier:
> > 
> > ftp://ftp.us.dell.com/app/DRVR_WIN_R206690.EXE
> > 
> > After unzipping the .exe, there is another exe to unzip:
> > Dell_ControlPoint-Security-M_A07_R206690.exe
> > and after unzipping this one the cab is:
> > data1.hdr data1.cab data2.cab
> > 
> > Note the setup.exe of installshied seems to have 15.0.0.498 in version
> > property.
> > 
> > 
> > +
> > serpilliere
> > 
> > 
> ------------------------------------------------------------------------------
> _______________________________________________
> SynCE-Devel mailing list
> SynCE-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synce-devel
-- 


------------------------------------------------------------------------------
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to