Replace files in ROM via CAB installer - Windows Mobile Development and Hacking General

Please help me someone how to make CABs which can replace system files in ROM (e.g. gwes.exe etc.). I know that there are many users who know how to do these CAB files...
BTW I have searched all available WM5 forums and found nothing

You can't actually replace ROM files using a cab. What you can do is overwrite any ROM file once, with a file that has the same name. The actual file will be stored in the normal storage memory and referenced instead of the original ROM file by anyone trying to access it.
If you hard reset (format) the device the original file will be back.
There are no special actions required to do this. Create a cab as usual with the files you want.
Note two things: 1)You really don't want to mess with gwes.exe because you are likely to crash your device. 2) On some devices, replacing system files may require changing security settings first. If your cab fails because of permission issues, search for 'Application unlock' for your device.

Thanx very much for your reply I want to mess with system files because I'm going to make translation of my device I tryed to make CAB file but it seems my device (Mio A701) is locked so you say I must search for "application unlock" specially created for my device? Isn't there any universal unlock for WM5 devices?

Related

Is there a way to override a rom file?

Is there a way to override a rom file?
I found welcomehead.192.png the windows boot screen, not the initial imate one, the blue windows one, ive edited the png, but cant replace the file as it is in rom, any suggestions as how to do this? or is it wait until someone works out how to open the nbf file and then change that way?
Theres nothing in the registry that i can find that points to this file
anyone?
just overwrite the file with the same name. ignore errors
1. As sama says, just use a proper file explorer (Resco/Total) to overwrite the ROM file. If you delete the new file the old one will still be there in ROM.
2. The ROMs can be decoded, you can change the ROM then flash it. This is not a safe thing to do, and is complicated. However, this is a total waste of time (hours) for a 100KB image file unless you really can't afford 100KB in your Programs Memory.
3. If you want, you can also change the "initial imate one" too. Buzz has the tools and instructions on his site (http://buzzdev.net). This will be a flash job, but takes up no space and a hard reset won't wipe it.
Hope this helps.

How to copy file with 'ROM' attribute? (or how to change that file attribute?)

Hello,
I am trying to copy a file (from my smartphone to SD card), which have a 'ROM' attribute set and... it is impossible - acces denied is showed (even in Resco Explorer, Total Commander). I can't even change that attribute.
Please help me to find any solution
Best greetings,
RA
You should be able to extract files from the ROM file on your PC thanks to the tools provided in one of the sticky about ROMs modifications.
Unfortunatelly...
Cricri said:
You should be able to extract files from the ROM file on your PC thanks to the tools provided in one of the sticky about ROMs modifications.
Click to expand...
Click to collapse
I have extracted an 'nb' file from my ROM file, but WinImage can't open it ("not FAT16, FAT32 file"). It is WM6 image file, what tools to open this 'nb' file?
Best greetings,
RA
I, too, am trying to find a way to copy some ROM attributed files.
Ultimately, I am trying to move/copy some apps from one smartphone (WM5) to another (WM6). Is there a way to copy them to a zip file and move the files that way or maybe even using a backup copy (i.e. using Sprite Backup?) and restoring to a different phone?
Any help or direction would be appreciated. If there is another thread out there, please be sure to point me to it since searching brings up a lot of different threads.
u need to extract the rom.
Funny, but you make it sound so easy... ;-) I've been searching to figure out how to do that and found some instructions I'm hoping I can follow for the one phone, but not sure it it will apply to the old phone (WM5). If I do manage to dump the ROM, where does it go and does it extract the files in cab format for easy upload?
Update: I found a file extractor at http://pdaphonehome.com/forums/ppc-6700-xv6700/56057-6700-rom-dump.html which may have originally come from Buzz... (thanks Buzz!)? so now I have all the files and modules off the old phone, but am running into some issues installing. I can transfer the files indirectly, and can find the specific application file, but when trying to run the app, it tells me that it's still missing files to enable the program. Any ideas on how to determine which files they might be or how to install the files via Activesync?

Cab file creating

i just put together a cab file (for personal use) to remove sms threading (due to upgrading roms alot etc)
however i have hit a brick wall.
i do not know how to make the device restart after install?
i have compared to other cab files but the only difference is the other cabs install files not registry?
i'm not all that good with programming however i would really like to complete this cab for ease of reloading a new rom - so any input would be grateful - thank you
For cab file creating i use PocketPC Installation Creator. In the menu there is a check box to set the 'reboot after installation' behaviour. I played with it but noticed that my device only rebooted after installation of files. Because i found it to much effort to look into it, i didn't. After all it is quite easy to reboot manually.
You could use MSCEinf to examine different cabs and look for the reboot after installation setting (http://www.codeppc.com/telechargements/msceinf/msceinf.htm)
I also noticed that some people make cab files from .xml files (sleuth for example). Maybe this method has other options than cabarc in combination with inf files.
Cant give you any answers, still hope it will be of any help.
Good luck and post back result if you figured it out.
Arjan
The easiest way tocreate CAB files is to purchase a copy of WINCE Cab Manager from OCP Software
they have just released a new version which supports Vista
i created the xml document then created the cab from it.
should have said that sorry.
so i was looking for a way to restart device via the xml..
thanks for the input so far

Trying to add rlToday to extROM

Hey Guys,
I am trying to add rlToday.cab to my Glofiish M700 Rom,
but after flashing, when the phone is installing the extRom files, it stops after installing the rlToday.cab file.
When I install the software the normal way, it gives a notification that the rlToday-plugin is added to my todayscreen and than you have to push OK.
So I think that I have to push that button, before the extRom installation continues. So, is there any way to unable that notification.
Thanks in advance
This thread has a program that allows CABs that require user intervention to be installed using Autorun. I use it for rlToday, AEButton plus, and Mortbuttons. All three require user intervention during install, and SDconfigGen works great!
Thanks for your reaction. I read about this, but this is actualy not the way I want it, because now you need the ROM, a SD-card + the cab files on it. I could probably edit the .mscr file and put the rlToday cab in my ROM in the Windows folder, but that way you'll have unnessesairy files in your Rom, or yes, maybe I could do it this way, but isn't there any other way??
You know, I am just trying to make the perfect Rom for myself, so it would be realy great if I got it working.
By the way, does anybody know how to add your contact list to your ROM??
SDConfigGen can show you how to setup user intervention, look at the files it generates, use it as an example and edit a few files so that everything works from the Extended_Rom. It's really easy. here is the mortscript I created for rlToday:
Code:
windowTitle = "Setup"
WaitFor(windowTitle, 60)
SendCR(windowTitle)
Just rename sdconfig.txt to config.txt, edit the paths to the files, move a few files to your Extended_Rom image, and you're good to go.
this is the best way to solve your problem.
other solutions:
1. leave LOCK turned off in config.txt and do your own user intervention. (not sure this works)
2. rebuild rlToday.CAB so there is no user intervention.

[HELP] How to register a dll?

I try to create a program which consists of
.asx files (to show online tv channels),
.lnk files (shorcuts to the .asx files) and
a .dll file which contains only some .ico files (icons of the tv channels).
I added all these files to a cab using WinCE Cab Manager and tried to install it on my ppc. So far so good. The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Although I have no idea about computer programming, I have created many cab’s with WinCE Cab Manager for skins I have created for several programs. Anyway, I realized that the problem occurred due to the .dll file, since this is the first time I add such a file in a .cab.
I created my .dll file using a .dll from another program which had only icons in it, as well. I deleted them using Restorator 2007 and I had an “empty” .dll sized 4KB. Then I added my icon files using XN Resource Editor.
I searched the Internet to see what might be the problem with the .dll and I found out that I have to “register” my .dll file. I really have no idea what this means but it needs to be done. I also found an option in WinCE Cab Manager for “self-registering” file, but it didn’t work either.
So, the question to you dev guys is how can I register my .dll file, or should I create it from the beginning with another way?
Please help! Thanks in advance!
sorry to repost but it seems that posts keep coming in this forum and this thread is already in the second page and I'm afraid that noone will see it and reply to it. By the way, is there any special sub-forum for such questions?
This may help. I use his instructions to edit existing DLL's
http://www.modaco.com/content/i9x0-...88904/lisbian-taskbars-for-i910/#entry1023568
It will unsign the dll which will probably fail on your custom dll but it should sign it when you are done editing.
NilsP
Many thanks for your suggestion but unfortunately it didn't work for me.
As you said, this is mainly for resigning already signed .dll files.
Any other help will be appreciated. I can attach it here if anypne is willing to help. Or just tell me the way. Thanks!
I deploy a few dll's with my app, without any problem. If the installer complains about the location, what did you specify where it should go?
There are 2 approaches to solve this problem:
1.) If you have a private key to match a certificate in the device's certificate store, sign the .dll and .cab with this private key and it will be installed with elevated privledges, and be successful. To facilitate this you can install the "SDK Certificates" - and sign with the matching private key (you should be able to find these on a search, term "SDKCerts" or similar)
2.) Look for an "Application Unlocker" or other security reduction tool, run it, and you should be able to install the cab. On this note, if you check here, it will give you a more technical overview of the security policies. You want to change 4101 / 0x1005 to "SECROLE_MANAGER" (8) - which tells the system to install it with elevated privledges. Also make sure 4102 / 0x1006 is set to 1 to allow unsigned applications.
6Fg8
I don't believe that is the location I specified that causes the problem because when I deleted the .dll file from the .cab, it was installed properly. How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Da_G
Thanks but both approaches seem very complicated for me!
So, will I need Visual Basic in order to do this or is there any easier way? Can anyone sign the dll for me?
angelos_cy said:
6Fg8
How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Click to expand...
Click to collapse
Yes with programming, C++ or .net. Never had any issue with signing. I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
6Fg8 said:
I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
Click to expand...
Click to collapse
I have sent them to you by pm. They are not secret at all but I will create a "program" (wannabe ) with that dll and I want that program to be a surprise for users of the forum where I'll post it. I may post it on xda too, but it's nothing important.
Many thanks!
angelos_cy said:
The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Click to expand...
Click to collapse
This happens because you've changed resources in signed file, which changed file checksum and invalidated it's signature, and Windows installer refuses to install file with invalid signature. But it won't refuse to install this file WITHOUT signature at all - so use unsigner (search for it on XDA) to remove signature completely; if you encounter error, try to remove signature from original (unmodified) file, and then change resources in it...
6Fg8
the_ozyrys
Thanks to both of you!
6Fg8 has created and signed the dll for me and it finally worked, but I also tried the_ozyrys' method and it also worked.
So thanks to baniaczek too, since he created the unsigner.exe.
Everything worked fine with the dll. Now the cab is installed properly.
However, I have another problem. Just after the installation of the cab on my ppc, it seems that the device freezes for about a minute. This is propably because my cab contains a lot of shortcuts (.lnk files) that go under Programs folder.
So, I would like to ask for another favour, if it's possible. As I said I intend to give this cab to others too. Since this delay can make them believe that my program has freezed their device, I would like to make the cab restart the device just after installation and after uninstallation as well. I think this is made with the "Setup.dll" which I don't know how to create.
If anyone knows how to do this and has the time for it, could you please create this setup.dll for me. If the cab is needed to do this, just tell me to send it to you.
Thanks in advance!
Anyone? Plzzzzzzz!
If you want to sign .dll or .exe u can use the apps posted in the two posts below
http://forum.xda-developers.com/showthread.php?t=432041
or
http://forum.xda-developers.com/showpost.php?p=3530246&postcount=18
raykisi
Thanks for your answer but 6Fg8 and the_ozyrys already helped me on that.
My question now is how to create a setup.dll in order to make my .cab to prompt the user to restart the device after installation and uninstallation. If anyone can do it for me, I can send you the .cab which I alreday created and you can add the setup.dll with those functions.

Categories

Resources