Batch installation and update of settings - Windows Mobile Development and Hacking General

Hi,
I'm looking for a bit of help with this if possible, basically at work, i have to constantly setup a load of HTC P6500 devices all running on windows mobile 6.1.
On each device I have to install certain programs from an sd card and update quite a few system settings.
Is there any way this can be done with a batch file perhaps, that would install all the software and update all the settings I need it to?

"XDA UC" could be what you are looking for, but it needs to be cooked in into WM.
I think there already is such a machanism in WM, but I don't really remember it's name...

.cab
make a .cab which has all the programs and settings.

maybe RunCC is in your ROM...

thanks for the help everyone, managed to get around this using SPB backup trial which let me essentially clone the device, and restore this back to the rest.

Related

After a Hard reset how do I automatically run a config script

Does anyone know how to automatically run a config script or application after a hard reset?.
if your talking about the autorun.exe the one that loads the cabs from the ext rom then it should automatically run after a hard reset, if it does not then you may need to re-flash your rom as your ext rom has been trashed
Hi,
Thanks for that - what I am trying to do is...
I install an app (including .net v2.2) When the device is hard reset I want to be able to get PPC to automatically reinstall .net 2.2 and my own app.
Presumably I need to put some cabs somewhere that will be automatically run by autorun.exe?
But where (and how) do I place the cabs and what should they be called.
Many Many Thanks
Chris
Chris_French said:
Hi,
Thanks for that - what I am trying to do is...
I install an app (including .net v2.2) When the device is hard reset I want to be able to get PPC to automatically reinstall .net 2.2 and my own app.
Presumably I need to put some cabs somewhere that will be automatically run by autorun.exe?
But where (and how) do I place the cabs and what should they be called.
Many Many Thanks
Chris
Click to expand...
Click to collapse
yes, the cab must be in the ext rom and you must edit the config.txt in the ext rom.. its easy and you will understand as soon as you open the config.txt
There is a section on wiki in the BA section (extended rom kitchen) that will give you more info.
Link Below
Thanks for that - It is a real help - If I can do anything for you in the future just let me know.
One more (hopefully) final question on this point....
How do you unlock the extended rom on Win Mobile 05 (Ipaq 6515). I have found some stuff on it but nothing seems to work
I have a apache Verizon and a T-mobile h6315. I'm guessing that your's is simular to my h6315. On the h6315 the extended rom is called "iPAQ ROM". search for it in your registery. You'll find that there is a entry that shows it's mode of the file system. value is one change it to 0, or delete it from the registry and reboot.
In the extended rom there is a directory called Config there is a cab provisioning file and cab file that I think are probably installed on a had boot.
Sorry, I can't look up the specific regristry entry now, will try later if this isn't good enough.

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.

Flashing new ROMs and Applications

So I flashed Energy ROM not too long ago and I had to back up a number of applications on my phone to my SD card before I did it. Knowing that I might flash newer ROMs as they come along, I figured that I might as well keep everything on my SD card permanently. The only problem with this is that WM doesn't know it's installed. That is to say that whenever I update an application, the device treats it like a new installation and doesn't ask me if I want to uninstall the old version first. Secondly, certain applications (like most of Astraware's games) don't appear to be happy opening unless they're installed properly (I assume it's expecting certain registry keys to be there).
So what have most of the ROM flashers on this forum done to make sure all of their applications are working right immediately after a new flash?
SlyMaelstrom said:
So I flashed Energy ROM not too long ago and I had to back up a number of applications on my phone to my SD card before I did it. Knowing that I might flash newer ROMs as they come along, I figured that I might as well keep everything on my SD card permanently. The only problem with this is that WM doesn't know it's installed. That is to say that whenever I update an application, the device treats it like a new installation and doesn't ask me if I want to uninstall the old version first. Secondly, certain applications (like most of Astraware's games) don't appear to be happy opening unless they're installed properly (I assume it's expecting certain registry keys to be there).
So what have most of the ROM flashers on this forum done to make sure all of their applications are working right immediately after a new flash?
Click to expand...
Click to collapse
If you flash a ROM, you have to reinstall all the applications. Some of the ROMS will automatically install your cab files if you set it up. WM has to update the registry for each program, and the details may be different for each ROM, and for each time a particular ROM changes versions. So, yes, you ARE doing a new install.
stevedebi said:
If you flash a ROM, you have to reinstall all the applications. Some of the ROMS will automatically install your cab files if you set it up. WM has to update the registry for each program, and the details may be different for each ROM, and for each time a particular ROM changes versions. So, yes, you ARE doing a new install.
Click to expand...
Click to collapse
But really isn't it silly to do all of that work?
Surely there is something you can change in Windows Mobile that will tell it a specific application is installed on the device. For the registry keys, I can simply write a Mortscript that adds and updates the keys for all of the applications I typically want on the device. If I add an application, I just add its keys to the script. Ideally, I'd just like to run this script every time I flash a new ROM and have all of the dependencies set up automatically. I'm not sure, however, what I need to edit in order to make the operating system thing an application is installed (basically it appears on the "Remove Applications" list)
Yuu need something like this then [UC]XDA_UC Autoconfiguration User To User Thread[23-06-2009]
You should take note that I'm not sure if that's the latest version. But if you throw all your cabs in the XDA_UC folder and follow the instructions of the thread there you'll have it installing ALL your aps automatically when you flash a new rom
Aaron McCarthy said:
Yuu need something like this then [UC]XDA_UC Autoconfiguration User To User Thread[23-06-2009]
You should take note that I'm not sure if that's the latest version. But if you throw all your cabs in the XDA_UC folder and follow the instructions of the thread there you'll have it installing ALL your aps automatically when you flash a new rom
Click to expand...
Click to collapse
I believe that the ROM has to support this feature. So far as I know my ROM (NRG) does not, for example. But if it is supported it is great.
SlyMaelstrom said:
But really isn't it silly to do all of that work?
Surely there is something you can change in Windows Mobile that will tell it a specific application is installed on the device. For the registry keys, I can simply write a Mortscript that adds and updates the keys for all of the applications I typically want on the device. If I add an application, I just add its keys to the script. Ideally, I'd just like to run this script every time I flash a new ROM and have all of the dependencies set up automatically. I'm not sure, however, what I need to edit in order to make the operating system thing an application is installed (basically it appears on the "Remove Applications" list)
Click to expand...
Click to collapse
Well, I actually don't plan to be changing ROMs all that often. So far the latest NRG ROM is working well for me.
Yes, it is a lot of work, but I have all my .cab files in a single directory. So installing them is not that hard. My experience is that this method (or one of the auto install methods) provides the highest possibility of a stable WM environment.
I believe that you could probably create a script to put in the registry entries, but what if the ROM version has changed locations in the registry? Anyway, if you DO develop such a script, be sure and post the results on the forums!
the latest NRG roms do support this.
Aaron McCarthy said:
the latest NRG roms do support this.
Click to expand...
Click to collapse
Ah, good to know, maybe I'll give it a try. Although I actually prefer to watch each step...
Sashimihis?
Have you tried this? Sashimi
Youtube Demo
edit: Sorry for the wrong name in the title, but it won't let me edit that...(my keyboard went nuts..)
-Sblindheim

[Q] Cannot run any .exe file

i tried installing android but it didnt work the haret file wouldnt open and kept getting error message (http://forum.xda-developers.com/showthread.php?p=11352461#post11352461)
So i tried to flash my rom following this tut
http://forum.xda-developers.com/showthread.php?t=505377
but i was unable to run SPL v 1.56.OliNex, it kept saying error 240 device not responding
so i put the manual touch hd .exe onto my phone
but i get the same error message as when i run haret
the file 'name of .exe program' cannot be opened. either it is not trusted..if the problem persists try reinstalling or restoring the file..
what do i do?
......... any 1?
excatly like the error message says, there can be 2 possible reasons, why it wouldn't open:
1. it is not trusted
2. a component is missing
1. if it is not trusted, try hd tweak and set it to ignore certifications warnings
2. the "component" that is usually missing is .net framework 3.5. many apps come not fully loaded with their own code but are based on certain runtimes, which makes them compatible with more windows mobile versions and keep them clean, but to have those shared libraries and make the phone "understand" this program, you need to install the .net framework.
Chef_Tony said:
excatly like the error message says, there can be 2 possible reasons, why it wouldn't open:
1. it is not trusted
2. a component is missing
1. if it is not trusted, try hd tweak and set it to ignore certifications warnings
2. the "component" that is usually missing is .net framework 3.5. many apps come not fully loaded with their own code but are based on certain runtimes, which makes them compatible with more windows mobile versions and keep them clean, but to have those shared libraries and make the phone "understand" this program, you need to install the .net framework.
Click to expand...
Click to collapse
already gt framework 3.5, ill try hd tweak
edit
i tried to install hd tweak but when i opened the .cab file on phone i got past 'the program is from an unknown publisher..do you want to continue' i pressed yes but then i get the message 'installation of HD Tweak was unsuccessful'
too bad, i already suspected something like this to happen. to disable certification you'd have to install an uncertified program, vicious circle. what rom are you running? many roms don't have the certificate issue, because by default this is disabled by the rom chefs. another thing that you could try might be the autoinstall feature:
in my rom (cloudy 0.7) there is an autoinstall feature. it consists of a startmenu link AutoInstall, which then disables certain policies (including certification) to install all cabs in the AutoInstall folder on the sd card, kinda like an EXTROM known from older devices. most roms have a user customization (UC) feature built in, please post your rom chef and version or refer to the thread you got the rom from to check for this feature. i hope you already have ms myphone installed or you are able to run pimbackup on your device, because you might have a hardreset coming in your near future, and you should make sure to have backups of all your personal data and only that. using sprite backup, spb backup or resco backup is not recommended, that will not only restore your data, but also the problem, you are having right now.
in case you are running a shipped rom, which would explain, why that annoying certification is there in the first place, chances are slim, that UC will work for you, and if you also don't have ms myphone or are unable to run pimbackup, you should at least try and sync your data with exchange or outlook (however, this will not backup your call logs or sms)
i am still wondering what might have caused your troubles in the first place. did you install android as a cab? if it was the new froyo x build, which comes as portable os, it should be completely wiped, when you delete the folders from the sd card, in case of the earlier cab version, you might want to try uninstalling it. in case you made the error to install it to the internal storage, the hard reset is inevitable.
Chef_Tony said:
too bad, i already suspected something like this to happen. to disable certification you'd have to install an uncertified program, vicious circle. what rom are you running? many roms don't have the certificate issue, because by default this is disabled by the rom chefs. another thing that you could try might be the autoinstall feature:
in my rom (cloudy 0.7) there is an autoinstall feature. it consists of a startmenu link AutoInstall, which then disables certain policies (including certification) to install all cabs in the AutoInstall folder on the sd card, kinda like an EXTROM known from older devices. most roms have a user customization (UC) feature built in, please post your rom chef and version or refer to the thread you got the rom from to check for this feature. i hope you already have ms myphone installed or you are able to run pimbackup on your device, because you might have a hardreset coming in your near future, and you should make sure to have backups of all your personal data and only that. using sprite backup, spb backup or resco backup is not recommended, that will not only restore your data, but also the problem, you are having right now.
in case you are running a shipped rom, which would explain, why that annoying certification is there in the first place, chances are slim, that UC will work for you, and if you also don't have ms myphone or are unable to run pimbackup, you should at least try and sync your data with exchange or outlook (however, this will not backup your call logs or sms)
i am still wondering what might have caused your troubles in the first place. did you install android as a cab? if it was the new froyo x build, which comes as portable os, it should be completely wiped, when you delete the folders from the sd card, in case of the earlier cab version, you might want to try uninstalling it. in case you made the error to install it to the internal storage, the hard reset is inevitable.
Click to expand...
Click to collapse
im running original rom
here read this
http://forum.xda-developers.com/showthread.php?p=11352461#post11352461
i think this is what caused the problem, any idea how to solve?
as mentioned before, your device is pretty screwed up and you best option is to try and backup your personal information and then perform a hard reset and format your sd card (which might have troubles due to the android incident)
Chef_Tony said:
as mentioned before, your device is pretty screwed up and you best option is to try and backup your personal information and then perform a hard reset and format your sd card (which might have troubles due to the android incident)
Click to expand...
Click to collapse
Ive reformated mem card, ive backed up my documents with activesync. Yes im a noob how do u hard reset ?
switch off the device completely (not just sleep). then while pressing both the volume keys, switch it back on. you should see a white screen with blue font giving you instructions on how to reset the device to factory defaults.
Chef_Tony said:
switch off the device completely (not just sleep). then while pressing both the volume keys, switch it back on. you should see a white screen with blue font giving you instructions on how to reset the device to factory defaults.
Click to expand...
Click to collapse
thanks now gt android but im using the blackstone henge rom is this a good rom?

Hello Wm61 question

Hello,
Hoping someone could clear up a couple things for me. At my work we use the mc9090 RFID scanners which run windows mobile 6.1 currently. Currently we use motorola osupdate to push applications in a CAR file once the OS update util flashes the stock rom which are .sig files and .bin files. My question is do i have any chance of dumping the rom and if so would I be able to get it back on the device. Currently i was able to use imgfs tools to dump the os partition into a .raw files but that is as far as i got with dumping. So since they are signed files how would or is it possible for me to get them back on the device? I just didn't want to waste anymore time if i am not going to get anywhere on this. Also not saying that I would be able to use it but is package builder for wm what actually generates the .sig files?
Any ideas about how i could make this work would be awesome or any other ideas. The goal here is for us to have a base wm6.1 with all of our software on it and configured when we image a gun. I am sure motorola would hook us up with microsoft to do this but trying to figure out if anyway i could pull this off internally since we update so much..
thanks
jphilpot said:
Hello,
Hoping someone could clear up a couple things for me. At my work we use the mc9090 RFID scanners which run windows mobile 6.1 currently. Currently we use motorola osupdate to push applications in a CAR file once the OS update util flashes the stock rom which are .sig files and .bin files. My question is do i have any chance of dumping the rom and if so would I be able to get it back on the device. Currently i was able to use imgfs tools to dump the os partition into a .raw files but that is as far as i got with dumping. So since they are signed files how would or is it possible for me to get them back on the device? I just didn't want to waste anymore time if i am not going to get anywhere on this. Also not saying that I would be able to use it but is package builder for wm what actually generates the .sig files?
Any ideas about how i could make this work would be awesome or any other ideas. The goal here is for us to have a base wm6.1 with all of our software on it and configured when we image a gun. I am sure motorola would hook us up with microsoft to do this but trying to figure out if anyway i could pull this off internally since we update so much..
thanks
Click to expand...
Click to collapse
My suggestion is to set up one of your devices with all the setting and configurations exactly the way you want them, and then image that device using a program like Sprite Backup http://www.spritesoftware.com/ It's a tool I use to keep my device secure, since I do a lot of tweaking on it.This way, if any of my adjustments end up breaking it, I can always restore to a configuration that I know works. The same principal should work for what you need.
sprite
Unit ZER0 said:
My suggestion is to set up one of your devices with all the setting and configurations exactly the way you want them, and then image that device using a program like Sprite Backup http://www.spritesoftware.com/ It's a tool I use to keep my device secure, since I do a lot of tweaking on it.This way, if any of my adjustments end up breaking it, I can always restore to a configuration that I know works. The same principal should work for what you need.
Click to expand...
Click to collapse
We tried sprite clone in the beginning and didn't work out right. Some stuff didn't come across right, so not saying i havent learned
enough now to fix that stuff but as far as us implementing it i don't see that happening.
I will give it another look since we have 100 licenses :]

Categories

Resources