Cab editing to install on SD Card - Windows Mobile Software Development

How can I edit my cabs to change their default installation folder to SD/program files, for example, instead of their default installation folder which is usually somewhere on the device memory ?
I have got an app on my PC called WinCE Cab Manager. I used it to edit a cab file, changed the installation folder to \StorageCard\program files......but what it did was created a folder & subfolder on the device memory & named them StorageCard\program files

yassero said:
How can I edit my cabs to change their default installation folder to SD/program files, for example, instead of their default installation folder which is usually somewhere on the device memory ?
I have got an app on my PC called WinCE Cab Manager. I used it to edit a cab file, changed the installation folder to \StorageCard\program files......but what it did was created a folder & subfolder on the device memory & named them StorageCard\program files
Click to expand...
Click to collapse
Should it not be "Storage Card" - with a space?

go in the CAB information properties,
edit installation directory,
add folder "Storage card" on root
add program files there or whatever.
for files then keep "install dir"
-
remember that installing on sd is not standard install.

papo said:
go in the CAB information properties,
edit installation directory,
add folder "Storage card" on root
add program files there or whatever.
for files then keep "install dir"
-
remember that installing on sd is not standard install.
Click to expand...
Click to collapse
Yes. I did that & the result was that it has created a folder on the device memory called Storage Card & installed the app in a subfolder in that folder.
It neglected the physical Storage Card completely. My objective is to change the default install dir of all my cabs so when I use XDA_UC, it automatically install them to the SD Card. What XDA_UC currently does is semi-auto install whatever I put in XDA_UC/SD, meaning that it runs the installer & asks me to select where to install the app.

oh.. And other thing is, if your card is not plugged in/initialized when UC will start, it may just create a folder Storage Card and then initialize SD as "Storage Card2" ... happened to me pretty messy.
You can make cabs which don't ask to ask:
wceload.exe "%1" /askdest
but there is no param. for default=SD
http://forum.xda-developers.com/showpost.php?p=5090353&postcount=74
I reckon you need a wceload.exe replacement, or to make a mortscript to click on SD option every time for you.
Anyway advice on that link above, that SD apps usually don't need re-installing is right too
Other option would be forgot the cab. make a zip file of all files and reg file and use mortscript to import them.

papo said:
oh.. And other thing is, if your card is not plugged in/initialized when UC will start, it may just create a folder Storage Card and then initialize SD as "Storage Card2" ... happened to me pretty messy.
You can make cabs which don't ask to ask:
wceload.exe "%1" /askdest
but there is no param. for default=SD
http://forum.xda-developers.com/showpost.php?p=5090353&postcount=74
I reckon you need a wceload.exe replacement, or to make a mortscript to click on SD option every time for you.
Anyway advice on that link above, that SD apps usually don't need re-installing is right too
Other option would be forgot the cab. make a zip file of all files and reg file and use mortscript to import them.
Click to expand...
Click to collapse
It is easy to zip all my cabs in one zip file. How do I create a reg file & how do I import them with mortscript & what do I do after importing them ?

yassero said:
It is easy to zip all my cabs in one zip file. How do I create a reg file & how do I import them with mortscript & what do I do after importing them ?
Click to expand...
Click to collapse
you got it wrongly, the last option was not using CAB at all.
I don't know what you are trying to do. Hard to guess. Why would you want to install on SD on the first place?
In my case, I am placing maps and files which programs can only use from SD, I have them in zip and unzipping with 7zip which accepts plenty of arguments.
You know that CAB is something like zip. You don't need to use CAB and can have the same results. And if you creating those cab yourself, why not just create zips. And you have it compressed better too.
- what is reg? file containing registry entries. if you don't have any you don't need that.
- nothing to do after
- for files:
you place all files in folders in this zip file, starting with "Storage Card"
this will check SD card, if it's present and then unzip file "file.zip"
I have this file and 7zG.exe files in ROM-windows folder, but you can change that below.
for this script to run you need mortscript.exe and 7zip programs, they are free
==
SetMessageFont(17, "Tahoma" )
While( not DirExists("\Storage Card"))
SleepMessage( 99, "Insert SD card", "SD card missing", false, DirExists("\Storage Card"))
EndWhile
RunWait("\windows\7zG.exe"," x \windows\file.zip -y")

I am not that knowledgeable technically. I do not not create Cabs. All I am trying to do is figure out a way to have the cabs I have installed silently on the SD after I flash any new ROM. I place all my cabs on Storage Card in folder XDA_UC/SD. This is not a silent installation. It needs user intervention as on each cab installation, it prompts me to select where to install to (device or SD Card). I am very humble when it comes to reg files & stuff like that. I do not know how to write them or how to use them afterwards.
I have always wanted my settings saved aswell to be applied on the next ROM installation. Thanks to NRG, his ROMs come with Settings Export app that simplifies things but exporting all settings to Storage Card in folder XDA_UC & accordingly it is applied at new ROM installation.

why do you want to install to SD card?
What pda you have? Are you low on internal memory?
I only put an app on SD if I had less then 5MB internal free.
You should use your internal memory for programs as it's faster and better protected against lost clusters and unfinished writes.
And to use SD for personal data, as pictures, mp3 as it's easier to make backup of it and access speed doesn't matter there so much.
There is no reason keeping more then 5MB free of internal memory.
A time ago I put update of opera on SD, once when it crashed, it damaged file structures and I lost half of my data on SD.
You can have silent installs to internal memory.
-
Other thing is, as someone wrote before, for most of the apps you don't need to install again on SD card if they are still there. Before you reflash, backup
folder \windows\Start Menu and after reflash, copy it back.

Related

Cab files....

Im pretty new here and just got my BA not tooo long ago...I used to be a trreo user now im hooked on my BA.
I see alot of software that comes in a form of a cab file...does anyone know how I can load that software on my BA? thanks alot!
hey mate and welcome!
if you put the cab file in your pc folder; you'll see that the description is "zip file"....that's because it's the only format microsoft recognizes...in a way its also true as the cab file is a compiled program ready for installation. what you do is DON'T unzip the file in your pc; rather cut/copy and paste it directly in your ba (via activesync or in your sd card). put it in a folder that's easy to find; say "my documents...personal" (or you can make your own folder to put in cab files). use your ba's file explorer and go to the folder...from there double click (via stylus) on the cab file and it will automatically install itself. btw, if you copied the cab file in your sd card you can also execute the installation there....no need to paste it in your my documents area.
if you're using wm2005; upon execution the unit will ask you if you want to install it in the sd card or internal memory....that's really up to you depending on the size of the file you're installing.
hope that helps
rob
thanks alot Robson.
Ive always looked past cab file programs b/c i couldnt install it. I hope this thread helps other newbies too. I searched and couldnt find an answer.
is there anyway that can install cab files direct from pc to ppc?
sorry for the late response; was in china for a week.
unfortunately, no. i don't think there's a way to install cab files via pc. if you do unzip a cab file; you'll notice that the files are something like:
0000124
009890
or something like that....can be as many as 20 lines of code...but scanning through the entire zip will not give you any .exe files which can be executed via pc. if you have a card reader installed on your laptop, simply copy and paste the cab file on your sd and from there install via your ppc
hope that helps
rob

Auto Install Cabs onto Storage Card

Hi, I've read somewhere in the forum that is possible to use the ExtRom Autorun application to install the cabs you want after a Hard reset.
I have a question regarding that issue. Is it possible to change the config.txt file in a way that you can silently install apps not only on the main memory but also onto the Storage Card?
What I'm looking for is an autoinstaller of some kind...
Thanks in advance.
Sorry for my bad English!
...Anyone?
Hi
You can use WinCE Cab Manager to edit your cab files and change the Default Install Dir.
Open the cab you want to edit and then in Default Install Dir make a new folder named Storage Card (if you want to install on Storage Card). In Storage Card folder create the subfolder for your cab app then save.
You can also create a especific folder or shortcut to be created on start menu of your pocket pc.
Then you just copy all your edited cabs to ExtROM and when you hard reset your pocket they will be installed on Storage Card.
coxrui said:
Hi
You can use WinCE Cab Manager to edit your cab files and change the Default Install Dir.
Open the cab you want to edit and then in Default Install Dir make a new folder named Storage Card (if you want to install on Storage Card). In Storage Card folder create the subfolder for your cab app then save.
You can also create a especific folder or shortcut to be created on start menu of your pocket pc.
Then you just copy all your edited cabs to ExtROM and when you hard reset your pocket they will be installed on Storage Card.
Click to expand...
Click to collapse
Will try that, thanks!
------------------------
Obrigado pela ajuda, vou testar e depois digo como correu!
i tried that, but, i still have a question: with wince cab manager, if I'm doing that @coxrui the application is still asking for the location of the cab installation. how can i install it directly to storage card without asking?
P.S. solved: you have to use hard-code paths to storage card.

shorct cuts to SD card

is it possible to get a a short cut for the SD card or folders on the sd card to appear in the programs menu
i hate having to use FE to get to stuff
yes. download total commander and install it. Next navigate to /windows/start menu/programs and copy one of those shortcuts (lnk file) to a different location. Go to that location with total commander and view properties. there you can change the values to point to the file you want to launch. now copy that newly modified lnk file back to the start menu/programs folder and it will be in your all programs in TF3D. i believe there is a program you can use to jsut click an exe file and "create lnk" but im not sure what it is.

how to uninstall android

i got the latest build but nothing of the improvements are working on my tilt 2 i want to know how to uninstall it so could install again. thanks
goto remove programs itll be on the list and when ur done with that goto ur storage and delete the andboot folder
cant find anboot folder
If there is a folder called Android, delete that. If the andboot and android folders don't exist, you're going to have to delete the files manually.
Delete the following files and folders from the root of your microSD card (if they exist): HaRET.exe, default.txt (or startup.txt depeding on your setup), data.img, rootfs.img, zImage, system.sqsh, any of the FSCKxxxx.REC files, "AndroidApps" , the "conf" folder, the "cache" folder, the "download" folder, the "media" folder , the "startups" folder, and the "wallpapers" folder. That should be most or all of the files used by Android.
thanks master
andriod storage?
hi i just wanna know if any files of andriod are stored on my main memory (not my sd card thanks
tazsob said:
hi i just wanna know if any files of andriod are stored on my main memory (not my sd card thanks
Click to expand...
Click to collapse
nope, they are all on your SD
FOR THOSE OF USE with issues..
IF youy are getting the the file "haret" or "clrcad" cannot be opened. message on your HD2. reset your phone to factory settings in the settings tab.. it works.

[Q] Problem with latest Android .cab file

Hello, I've recently uninstalled and wiped my SD card of Android. Now I'm trying to install it from the latest (01/23) cab file and I keep getting an installation error when running it on my phone. I've also tried to extract the cab file manually on my computer with 7-Zip, but I get decompression errors. And when I unrar the .rar file I get a completely flattened directory structure.
What am I doing wrong here?
Delete all the Android files and folders from your SD card. This means the Android, andboot, and any other Android related folders that may have been created by apps and such.
Copy everything that's left off of your SD card onto your computer.
Format the card to FAT32.
Put all the stuff back onto your SD card.
Reinstall XDAndroid.
I've never had luck with the cab. I think it has something to do with the size, and how the device handles cabs. For me, it has been easier to download the rar file, extract that on the desktop, and then copy over the andboot directory to your sdcard.
I usually create a staging location on the hard drive before copying it to the device. Doing this allows you to customize the files/configs: edit the startup.txt file on the desktop, replace the original rootfs with F22's new file that allows for keyboard mappings, etc. Then when it's all finished, simply copy the directory to the sdcard.
cajunflavoredbob said:
Delete all the Android files and folders from your SD card. This means the Android, andboot, and any other Android related folders that may have been created by apps and such.
Copy everything that's left off of your SD card onto your computer.
Format the card to FAT32.
Put all the stuff back onto your SD card.
Reinstall XDAndroid.
Click to expand...
Click to collapse
I tried this and it didn't work. Got an error half way through the install.
For pohket's suggestion, I'm limited to Linux tools, and unrar extracts a flat directory structure for me, so there isn't like an `andboot` or other such directories, just every file, which I don't know how to organize.
I ended up using an old release from November 1, 2010. It's been the most stable release I've used so far. (and also the only release I had saved on my computer)
earlz83 said:
Hello, I've recently uninstalled and wiped my SD card of Android. Now I'm trying to install it from the latest (01/23) cab file and I keep getting an installation error when running it on my phone. I've also tried to extract the cab file manually on my computer with 7-Zip, but I get decompression errors. And when I unrar the .rar file I get a completely flattened directory structure.
What am I doing wrong here?
Click to expand...
Click to collapse
I have the feeling the latest cab file was not working too well. In the end I used the rar files as well and extracted those.
the cab doesn't work!!!
earlz83 said:
Hello, I've recently uninstalled and wiped my SD card of Android. Now I'm trying to install it from the latest (01/23) cab file and I keep getting an installation error when running it on my phone. I've also tried to extract the cab file manually on my computer with 7-Zip, but I get decompression errors. And when I unrar the .rar file I get a completely flattened directory structure.
What am I doing wrong here?
Click to expand...
Click to collapse
I had the same problem with that cab, I did everything: erase, format, copy, download - many times from different computers...but doesn't work at all. You should download the RAR file and uncompress into the fat32 - SD card. Worked at the first time.
ps: this FRX04 2.2.1 is quite slower than the FRX03!!!
Also, it halts everytime!!! (in my rhodium 210).

Categories

Resources