[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

CAB Download to Pocket PC Device

Asked by chollis in Pocket PC Other, Windows Mobile (Pocket PC / Win CE) Operating Systems, Windows MobileProgramming

Tags: Microsoft, Windows Mobile, Pocket PC 2003 SE, CAB Creation, CAB Download

I have PDA's that I use at customer sites for data collection.  These are PocketPC2003SE devices.  (Symbol MC50).  In the field, these devices connect through an Ethernet Cradle to a Linux Server via HTTP.  Data is uploaded and downloaded to/from the linux server.   There is no Windows based workstation at the site, meaning there is no MS Active Sync program.  

I need to load a new version of my application to the PDA's in field.  I have manually created a CAB by building my own .inf file and running cabwiz.exe on my development system and the CAB builds without errors.  The CAB is designed to move all of the support DLL's and application CAB's into place in the PDA static file store (/Application.)   This is Symbol's recommendation for persistent storage so when you Cold Boot the device the application can automatically re-install itself.

I know the CAB is built correctly because if I use Active Sync to download it to the PDA and then Tap on the CAB file.  Everything is installed correctly.

But, if I copy the CAB to the linux server and create a web page for downloading.  On the PDA using Pocket IE, I can navigate to a download page and download the CAB.  PIE will autorun the application once it has downloaded and I get the following message:  "The file "....CAB" is not a valid Windows CE setup file.

I have been working on this for a while.  I have searched and tweaked code per recommendations found on EE, Google and MSDN, but I can't get it to work.

Either the CAB is getting corrupt on Download from the web page or Active Sync does some kind of additional conversion on the CAB when it is downloaded to the PDA.   (The CAB is not compressed, PocketPC2003SE does not support compressed CABs).

What am I missing?

FYI The PHP program to download the CAB looks like:

<?php
$ffilename = "Base.CAB";
$fsize = filesize($ffilename);
$fp=fopen($ffilename,"r");

header("Content-Type: application/x-download");      # must use unknown format or IE will try to display                        
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=\"Base.CAB\"");

$header_str = "Content-Length: ".$fsize;
header($header_str);
header("Content-Transfer-Encoding: quoted-printable\n");

fpassthru($fp);      # transfer the file
fclose($fp);
header("Connection: close");
exit;
 ?>

I have tried many different values for content-type.


[+][-]12/07/08 04:07 PM, ID: 23118025Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12/07/08 04:21 PM, ID: 23118052Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/07/08 04:24 PM, ID: 23118063Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/07/08 04:45 PM, ID: 23118105Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/07/08 05:36 PM, ID: 23118257Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/09/08 12:31 PM, ID: 23133246Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/08 11:06 PM, ID: 23146325Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Pocket PC Other, Windows Mobile (Pocket PC / Win CE) Operating Systems, Windows MobileProgramming
Tags: Microsoft, Windows Mobile, Pocket PC 2003 SE, CAB Creation, CAB Download
Sign Up Now!
Solution Provided By: chollis
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_2_20070628