SOLVED -- (was: Re: PythonCE on Windows CE 6.0)
Banibrata Dutta <[email protected]> Tue, 28 Sep 2010 14:55:56 +0530
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
--===============2094834581== Content-Type: multipart/alternative; boundary=001636aa2b8ca760ce04914e6ee6 --001636aa2b8ca760ce04914e6ee6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Sep 28, 2010 at 1:36 PM, Lachezar Dobrev <[email protected]> wrote= : > I have used with some success lcab and cabextract (both under Linux). > However you should know, that the real culprit is the PYTHON~1.000 > file, that is a binary result from the _setup.xml =ABcompilation=BB. That > is, you need to fix that file AND _setup.xml, and then recombine the > files (THE ORDER IS RELEVANT) into a new .CAB file. > > Consider reading http://www.cabextract.org.uk/wince_cab_format/ > > I was able to =ABfix=BB the 000 file and the setup.xml, and ended up > with an installable .CAB file, but after installing it simply did not > work (the .exe has icon, but fails to start). > > Thanks Lachezar. I was almost afraid that I'd have to adopt that route, but I found a rather easy shortcut. All I had to do was to use the trial version (30 day trial) of *WinCE CAB Manager* <http://www.ocpsoftware.com/products.php> and set the -- ProcessorType =3D ALL (it was originally set to Strong-Arm / XScale, id=3D2= 577) Maximum OS Version =3D 6.99 (it was originally set to 5.99). Apparently, it= is fine to change all these versions to 0.0 as well. Save the CAB file, and installed it in WinCE6.0 machine, and it was all fine. In fact I have the Python2.5 shell running on this device, as expected, at the moment. Unfortunately, the WinCE installer removes the .CAB file after successful installation, but if someone's interested, I could recreate the .CAB. Wondering if the owners of thie PythonCE project would like to archive this .CAB file, especially under the category being compatible with WinCE 6.0 !! > 2010/9/28 Banibrata Dutta <[email protected]>: > > > > > > On Tue, Sep 28, 2010 at 11:42 AM, Gadget Steve (HM) > > <[email protected]> wrote: > >> > >> > >> From: Banibrata Dutta > >> Sent: Tuesday, September 28, 2010 6:37 AM > >> To: Jake Anderson ; [email protected] > >> Subject: Re: [PythonCE] PythonCE on Windows CE 6.0 > >> On Tue, Sep 28, 2010 at 11:02 AM, Jake Anderson <[email protected]= > > >> wrote: > >>> > >>> On 28/09/10 15:17, Banibrata Dutta wrote: > >>> > >>> On Tue, Sep 28, 2010 at 10:35 AM, Banibrata Dutta > >>> <[email protected]> wrote: > >>>> > >>>> On Tue, Sep 28, 2010 at 10:31 AM, Jake Anderson < > [email protected]> > >>>> wrote: > >>>>> > >>>>> On 28/09/10 14:58, Banibrata Dutta wrote: > >>>>> > >>>>> In attempting to install PythonCE (latest, downloaded from > >>>>> sourceforge), using the PythonCE.WM.cab file, on a Windows CE 6.0 > >>>>> mini-laptop (7" screen w/ 800x480 res, ARM VT-8500 300MHz CPU, and > 256MB > >>>>> DDR, 2GB Flash SSD), I get the following message popup... > >>>>> > >>>>> Setup Failed: The application cannot run on this device type. Pleas= e > >>>>> install the application specific to this device type. > >>>>> > >>>>> Could someone kindly explain the reason why the Setup Failed. In th= e > >>>>> past I've installed several application which are originally WM app= s, > >>>>> successfully on this WinCE6.0 device, without any issues. > >>>>> > >>>>> What could I do, to have PythonCE installed on this machine ? > >>>>> > >>>>> sounds like its not liking whatever CPU is set in the cab > >>>> > >>>> Thanks for the reply, Jake. AFAIK, the CPU for which the > PythonCE.WM.cab > >>>> is built, is ARM (family). Of course, ARM family is quite wide, and > slight > >>>> differences do exist in instruction set, this is almost the first > time, I > >>>> ran into this could of trouble. :-) > >>>> > >>>> Would building PythonCE (cross compiling) specifically my machine he= lp > ? > >>>> > >>> > >>> Wondering if this is the culprint... this is what I find in the > >>> _setup.xml inside the .cab file!! Which effectively means that that c= ab > >>> would not install when OSVersion =3D 6.00 !!! > >>> > >>> <parm name=3D"ProcessorType" value=3D"2577" /> > >>> <parm name=3D"OSVersionMin" value=3D"4.0" /> > >>> <parm name=3D"OSVersionMax" value=3D"5.99" /> > >>> <parm name=3D"BuildNumberMin" value=3D"0" /> > >>> <parm name=3D"BuildNumberMax" value=3D"-536870912" /> > >>> > >>> Don't know enough of Windows development to say for sure. > >>> -- > >>> regards, > >>> > >>> thats what I would wager is the issue > >>> > >> > >> sure. got any ideas on how i could edit the .cab file contents ? i tri= ed > >> the approach of using WinZIP / WinRAR on PC to extract and re-make the > CAB > >> file as a PKzip file, after editing the .XML, but that approach didn't > work. > >> on trying to use some other CAB-editing tools s.a. i6comp* -- they can= 't > >> even open the .CAB file, citing some reason as .hdr file not being fou= nd > in > >> the .cab !! > >> > >> ________________________________ > >> > >> You could try editing it in place with 7-zip, (www.7-zip.org), - still > not > >> sure it would work but thanks to the oddities of .cab files but it is > one of > >> the few archive manipulation programs that I know of with an edit opti= on > >> when you are browsing an archive. > > > > Thanks for the suggestion, Steve. > > > > Have been reading up a bit on the WinCE / WinMobile .CAB file structure= , > and > > looks like _setup.xml is unfortunately not the only place where the > > MaxVersion parameter is stored. Apparently, there is an older mechanism > of > > storing such parameters in a binary file, still used for backward > > compatability reasons. This brings me back to the point of needing a > tool, > > or a "right way" of doing this. So, 7Zip method may have to wait (as la= st > > resort). > > > > For the moment, I'm somewhat hopeful of having found a potential soluti= on > in > > form of a tool specifically meant to do this type of WinCE .CAB file > > editing. It is a WinCECABManager.exe, a commercial tool, but hopefully > will > > allow me to edit it. There are some other, convoluted mechanisms using > some > > command-line tools, but that require Visual-Studio 2005 with the CE dev > > environment plugins etc., which I don't have :-( > > > > Shall share an update here. > > > > > > -- > > regards, > > BD > > > > _______________________________________________ > > PythonCE mailing list > > [email protected] > > http://mail.python.org/mailman/listinfo/pythonce > > > > > --=20 regards, Banibrata http://www.linkedin.com/in/bdutta http://twitter.com/edgeliving --001636aa2b8ca760ce04914e6ee6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Tue, Sep 28, 2010 at 1:36 PM, Lachezar Dobrev= <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">l.dobrev@gmail= .com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma= rgin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding= -left: 1ex;"> =A0I have used with some success lcab and cabextract (both under Linux).<b= r> =A0However you should know, that the real culprit is the PYTHON~1.000<br> file, that is a binary result from the _setup.xml =ABcompilation=BB. That<b= r> is, you need to fix that file AND _setup.xml, and then recombine the<br> files (THE ORDER IS RELEVANT) into a new .CAB file.<br> <br> =A0Consider reading <a href=3D"http://www.cabextract.org.uk/wince_cab_form= at/" target=3D"_blank">http://www.cabextract.org.uk/wince_cab_format/</a><b= r> <br> =A0I was able to =ABfix=BB the 000 file and the setup.xml, and ended up<br= > with an installable .CAB file, but after installing it simply did not<br> work (the .exe has icon, but fails to start).<br> <br></blockquote><div><br>Thanks Lachezar. I was almost afraid that I'd= have to adopt that route, but I found a rather easy shortcut.<br><br>All I= had to do was to use the trial version (30 day trial) of <a href=3D"http:/= /www.ocpsoftware.com/products.php"><b>WinCE CAB Manager</b></a><br> and set the --<br><br>ProcessorType =3D ALL (it was originally set to Stron= g-Arm / XScale, id=3D2577)<br>Maximum OS Version =3D 6.99 (it was originall= y set to 5.99). Apparently, it is fine to change all these versions to 0.0 = as well.<br> <br>Save the CAB file, and installed it in WinCE6.0 machine, and it was all= fine. In fact I have the Python2.5 shell running on this device, as expect= ed, at the moment.<br><br>Unfortunately, the WinCE installer removes the .C= AB file after successful installation, but if someone's interested, I c= ould recreate the .CAB. <br> <br>Wondering if the owners of thie PythonCE project would like to archive = this .CAB file, especially under the category being compatible with WinCE 6= .0 !!<br>=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0p= t 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1= ex;"> 2010/9/28 Banibrata Dutta <<a href=3D"mailto:[email protected]">= [email protected]</a>>:<br> <div><div></div><div class=3D"h5">><br> ><br> > On Tue, Sep 28, 2010 at 11:42 AM, Gadget Steve (HM)<br> > <<a href=3D"mailto:[email protected]">[email protected]= </a>> wrote:<br> >><br> >><br> >> From: Banibrata Dutta<br> >> Sent: Tuesday, September 28, 2010 6:37 AM<br> >> To: Jake Anderson ; <a href=3D"mailto:[email protected]">pythonc= [email protected]</a><br> >> Subject: Re: [PythonCE] PythonCE on Windows CE 6.0<br> >> On Tue, Sep 28, 2010 at 11:02 AM, Jake Anderson <<a href=3D"mai= lto:[email protected]">[email protected]</a>><br> >> wrote:<br> >>><br> >>> On 28/09/10 15:17, Banibrata Dutta wrote:<br> >>><br> >>> On Tue, Sep 28, 2010 at 10:35 AM, Banibrata Dutta<br> >>> <<a href=3D"mailto:[email protected]">banibrata.dut= [email protected]</a>> wrote:<br> >>>><br> >>>> On Tue, Sep 28, 2010 at 10:31 AM, Jake Anderson <<a hre= f=3D"mailto:[email protected]">[email protected]</a>><br> >>>> wrote:<br> >>>>><br> >>>>> On 28/09/10 14:58, Banibrata Dutta wrote:<br> >>>>><br> >>>>> In attempting to install PythonCE (latest, downloaded = from<br> >>>>> sourceforge), using the PythonCE.WM.cab file, on a Win= dows CE 6.0<br> >>>>> mini-laptop (7" screen w/ 800x480 res, ARM VT-850= 0 300MHz CPU, and 256MB<br> >>>>> DDR, 2GB Flash SSD), I get the following message popup= ...<br> >>>>><br> >>>>> Setup Failed: The application cannot run on this devic= e type. Please<br> >>>>> install the application specific to this device type.<= br> >>>>><br> >>>>> Could someone kindly explain the reason why the Setup = Failed. In the<br> >>>>> past I've installed several application which are = originally WM apps,<br> >>>>> successfully on this WinCE6.0 device, without any issu= es.<br> >>>>><br> >>>>> What could I do, to have PythonCE installed on this ma= chine ?<br> >>>>><br> >>>>> sounds like its not liking whatever CPU is set in the = cab<br> >>>><br> >>>> Thanks for the reply, Jake. AFAIK, the CPU for which the P= ythonCE.WM.cab<br> >>>> is built, is ARM (family). Of course, ARM family is quite = wide, and slight<br> >>>> differences do exist in instruction set, this is almost th= e first time, I<br> >>>> ran into this could of trouble. :-)<br> >>>><br> >>>> Would building PythonCE (cross compiling) specifically my = machine help ?<br> >>>><br> >>><br> >>> Wondering if this is the culprint... this is what I find in th= e<br> >>> _setup.xml inside the .cab file!! Which effectively means that= that cab<br> >>> would not install when OSVersion =3D 6.00 !!!<br> >>><br> >>> =A0 <parm name=3D"ProcessorType" value=3D"25= 77" /><br> >>> =A0 <parm name=3D"OSVersionMin" value=3D"4.0= " /><br> >>> =A0 <parm name=3D"OSVersionMax" value=3D"5.9= 9" /><br> >>> =A0 <parm name=3D"BuildNumberMin" value=3D"0= " /><br> >>> =A0 <parm name=3D"BuildNumberMax" value=3D"-= 536870912" /><br> >>><br> >>> Don't know enough of Windows development to say for sure.<= br> >>> --<br> >>> regards,<br> >>><br> >>> thats what I would wager is the issue<br> >>><br> >><br> >> sure. got any ideas on how i could edit the .cab file contents ? i= tried<br> >> the approach of using WinZIP / WinRAR on PC to extract and re-make= the CAB<br> >> file as a PKzip file, after editing the .XML, but that approach di= dn't work.<br> >> on trying to use some other CAB-editing tools s.a. i6comp* -- they= can't<br> >> even open the .CAB file, citing some reason as .hdr file not being= found in<br> >> the .cab !!<br> >><br> >> ________________________________<br> >><br> >> You could try editing it in place with 7-zip, (<a href=3D"http://w= ww.7-zip.org" target=3D"_blank">www.7-zip.org</a>),=A0- still not<br> >> sure it would work but thanks to the oddities of .cab files but it= is one of<br> >> the few archive manipulation programs that I know of with an edit = option<br> >> when you are browsing an archive.<br> ><br> > Thanks for the suggestion, Steve.<br> ><br> > Have been reading up a bit on the WinCE / WinMobile .CAB file structur= e, and<br> > looks like _setup.xml is unfortunately not the only place where the<br= > > MaxVersion parameter is stored. Apparently, there is an older mechanis= m of<br> > storing such parameters in a binary file, still used for backward<br> > compatability reasons. This brings me back to the point of needing a t= ool,<br> > or a "right way" of doing this. So, 7Zip method may have to = wait (as last<br> > resort).<br> ><br> > For the moment, I'm somewhat hopeful of having found a potential s= olution in<br> > form of a tool specifically meant to do this type of WinCE .CAB file<b= r> > editing. It is a=A0 WinCECABManager.exe, a commercial tool, but hopefu= lly will<br> > allow me to edit it. There are some other, convoluted mechanisms using= some<br> > command-line tools, but that require Visual-Studio 2005 with the CE de= v<br> > environment plugins etc., which I don't have :-(<br> ><br> > Shall share an update here.<br> ><br> ><br> > --<br> > regards,<br> > BD<br> ><br> </div></div><div><div></div><div class=3D"h5">> ________________________= _______________________<br> > PythonCE mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]</a><br> > <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D= "_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br> ><br> ><br> </div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>regards,<br= >Banibrata<br><a href=3D"http://www.linkedin.com/in/bdutta">http://www.link= edin.com/in/bdutta</a><br><a href=3D"http://twitter.com/edgeliving">http://= twitter.com/edgeliving</a><br> --001636aa2b8ca760ce04914e6ee6-- --===============2094834581== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonCE mailing list [email protected] http://mail.python.org/mailman/listinfo/pythonce --===============2094834581==--