Automatic install after hard-reset - 8125, K-JAM, P4300, MDA Vario General

I've got a slight problem with this device, probably also with all other WM5.0 devices.
There's this application which I have developed to operate as a shell around Windows Mobile, so users have limited functionality. This is to relieve the people at the helpdesk, since users can't mess up settings and install virusses anymore (at least not that easy).
The way I installed the software on Windows Mobile 2003 (SE) was to install my Autorun.exe in the \Storage\2577\ directory and my cab-files, which needed to be installed, in the \Storage\Main\ directory.
I also used the folders \Storage\Downloads\ and \Storage\Installed\, but to keep things simple I won't mention further anymore.
This solution worked like a charm. After every hard-reset/cold-boot my application was installed again and users could happily operate their devices once more.
Now, as the WM2K3 devices aren't available anymore, I need to port the application to WM5.0. After some minor modifications the software now finally works on WM5.0, except for the installation.
It appears that there isn't an Internal Storage folder anymore. This is probably because of the fact that WM5.0 has the so called 'persistant memory'.
The problem is, the memory is completely erased when doing a hard-reset/cold-boot. I do this by pressing the 3 buttons on the side and pressing the [reset]-button also. After a while the device will perform the hard reset (as usually).
Now, I've read in the Google groups that the root-directory of WM5.0 devices operates as the internal storage, but it appears that this information is faulty. The root folder is also emptied after a hard-reset.
Also my contacts and appointments dissapear after the hard-reset, which is normal WM2003 behaviour, but I thought they were persisted on WM5.0. Perhaps they only meant they are persisted when the battery is drained.
Well, in short:
Where can I put files on a WM5.0 device, specifically the Qtek 9100, so they aren't deleted after a hard-reset?
Is it even possible on a WM5.0 device, if so which device(s)?
Quick solution would be to use a SD-card and let my Autorun work with the OnCardInsert function, but that doesn't really float my boat....

WM5 uses its Extended ROM (Ext-ROM) to install customized software, which survive a hardreset.

Even though the answer isn't exactly what I was looking/hoping for, it did help a little.
First I was looking for the search-string 'persistant memory' or 'persistant storage' which gave numerous results, but none of them with answers to my problem.
Now I used Extended ROM as a search-string and that did help a bit better. Didn't even think about using this before, oh well, it appears posting a question does help indeed.
One of the answers I found was this:
[HKEY_LOCAL_MACHINESystem StorageManager ProfilesTRUEFFS_DOC1]
"MountHidden"=dword:00000000
"Folder"="ExtendedROM"
"PartitionDriver"=""
"Name"=""
"DefaultFileSystem"="FATFS"
[HKEY_LOCAL_MACHINESystemStorageManagerAutoLoadTRUEFFS_DOC1]
"Bootphase"=dword:00000002
"Order"=dword:00000001
"LoadFlags"=dword:00000001
"DriverPath"=" DriversBuiltInTrueFFS1"
The bold registry values need to be edited. This way you should be able to see the Extended ROM in the file explorer.
Well, it doesn't. You still can't see it. It is however possible to access the extended rom and write files to it by making files in \\Extended_ROM\\.
Still trying to figure out how to copy/move CAB-files to this directory, but that should only be a matter of time. Otherwise, the work-around is already in my head

total commander would do the trick, just type "\extended_rom" and copy up to 9.5mb of cab's

Related

ROMkitchen are out of date..... Who wants to change????

Hello XDA users....
I think you know it all, that the ROMkitchen is a fine application to get our device nearly perfect.
But the ROMkitchen is out of date. This means many applications aren´t not in the actual version. Therefore Auburnham and I thought to update the applications.
The problem is, that the amount of added applications to the kitchen is to big to make this happen by us two. Because of this problem I´m searching for some people, which wants to help.
Another problem is, that you need for this a device that haven´t got installed that piece of software. This means that when you want to help me with Phonext for example, you must have a device without any version of Phonext installed.
So, if you are going to help me make a snapshot of your device with the ssnap - Application.
Install the software.
Make again an Snapshot of your device with the ssnap - Application.
Send these two files to [email protected] with inforamtion about the program you have installed and the exact Version you have installed.
When I´ve got analyzed the two files i will reply to you with a wishlist of files that have been created on your device. After sending me the files, i can update the kitchen....
IF there are any quesions or anything else, feel free to contact me....
Regards
Stefan
Good Idea :
I'd be happy to contribute.
Tell me which application you want me to install and I'll do it provided that I find the procedure (that I've seen being posted elsewere in this forum).
NB : I'm using XDA I with a Frenchy 3.16 and be stuck with it :evil: ; so there is no chance for me to re-build a new a geniun 3.16 Rom again.
My XDA is all up and running.
I've overcome my Language FRA error message after purchasing a SD card reader and loading the ROM through the bootloader. 8)
Now, I'm about to install ttn 3 on my XDA. Do you want list it in your kitchen ?
What do you need exactly ?
I would be happpy to help. I am a regular user of your site and appreciate the effort that has been put into it.
I understand the effort needed to keep things working and up to date.
Pierre
I'm in!!
Just let me know what you need and when and I will maker every endevour to help.
Thanks for all you do
macudc
Check out
http://lumpistefan.dyndns.org/update.html
Select and download the programs you want to take and send an email to me, that i can remove the files.
Follow the instructions.
If there are any questions ----> Email me....
Thx for Helping.
Stefan
Tanguy said:
Now, I'm about to install ttn 3 on my XDA. Do you want list it in your kitchen ?
Click to expand...
Click to collapse
Tomtom wouldn´t fit in the free space. Already didn´t work for TomTom 2.
Maybe i can include the Gps part....
Stefan
LumpiStefan,
OK on the priniple for GPS. How to best handeled tha case of a sotfware GPS 3.0 on (CD's) that has an upgrade GPS 3.03 to be dowloaded from the web site.
Does the snapshot comes at the end of the 2nd install ?
Tanguy
Howdy all,
I just noticed we had a thread started on this project. I've been working on updates over the weekend and noticed there have already been quite a few. So here are my contributions, including updates and additions:
Upgrades:
Converter CE 1.8c
StorageTools 1.9
PocketNav 2.73 (no snapshot necessary, executable only)
EzWAP 2.5
Polyphonic Ringtone Support (no snapshot necessary, additional files for \Windows directory only)
New Addtions:
Resco File Explorer 2003 * http://www.resco-net.com/explorer.asp
Resco Picture Viewer 4.11 * http://www.resco-net.com/picview.asp
Pocket Player 2.5 * http://www.conduits.com/ce/player/default.asp
Pocket Music 3.0 * http://www.pocketmind.com/pocketmusic.htm
Microsoft Money 2003 http://www.microsoft.com/windowsmobile/downloads/money.mspx
Olive Tree BibleReader 2.31e051 http://www.olivetree.com/handheld/WinCE/WinCEBible.html
AOL Instant Messanger 2.0 http://www.aim.com/get_aim/win_ce/latest_wince.adp
WESTTEK ClearVue Suite * http://www.westtek.com/pocketpc/suite/
QuickTasks 2.8 * http://www.scarybearsoftware.com/ppc_qt_overview.html
InkSpot Newsgroup reader * http://www.dejavusoftware.com/inkce/index.html
Macromedia Flash player 6 http://www.macromedia.com/software/flashplayer/pocketpc/2002.html
Animated Today 2002 (not necessary, requires flash player) * http://www.gigabytesol.com/anitoday.htm
* Trial version, must be registered
I've sent these snapshots off to Stefan, along with the files that I thought might be necessary for these programs. This is going to be great for all of us, but a lot of work for Stefan. We all owe him a great deal, so take him out for a nice meal the next time you see him.
Shawn
LumpiStefan said:
Tomtom wouldn´t fit in the free space. Already didn´t work for TomTom 2.
Maybe i can include the Gps part....
Stefan
Click to expand...
Click to collapse
I don't want to make this any more complicated than it is, but for some programs, it just doesn't make any sense to install to the XDA memory. Most of the media players and "Misc" programs just take up too much unnecessary device memory when they would work just as well on the SD Card (if that's available).
The problem is that those huge programs require just a few small files to be placed on the device itself. So after installing a few of these types of programs, you've used up a lot of device memory from these small files, even though you installed the program to your SD Card.
Is there a way to alter the kitchen a bit to allow cooking of the necessary device files only, and allow the user to later install the program to the SD Card (being careful not to overwrite the files in ROM with files in RAM)?
For instance, with the TomTom program, if you start with a clean ROM and SD card, take a snapshot, then install the program to your SD card, then take another snapshot, you could determine what files need to be on the device, and what files don't need to be on the device, and allow users to either cook the entire program or just the necessary files in the ROM. (Note: This is a good example of a run-on sentence). Would this be a difficult feature to add to the kitchen?
Shawn
auburnham said:
For instance, with the TomTom program, if you start with a clean ROM and SD card, take a snapshot, then install the program to your SD card, then take another snapshot, you could determine what files need to be on the device, and what files don't need to be on the device, and allow users to either cook the entire program or just the necessary files in the ROM. (Note: This is a good example of a run-on sentence). Would this be a difficult feature to add to the kitchen?
Click to expand...
Click to collapse
Maybe the esiest Option is adding a new Select Point for the kitchen like "misc", "System Tools", "Phone" ....
This means having the programs double in the kitchen, but how cares.
I don't know exactly, but when you install a program to the SD-Card, could you select the part where to place it?
If yes, this could be a big problem. Many of the programs store the path in the registry.
If no, i could also provide a ZIP-file, where the rest of the programfiles are in, hust to unzip to the Storagecard.....
auburnham said:
We all owe him a great deal, so take him out for a nice meal the next time you see him.
Click to expand...
Click to collapse
Sounds good. I'm hungry all the time.... ;-)
Stefan
LumpiStefan said:
I don't know exactly, but when you install a program to the SD-Card, could you select the part where to place it?
If yes, this could be a big problem. Many of the programs store the path in the registry.
If no, i could also provide a ZIP-file, where the rest of the programfiles are in, hust to unzip to the Storagecard.....
Click to expand...
Click to collapse
I believe this really depends on (1) how well the program was written, and (2) if you can install the program with CabInst (i.e. has a cab installation).
For example, I try to keep my SD Card organized and tidy so if I use CabInst I install the program to an appropriate folder on the SD Card. If I have to install the program from the desktop, I install the program to the SD Card root, then try to move the program to an appropriate folder and update the shortcut. Most of the time this works without even changing any registry entries, but sometimes it doesn't. Two examples from the above list of applications are AOL Instant Messenger 2.0 and Pocketmind PocketMusic 3.0. To function correctly, they both need to be in their original installation folders on the SD Card.
But perhaps the best solution would be to have an associated .zip file to go on the SD Card, as you suggested.
Shawn
Now the kitchen should be up 2 date again.
Only missing is PocketConsole and the Part "Software that needs to register"
So happy cooking and again Thx a lot to all users that helped me.....
Stefan
A Windows-way for cooking a ROM would be great for two reasons: 1) Don't hassle your server with lots of traffic and 2) Practical. Advanced users could cook a ROM without having a PC with Unix.
For example I tried cooking the Spanish version of the ROM and not all the programs I chose were installed and the worst thing is that the boot logo was just garbage, it was showing program code on the screen as a logo
Regards,
Marton
Marton said:
For example I tried cooking the Spanish version of the ROM and not all the programs I chose were installed and the worst thing is that the boot logo was just garbage, it was showing program code on the screen as a logo
Click to expand...
Click to collapse
Ok. Fixed the problem with the bootscreen.....
Tried also adding as much application, and all have been installed.
Can you tell me, what files / programs are missing?
No one else told me that there have been a problem wirth this ROM. I think it's because of the situation that most of the useres are using WM2003 ROMS....
You can also use the kitchen under "Windows" just have to set up a Cyguin environment on your system....
Also i didn't know how many Kitchen's are implemented by other users, but mine one is the only "official". You can't believe that everyone would be able to set it up.......
Stefan
Thanks Stefan!!!!!!
Now it seems to work but if EzWAP is selected, it throws a Log error when trying to cook...
Cheers,
Marton
P.S.: Do you know if a Spanish WM2003 exists?
Edit: This is the error:
Cannot fit files in given sections
Error splitting files
Just cooked a ROM... I selected the "Windows Mobile XDA" Boot Screen and now it is not garbage anymore but now it shows mirrored and upside down...
Any ideas?
Marton said:
Just cooked a ROM... I selected the "Windows Mobile XDA" Boot Screen and now it is not garbage anymore but now it shows mirrored and upside down...
Any ideas?
Click to expand...
Click to collapse
Hello Marton.
I relaised that this is a problem with the Image.
This Image have been sent to me, and i ithink it's created wih the wrong parameters....
Stefan

How to install software?

Hi....
New user here and just recently purchased the Qtek.
Been a long time Palm user and this is my first WM PDA.
Need help.
Tried searching....but search comes up with too many posts to go through all of them.
How do I install a cab file? Have a SD card and would like to leave the main system memory alone. Remember reading somebody saying something about it but no explanation concerning how to do it.
Why is there no sticky for something as general as this on this board?
Not that I'm saying that this is not a great forum - found a lot of other resources - but there should be a sticky for all the newbies - like me - that explains how to install software, what are essential software that are required, how to change settings, etc..
Anyway, hopes somebody can explain to me how to install cabs and leave it on the sd card.
Mel
PS. Mad Monkey Rules!
1. Put your sd card into the device
2. Copy the cab to your sd card
3. Use the file explorer on the device to surf to the cab file
4. Double-tap the cab file and follow the cabs installation instructions.
Should be good to go...
It's worth reading the publisher's notes/web-site to see if they advise against installing to SD storage card. Most apps will offer a choice of where to install to, but some publishers will ignore your choice - Thanks TomTom! However, you can often overcome that by manually moving files/folders to SD-card and hacking paths in the registry. If you export those keys, it's a doddle to recreate next time.
By all means test to see if an app will run successfully from SD-card, but there are some apps that don't like being left running from SD when the device powers down. Typically you'll find they've crashed/closed when you turn the device back on, but be aware that you may not realise something is wrong until later. Also remember that WM5 is still new and many programs may not be completely compatible.
Be prepared to spend a couple of weeks (or more) trying different applications, and continually hard-resetting your device, until you've built up your desired suite of apps. Most apps are available on a 10 to 30-day trial period, so take advantage of that. When you're ready, perform a fresh install of everything, preferably noting down the order of install. If your chosen backup program allows it, take stage backups so that you can always return to a specific point.
With the Universal & WM5 there's less of an advantage in putting everything in SD-card, since you can't move the split between program and device storage. However, I tend to put as much as I can in SD-card so that't there's less to lose and recover when I hard-reset the beast.
Thanks guys.
Worked great.

dbgtostorage*.* ???

At me sometimes the device starts to stammer at playing music and in a root directory there are files dbgtostorage*.* which constantly grow.
At me one such problem?
In an Internet has found only it:
It is necessary to create directories radically:
DbgToStorageLog0.txt
DbgToStorageLog1.txt
DbgToStorageLog2.txt
DbgToStorageLog3.txt
DbgToStorageLog4.txt
And that for debugging and what for she in a working device with an official insertion I and have not understood it.
Tried in the register of a branch to correct or demolish dll a debugger, my animal there and then was ill, began to brake terribly at each operation. I.e. it not an output.
And has created directories, files сertainly have ceased to be created, but also the device has come to life, even began subjectively faster, and that the most important has ceased to stammer.
In general it certainly not the order with this debugger what feature of it activated also the most important who?
Which ROM version do you have? These files usually mean a debug (test) version of ROM.
ROM 1.8.411.3 Rus official.
It appears that the xpanel logger was turned on somehow.
Try doing a hard-reset or find an R2 (5.4.xxxx) ROM for your Herald - it is out already.
It is a hardware mistake!
Did all that is possible and 5.4 too has not helped. Has exchanged the device in shop, in new all is normal!
Hardware itself does not create files, this is an OS feature.
It disagree. I put different ROM, have not helped.
I think memory beaten, therefore and works a debugger.
Rather, radio works in some kind of engineering mode, and system just logs the info. There's a similar problem with P3300. I suppose this has something to do with production quality.
Did both (vvv121,ASerg) of you have solution for this kind of problem i have same problem in my xda orbit now and i haven't found any solution even googled it
please tell me what to do?
In Registry explorer (SKTools) search for key: DebugLog (HKLM\Drivers\BuiltIn\DebugLog\), rename Htc_Lib.dll (delete simbol "_"), change index from 2 to 0. Save and exit SKTools. Soft Reset.
After soft reset - delete all DbgToStorageLog.txt.
In some cooked roms this key is missing. Sorry for English poorly.

How to group cabs in one cab?

Is possible to group several cabs in one cab?
I want it to save in the Extended Rom of my TyTn, so that when I do a HardReset, automatic it starts to install all the modifications of registry and some programs that I have in several cabs from the pocket, without need of pc.
I search on the forum, but I don´t find any solution.
Thanks
Well first off, if you use the autorun.exe that already exists in the extended ROM and modify its configuration file (the name may be different for different devices, but it is usually a plain text file) you can get it to install several cabs in sequence.
Combining cabs is not always possible unless you are the one who created them in the first place.
Get a program called CE Cab Manager. It will show you everything that a given cab includes and let you edit it. As long as it's just files and registry settings there is no problem stuffing them all in one cab.
But if a two cabs contain a setup.dll there is no way of combining them without knowing exactly what that DLL does (it could be anything) and thats almost impossible (unless you can read ARM assembler well).
tristan1412 said:
Is possible to group several cabs in one cab?
I want it to save in the Extended Rom of my TyTn, so that when I do a HardReset, automatic it starts to install all the modifications of registry and some programs that I have in several cabs from the pocket, without need of pc.
I search on the forum, but I don´t find any solution.
Thanks
Click to expand...
Click to collapse
what levenum said is correct... so the best thing for you to do is to edit the config.txt file in your extended rom to have them install... HOWEVER if the cabs you are using arent digitally signed then they wont install using that method, you would need to disable the security first... Since no one has a signed disable security cab that works with the tytn the only option would be to do this on a hard reset; soft reset before the customization, when it boots run the tweak program to disable security, then go to the windows directory and manually launch the preautoconfig.exe
software alternatives
tristan1412, you can also use a software dedicated to this task.
check spb airsetup (www.spbsoftwarehouse.com, i'm not sure if it allows more then one cab), or even better airwizard (http://www.teksoftco.com/index.php?section=airwizard)
the advantage of these programs is in my opinion the compression. then you also get several options like readme/eula (with airwizard you have spash image support and even sd card output support - that creates autorun content for the sdcard)
hope this helps
RM
shogunmark said:
....HOWEVER if the cabs you are using arent digitally signed then they wont install using that method, you would need to disable the security first...
Click to expand...
Click to collapse
First of all, thanks for the answers.
now, How can signed digitally my own cabs??

Automating Program Installs

Hey all,
I have a question.
I have been playing with my 8125 a lot lately and am constantly resetting my device. What I want to know is I have one main machine that I do all my application installs via active sync that way when I hard reset my device I just have to go to add remove programs in active sync and re-check all the programs I want to put back on my phone.
Here is what I want.
I don’t want to have to tell the phone where to install the applications (I want it to default to storage card without any prompts.) and.. I don’t want any confirmation prompts ie: security unsigned, approve this application to be installed, this application was installed properly… etc.. I want to streamline the process so I can just tick the check boxes for my apps, let them download and that’s it. Currently after refreshing I have to spend quite a bit of time clicking “ok” … storage card…. Ok… storage card… ok… I think you get it.
Thanks much!
I've seen a lot of different reg keys out there that may accomplis this. Is there a way to disable the notifications and pre-set the install path peramaters?
sledwrecker said:
I've seen a lot of different reg keys out there that may accomplis this. Is there a way to disable the notifications and pre-set the install path peramaters?
Click to expand...
Click to collapse
You can do this with WinCE Cab manager
If you really reset your device that often why don't you use SPB BACKUP? A reinstallation of all your apps wouldn't be necessary - just load your backup and you're ready to go!
Ya I did think of that but here is my issue.
the reason I am constantly hard reseting is because I am changing and playing with roms pretty much on a daily basis. I've been cooking my own roms trying to come up with what works best for me and what is closest to RTM. Thus why I am always re-installing apps.
So if I use SPB backup (which I have) it saves system settings and such right? So if I am switching roms all the time will it break my device?
Thanks guys! I'm new to the forum here I just got my first PPC phone a couple weeks ago but I've been an avid windows mobile (smartphone) user for years and have worked on WM platforms as beta tester.
Gotta love this stuff!!!
sledwrecker said:
So if I use SPB backup (which I have) it saves system settings and such right? So if I am switching roms all the time will it break my device?
Click to expand...
Click to collapse
Yes you are exactly right, and so many people seem to miss this... Spb Backup, Sprite Backup, etc are full backups that backup and restore the registry and all. If you restore this from one rom to a different rom you are likely to break something (may not be obvious at first, but you have a very good chance of things being broken inside the registry that you will trip up on at some point).
So yeah, the only way around this (without building your own extended rom and such) is to create a folder (or set of folders) on your SD card with all the cabs, files, and settings that you need for when your flash a new rom. Then run through that to set things up. You can also use ActiveSync to reinstall apps (just check them all and it will put them all back on) but you have to remember which ones (if any) require a reset of your device as that can cause probs with the others that are installing (if all done together).
Yep,
but at least you can import contacts, email and pim data that way quite easy!
Since you continiously flash your device: there will be no other solution but reinstalling your applications again and again. You might want to look around for a CAB extractor and then create your own CABs with all the progs you would like to have in one large CAB ???
One such CAB Installer Creator is: WinCE CAB Manager
Take a closer look at MolskiBiz_DevPack and you will find a utility to extract CAB files. It will be a bit work to add all the registry values to the Installer you're going to create but finally you might save a lot of time since you only run 1 installation instead of xxx ...
This is good, I have been playing with wince cab and it is a solution.
Now I'm going to work on making my extended roms.. will this work? I did a full recover of my apps through active sync just an hour or two ago and it reported total size of all cabs as just over 112megs. That means I'd be flashing a MONSTER rom and would it even be possible?
2gig mini SD card.
thanks
I tried before to add some apps (cab installers) to a personalized extended rom but it never worked the way I wanted it to. You might have seen that you always have to give some inputs when ever you install programs, sometimes you get ask if you really want to install the app, sometimes you need to choose a location. So, if you add CAB installers UNCHANGED to the extended ROM it just won't install because during extended rom installation you have no way of providing that information.

Categories

Resources