How to Install cab in Storage Card

Posted on 2010-09-01
Medium Priority
Last Modified: 2013-12-21
How do i create a smart device cab project in visual studio that install application in Storage card.If there is no storage card present in device then i need to install it in device memory.Device that i using having windows Mobile 6.1 version.
Question by:vivekpv10
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 24

Expert Comment

ID: 33590488
you can create cab project in VS, and if the storage card is present, the user will be asked to select between program memory and SD card (or whatever it is called on each specific device)

as far as I know, it was possible to specify few command line options for WceLoad.exe (the utility that actually makes the installation) to skip asking the user about the destination folder, but those parameters were slightly different from version to version, so you might want to experiment a bit:



Author Comment

ID: 33615133
there may be situations like changing storage card name.how to handle all these things..
LVL 24

Expert Comment

ID: 33615486
the default behaviour is that WceLoad lists all available destinations (ie main memory and any SD cards).

you could get storage card's name via API, but to my knowledge you can't pass it to WceLoad, so unless you create your own installer it's not possible.

your own custom installer isn't too hard though - just compare registry before and after standard installation and you'll see the diffrences
How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.


Author Comment

ID: 33741255
still looking for an exact solution...
LVL 16

Accepted Solution

hjgode earned 1500 total points
ID: 33759549

you cannot get a solution using a normal cab file only. If you would specify a hardcoded install dir called "\Storage Card", the installer (wceload) would create this folder on the device during install, if it is not present. This would conflict with a real memory card mounted later as \Storage Card.

You will have to go with a custom setup DLL. The DLL can check on INSTALL_INIT, if a Storage Card dir is present or not. The DLL could event check for the directory name of an installed memory card. Then the DLL should install the files. For example, you can use a ZIP file with all program files inside, the cab installs that to hardcoded \Temp directory and the DLL will unzip the file on INSTALL_EXIT to \Storage Card or \ depending on the existince of Storage Card.

To get started with a Windows CE/Mobile setup DLL and on howto use a ZIP see my post at http://www.hjgode.de/wp/2010/04/27/windows-ce-and-mobile-setupdll-with-unzip-support/



Author Comment

ID: 33822484
Hai hjgode:
  i will try

Author Closing Comment

ID: 34204366

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question