Solved

How to Install cab in Storage Card

Posted on 2010-09-01
7
1,441 Views
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.
0
Comment
Question by:vivekpv10
  • 4
  • 2
7 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
Comment Utility
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:

http://blog.opennetcf.com/afeinman/PermaLink,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx
http://msdn.microsoft.com/en-us/library/ms926281

0
 
LVL 5

Author Comment

by:vivekpv10
Comment Utility
there may be situations like changing storage card name.how to handle all these things..
0
 
LVL 24

Expert Comment

by:alexey_gusev
Comment Utility
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
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 5

Author Comment

by:vivekpv10
Comment Utility
still looking for an exact solution...
0
 
LVL 16

Accepted Solution

by:
hjgode earned 500 total points
Comment Utility
Hello

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/

regards

Josef
0
 
LVL 5

Author Comment

by:vivekpv10
Comment Utility
Hai hjgode:
  i will try
0
 
LVL 5

Author Closing Comment

by:vivekpv10
Comment Utility
thanks..
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
A short article about problems I had with the new location API and permissions in Marshmallow
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now