Re: PythonCE on Windows CE 6.0
Banibrata Dutta <[email protected]> Tue, 28 Sep 2010 12:04:00 +0530
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
--===============0685981483== Content-Type: multipart/alternative; boundary=00148537acdac84dbb04914c07c9 --00148537acdac84dbb04914c07c9 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 28, 2010 at 11:42 AM, Gadget Steve (HM) <[email protected] > wrote: > > > *From:* Banibrata Dutta <[email protected]> > *Sent:* Tuesday, September 28, 2010 6:37 AM > *To:* Jake Anderson <[email protected]> ; [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. Please >>>> install the application specific to this device type. >>>> >>>> Could someone kindly explain the reason why the Setup Failed. In the >>>> past I've installed several application which are originally WM apps, >>>> 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 help ? >>> >>> >> Wondering if this is the culprint... this is what I find in the _setup.xml >> inside the .cab file!! Which effectively means that that cab would not >> install when OSVersion = 6.00 !!! >> >> <parm name="*ProcessorType*" value="*2577*" /> >> <parm name="*OSVersionMin*" value="*4.0*" /> >> <parm name="*OSVersionMax*" value="*5.99*" /> >> <parm name="*BuildNumberMin*" value="*0*" /> >> <parm name="*BuildNumberMax*" value="*-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 tried > 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 found 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 option > 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 last resort). For the moment, I'm somewhat hopeful of having found a potential solution 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 --00148537acdac84dbb04914c07c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Tue, Sep 28, 2010 at 11:42 AM, Gadget= Steve (HM) <span dir=3D"ltr"><<a href=3D"mailto:[email protected]= ">[email protected]</a>></span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex;"> <div style=3D"padding-left:10px;padding-right:10px;padding-top:15px" name= =3D"Compose message area"> <div><font face=3D"Calibri"></font>=A0</div> <div style=3D"font:10pt Tahoma"> <div><br></div> <div style=3D"background:#f5f5f5"> <div><b>From:</b> <a title=3D"[email protected]" href=3D"mailto:ban= [email protected]" target=3D"_blank">Banibrata Dutta</a> </div> <div><b>Sent:</b> Tuesday, September 28, 2010 6:37 AM</div> <div><b>To:</b> <a title=3D"[email protected]" href=3D"mailto:yahoo@vap= ourforge.com" target=3D"_blank">Jake Anderson</a> ; <a title=3D"pythonce@py= thon.org" href=3D"mailto:[email protected]" target=3D"_blank">pythonce@py= thon.org</a> </div> <div><b>Subject:</b> Re: [PythonCE] PythonCE on Windows CE 6.0</div></div><= /div><div><div></div><div class=3D"h5"> <div><br></div> <div class=3D"gmail_quote">On Tue, Sep 28, 2010 at 11:02 AM, Jake Anderson = <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a>></span>=20 wrote:<br> <blockquote style=3D"border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt = 0pt 0.8ex;padding-left:1ex" class=3D"gmail_quote"> <div text=3D"#000000" bgcolor=3D"#ffffff"> <div> <div></div> <div>On 28/09/10 15:17, Banibrata Dutta wrote:=20 <blockquote type=3D"cite"><br><br> <div class=3D"gmail_quote">On Tue, Sep 28, 2010 at 10:35 AM, Banibrata = Dutta=20 <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote style=3D"border-left:rgb(204,204,204) 1px solid;margin:0pt = 0pt 0pt 0.8ex;padding-left:1ex" class=3D"gmail_quote"> <div class=3D"gmail_quote"> <div>On Tue, Sep 28, 2010 at 10:31 AM, Jake Anderson <span dir=3D"ltr= "><<a href=3D"mailto:[email protected]" target=3D"_blank">yahoo@vapo= urforge.com</a>></span> wrote:<br></div> <blockquote style=3D"border-left:rgb(204,204,204) 1px solid;margin:0p= t 0pt 0pt 0.8ex;padding-left:1ex" class=3D"gmail_quote"> <div text=3D"#000000" bgcolor=3D"#ffffff"> <div> <div> <div>On 28/09/10 14:58, Banibrata Dutta wrote: </div></div></div> <div> <blockquote type=3D"cite"> <div> <div>In attempting to install PythonCE (latest, downloaded from= =20 sourceforge), using the PythonCE.WM.cab file, on a Windows CE 6.0= =20 mini-laptop (7" screen w/ 800x480 res, ARM VT-8500 300MHz CP= U, and=20 256MB DDR, 2GB Flash SSD), I get the following message=20 popup...<br><br><b>Setup Failed:</b> The application cannot run o= n=20 this device type. Please install the application specific to this= =20 device type.<br clear=3D"all"><br>Could someone kindly explain th= e reason=20 why the Setup Failed. In the past I've installed several appl= ication=20 which are originally WM apps, successfully on this WinCE6.0 devic= e,=20 without any issues.<br><br>What could I do, to have PythonCE inst= alled=20 on this machine ?<br></div></div><br></blockquote></div> <div>sounds like its not liking whatever CPU is set in the=20 cab<br></div></div></blockquote></div><br>Thanks for the reply, Jak= e.=20 AFAIK, the CPU for which the PythonCE.WM.cab is built, is ARM (family= ). Of=20 course, ARM family is quite wide, and slight differences do exist in= =20 instruction set, this is almost the first time, I ran into this could= of=20 trouble. :-)<br><br>Would building PythonCE (cross compiling) specifi= cally=20 my machine help ? <br clear=3D"all"><br></blockquote></div> <div> <div> <div><br>Wondering if this is the culprint... this is what I find in th= e=20 _setup.xml inside the .cab file!! Which effectively means that that cab= =20 would not install when OSVersion =3D 6.00 !!!<br><br> <div> <div style=3D"margin-left:1em"><span>=A0</span>=20 <span><</span><span>parm</span>=20 <span>name</span><span>=3D"</span><b>ProcessorType</b><span>"= </span><span>=20 value</span><span>=3D"</span><b>2577</b><span>"</span><span> = /></span>=20 </div></div> <div> <div style=3D"margin-left:1em"><span>=A0</span>=20 <span><</span><span>parm</span>=20 <span>name</span><span>=3D"</span><b>OSVersionMin</b><span>"<= /span><span>=20 value</span><span>=3D"</span><b>4.0</b><span>"</span><span> /= ></span>=20 </div></div> <div> <div style=3D"margin-left:1em"><span>=A0</span>=20 <span><</span><span>parm</span>=20 <span>name</span><span>=3D"</span><b>OSVersionMax</b><span>"<= /span><span>=20 value</span><span>=3D"</span><b>5.99</b><span>"</span><span> = /></span>=20 </div></div> <div> <div style=3D"margin-left:1em"><span>=A0</span>=20 <span><</span><span>parm</span>=20 <span>name</span><span>=3D"</span><b>BuildNumberMin</b><span>"= ;</span><span>=20 value</span><span>=3D"</span><b>0</b><span>"</span><span> /&g= t;</span>=20 </div></div> <div> <div style=3D"margin-left:1em"><span>=A0</span>=20 <span><</span><span>parm</span>=20 <span>name</span><span>=3D"</span><b>BuildNumberMax</b><span>"= ;</span><span>=20 value</span><span>=3D"</span><b>-536870912</b><span>"</span><= span>=20 /></span> </div></div> <div> <div style=3D"margin-left:1em"><span></span>=A0</div></div> <div> <div style=3D"margin-left:1em"><span><br></span></div></div></div></div= ></div>Don't=20 know enough of Windows development to say for sure.<br>--=20 <br>regards,<br></blockquote></div></div>thats what I would wager is the= =20 issue<br><br></div></blockquote></div><br>sure. got any ideas on how i co= uld=20 edit the .cab file contents ? i tried the approach of using WinZIP / WinRAR= on=20 PC to extract and re-make the CAB file as a PKzip file, after editing the .= XML,=20 but that approach didn't work. on trying to use some other CAB-editing = tools=20 s.a. i6comp* -- they can't even open the .CAB file, citing some reason = as .hdr=20 file not being found in the .cab !!<br> </div></div><p> </p><hr> <p></p> <div><font face=3D"Calibri">You could try editing it in place with 7-zip, (= <a href=3D"http://www.7-zip.org" target=3D"_blank">www.7-zip.org</a>),=A0- = still not sure it would=20 work but thanks to the oddities of .cab files but it is one of the few arch= ive=20 manipulation programs that I know of with an edit option when you are brows= ing=20 an archive.</font></div> <div><font face=3D"Calibri"></font> <br></div></div></blockquote><div><br>T= hanks for the suggestion, Steve. <br><br>Have been reading up a bit on the = WinCE / WinMobile .CAB file structure, and looks like _setup.xml is unfortu= nately not the only place where the MaxVersion parameter is stored. Apparen= tly, there is an older mechanism of storing such parameters in a binary fil= e, still used for backward compatability reasons. This brings me back to th= e point of needing a tool, or a "right way" of doing this. So, 7Z= ip method may have to wait (as last resort).<br> <br>For the moment, I'm somewhat hopeful of having found a potential so= lution in form of a tool specifically meant to do this type of WinCE .CAB f= ile editing. It is a=A0 WinCECABManager.exe, a commercial tool, but hopeful= ly will allow me to edit it. There are some other, convoluted mechanisms us= ing some command-line tools, but that require Visual-Studio 2005 with the C= E dev environment plugins etc., which I don't have :-(<br> <br>Shall share an update here.<br></div></div><br clear=3D"all"><br>-- <br= >regards,<br>BD<br> --00148537acdac84dbb04914c07c9-- --===============0685981483== 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 --===============0685981483==--