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">&lt;<a href=3D"mailto:[email protected]">l.dobrev@gmail=
.com</a>&gt;</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&#39;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&#39;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 &lt;<a href=3D"mailto:[email protected]">=
[email protected]</a>&gt;:<br>
<div><div></div><div class=3D"h5">&gt;<br>
&gt;<br>
&gt; On Tue, Sep 28, 2010 at 11:42 AM, Gadget Steve (HM)<br>
&gt; &lt;<a href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; From: Banibrata Dutta<br>
&gt;&gt; Sent: Tuesday, September 28, 2010 6:37 AM<br>
&gt;&gt; To: Jake Anderson ; <a href=3D"mailto:[email protected]">pythonc=
[email protected]</a><br>
&gt;&gt; Subject: Re: [PythonCE] PythonCE on Windows CE 6.0<br>
&gt;&gt; On Tue, Sep 28, 2010 at 11:02 AM, Jake Anderson &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 28/09/10 15:17, Banibrata Dutta wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Sep 28, 2010 at 10:35 AM, Banibrata Dutta<br>
&gt;&gt;&gt; &lt;<a href=3D"mailto:[email protected]">banibrata.dut=
[email protected]</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Tue, Sep 28, 2010 at 10:31 AM, Jake Anderson &lt;<a hre=
f=3D"mailto:[email protected]">[email protected]</a>&gt;<br>
&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On 28/09/10 14:58, Banibrata Dutta wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; In attempting to install PythonCE (latest, downloaded =
from<br>
&gt;&gt;&gt;&gt;&gt; sourceforge), using the PythonCE.WM.cab file, on a Win=
dows CE 6.0<br>
&gt;&gt;&gt;&gt;&gt; mini-laptop (7&quot; screen w/ 800x480 res, ARM VT-850=
0 300MHz CPU, and 256MB<br>
&gt;&gt;&gt;&gt;&gt; DDR, 2GB Flash SSD), I get the following message popup=
...<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Setup Failed: The application cannot run on this devic=
e type. Please<br>
&gt;&gt;&gt;&gt;&gt; install the application specific to this device type.<=
br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Could someone kindly explain the reason why the Setup =
Failed. In the<br>
&gt;&gt;&gt;&gt;&gt; past I&#39;ve installed several application which are =
originally WM apps,<br>
&gt;&gt;&gt;&gt;&gt; successfully on this WinCE6.0 device, without any issu=
es.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; What could I do, to have PythonCE installed on this ma=
chine ?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; sounds like its not liking whatever CPU is set in the =
cab<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks for the reply, Jake. AFAIK, the CPU for which the P=
ythonCE.WM.cab<br>
&gt;&gt;&gt;&gt; is built, is ARM (family). Of course, ARM family is quite =
wide, and slight<br>
&gt;&gt;&gt;&gt; differences do exist in instruction set, this is almost th=
e first time, I<br>
&gt;&gt;&gt;&gt; ran into this could of trouble. :-)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Would building PythonCE (cross compiling) specifically my =
machine help ?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Wondering if this is the culprint... this is what I find in th=
e<br>
&gt;&gt;&gt; _setup.xml inside the .cab file!! Which effectively means that=
 that cab<br>
&gt;&gt;&gt; would not install when OSVersion =3D 6.00 !!!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; =A0 &lt;parm name=3D&quot;ProcessorType&quot; value=3D&quot;25=
77&quot; /&gt;<br>
&gt;&gt;&gt; =A0 &lt;parm name=3D&quot;OSVersionMin&quot; value=3D&quot;4.0=
&quot; /&gt;<br>
&gt;&gt;&gt; =A0 &lt;parm name=3D&quot;OSVersionMax&quot; value=3D&quot;5.9=
9&quot; /&gt;<br>
&gt;&gt;&gt; =A0 &lt;parm name=3D&quot;BuildNumberMin&quot; value=3D&quot;0=
&quot; /&gt;<br>
&gt;&gt;&gt; =A0 &lt;parm name=3D&quot;BuildNumberMax&quot; value=3D&quot;-=
536870912&quot; /&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Don&#39;t know enough of Windows development to say for sure.<=
br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; thats what I would wager is the issue<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; sure. got any ideas on how i could edit the .cab file contents ? i=
 tried<br>
&gt;&gt; the approach of using WinZIP / WinRAR on PC to extract and re-make=
 the CAB<br>
&gt;&gt; file as a PKzip file, after editing the .XML, but that approach di=
dn&#39;t work.<br>
&gt;&gt; on trying to use some other CAB-editing tools s.a. i6comp* -- they=
 can&#39;t<br>
&gt;&gt; even open the .CAB file, citing some reason as .hdr file not being=
 found in<br>
&gt;&gt; the .cab !!<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt;<br>
&gt;&gt; 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>
&gt;&gt; sure it would work but thanks to the oddities of .cab files but it=
 is one of<br>
&gt;&gt; the few archive manipulation programs that I know of with an edit =
option<br>
&gt;&gt; when you are browsing an archive.<br>
&gt;<br>
&gt; Thanks for the suggestion, Steve.<br>
&gt;<br>
&gt; Have been reading up a bit on the WinCE / WinMobile .CAB file structur=
e, and<br>
&gt; looks like _setup.xml is unfortunately not the only place where the<br=
>
&gt; MaxVersion parameter is stored. Apparently, there is an older mechanis=
m of<br>
&gt; storing such parameters in a binary file, still used for backward<br>
&gt; compatability reasons. This brings me back to the point of needing a t=
ool,<br>
&gt; or a &quot;right way&quot; of doing this. So, 7Zip method may have to =
wait (as last<br>
&gt; resort).<br>
&gt;<br>
&gt; For the moment, I&#39;m somewhat hopeful of having found a potential s=
olution in<br>
&gt; form of a tool specifically meant to do this type of WinCE .CAB file<b=
r>
&gt; editing. It is a=A0 WinCECABManager.exe, a commercial tool, but hopefu=
lly will<br>
&gt; allow me to edit it. There are some other, convoluted mechanisms using=
 some<br>
&gt; command-line tools, but that require Visual-Studio 2005 with the CE de=
v<br>
&gt; environment plugins etc., which I don&#39;t have :-(<br>
&gt;<br>
&gt; Shall share an update here.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; regards,<br>
&gt; BD<br>
&gt;<br>
</div></div><div><div></div><div class=3D"h5">&gt; ________________________=
_______________________<br>
&gt; PythonCE mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a><br>
&gt; <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D=
"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br>
&gt;<br>
&gt;<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==--