RE: How to append a file to a mobile CAB using WM6

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Not sure how useful this is. I did append a config file to the CAB file
using copy command with /B option for binary file. But, the Cab file can no
longer be installed on device afterward for some reasons from my earlier test
even though the sililar append approach works for desktop installer. I'll
trying to find out a way to fix this.

- Brian

"John R. Millwood" wrote:

I need to append a configuration file (app.config) to an existing CAB file on
the user's side. This is a WM6, CF 2.0 or 3.5, Visual Studio 2008, C#,
Windows Mobile Professional (Pocket PC) project. App.config will get modifed
on the customer's side, and it needs to be appended to the CAB file before
deployed on the mobile device.

Following is the scenario:

I have a mobile application that calls Web service methods. App.config
contains URL to Web service along with it's Windows user name and password
for accessing the Web service site over SSL. This information can be entered
via the application on the handheld as a one time setup, but that is very
painful with a stylus. It's not something you want your users to experience.
So I want the ability for a customer/admin to modify app.config and append
that to the existing CAB file before it gets deployed on the PDA. This way,
the user doesn't have to configure the URL on the handheld. I'm deploying
the CAB over-the-air (OTA). So all the user has to do to deploy my
application on the PDA is browse to the Web site with IE and tap the
deployment hyperlink. The CAB automatically gets downloaded and installed.

What I've already done/researched:

I attempted to use cabwiz.exe with provisional XML injection using the
/postxml switch. The problem is that I can't find any examples on how to
append a file into the existing CAB file. I find all other type of examples
on injecting VPN, e-mail, ...etc., but nothing on appending a file.

Remember, this is happening on the customer's side and not my development
side. I want to deploy cabwiz.exe and cabwiz.ddf to my customer and write a
nice GUI to perform the process of appending app.config into the existing CAB.

One of my options is to deploy all my CAB contents to the customer and just
rebuild the entire CAB using cabwiz, but I don't like this solution; it will
be more difficult to maintain.

Any suggestions on how to append app.config into my CAB on the customer's
side?

Thanks,
.



Relevant Pages

  • RE: How to append a file to a mobile CAB using WM6
    ... I have a mobile application that calls Web service methods. ... So I want the ability for a customer/admin to modify app.config and append ... that to the existing CAB file before it gets deployed on the PDA. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Question to MSDN CF-FAQs "3.1. How do I create a PocketPC setup application?"
    ... The CabWiz .inf file enables the creation of platform specific cab files ... The platform labels tell CabWiz how many .cab files to generate, ... incorporate into the .cab file. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Newbie: Pocket PC development
    ... I successfully copied the cab to PPC. ... > As far as the CAB file being associated with WinZip on the desktop PC, ... >> How can I install that application to my PPC? ...
    (microsoft.public.pocketpc.developer)
  • RE: How to append a file to a mobile CAB using WM6
    ... I was never able to append a file to the CAB. ... I have a mobile application that calls Web service methods. ... I'm deploying ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: SQLCE30
    ... should actually be references to SQLCE. ... from the CAB file but does not work properly when the SQLCE version in the CE ... It appears that the SQLCE image version is 2.0 while the CAB ... You can also make a backup of the registry, install the CAB file, export ...
    (microsoft.public.windowsce.platbuilder)