post cab installations scripts - General Questions and Answers

Hi,
I want to know how to add post installation script at the end of cab installation.
Take finger keyboard for example - that runs its configuration tool right before the installation ends.
The reason I'm asking is because I have a cab that its post installation script screws up my device and I want to get rid of it.
thanks in advance!

Bump
Was he question not clear enough or is there simply no answer to it?
I would really love to know how to do it, so thanks in advance to whomever can help

SKtools has CAB manager, you can try it to mess with install prosess.

In my opinion your *.cab contains a *.000 file (setup.dll related).
I can help you demistify (MSCEInf see below) this *.cab !
What you (and I) want (and where most WM6> <WP7) phones break (read do(es) weird things) is when there's no setup_.xml from here most weird stuff happens
Example;
Thus something.cab consists of;
*.000
*.001
-
*.018
And
theother.cab consists of;
*.setup_.xml
*.001
-
*.018
My question to you is, does your CABinet file conatain a *.000 or just a setup_.xml file ?
Q: How do you know all of this stuff?
A: Do some reading and a little bit more reading and some more and then trying to understand, do some combining, rereading, re_organizing, re_bookmarking, rereading etcetera..Then I start all over...
Q: You have a nice link about cabinet files?
A: Of course HERE1 and HERE2 and HERE3 for starters...
And for those who don't want to read, just click N point;
WinCE CAB Analyzer -=[ MSCEInf]=- : *.CAB D3M1571F1C4710N and extraction
Have phun,...(I sure did, when I woz into this stuff)..,

Related

how can I cook a ROM by myself?

You never told anybody how to do it and then you complain of constant requests
I don't want to cook Wm6 I just want to change some files in my current WM5 Rom!
Could you please tell me how can I do it?
It does not need to be told how to do it, but told how to search ! A lot of people here know how to do it, just GOOGLE it !
sorry, I've already searched... Maybe I'm searching badly!
Could you please help me?
Basically you need to extract the ROM installer, you will find an nbf file in it, then get an NBF file converter, to convert it into some sort of editable format, then you start cooking the ROM, placing whatever you want, and in the end, convert it back into NBF
Hello,
You might find something useful here:
http://www.modaco.com/index.php?showtopic=255064
It would be more helpful if people genuinely try to help others instead of directing them to Google.
A
hey
if you can wait a day or two, i will write up a nice simple guide for everyone and have it stickied
i will also provide links to the tools required. it really isnt as difficult as some people thing! it just LOOKS difficult!
and we are a community here, so lets just help rather than-use the fricking search!lol. we were all n00bs once!
duke_stix said:
hey
if you can wait a day or two, i will write up a nice simple guide for everyone and have it stickied
i will also provide links to the tools required. it really isnt as difficult as some people thing! it just LOOKS difficult!
and we are a community here, so lets just help rather than-use the fricking search!lol. we were all n00bs once!
Click to expand...
Click to collapse
if all were like you ...
I know it isn't but in so much amount of infos it's not easy to find ones that apply to your device or even thing you wanna do!
Need help too
Yea, Please..my probs are the reconverting my data into a .nb->nbf file...after flashing My phone hangs in First Bootscreen...please help!Only Reflashing helps...i really want to cook a rom by myself.
Ive used THIS kitchen...but it is for Wizard-devices only....but i think,it can be used for Tornado,too.
as far as we tried we could not make a proper dump of the wm5 tornado...
but i did manage to build a rom kitchen with wm6 for the tornado...this was a whileago and the base rom is the same as the current available...if ther is enougth request i may be inclined to update the RK and release it.
to get you started here is some pointers.... you can use the same tools from the wizard, imgfs tools.
When I use nb2nbf_wizard.exe, is this created nk.nbf flashable for my Tornado (german XDA Phone aka HTC Douton)?
There is an nb2nbf_Tornado File out there,too, but my Phone stuck in first BootScreen.If i use the Wizard-Tools here and use the nb2nbf_Tornado,(by retyping the Start Adress from 8004000(for Wizard) to 8204000 (for Tornado)) it works well fine, Flashing works well,too,but stuck in first Screen every time.Ive only delete the Solitaire-Folder,but it dont work for me..maybe you have more luck!Or...faria may Post a RomKitchen exclusive for our lovely Tornado..
Have you removed the first two bytes of the initflashes.dat? When not, it can't be booting correctly! That was my mistake when I started to cook my own ROM's for my HTC Prophet (XDA Neo)!
What?
really?I may think,it is only needed after a Registryedit....thank you.!
edit:did not work...
arpy said:
There is an nb2nbf_Tornado File out there,too, but my Phone stuck in first BootScreen.If i use the Wizard-Tools here and use the nb2nbf_Tornado,(by retyping the Start Adress from 8004000(for Wizard) to 8204000 (for Tornado)) it works well fine, Flashing works well,too,but stuck in first Screen every time.Ive only delete the Solitaire-Folder,but it dont work for me..maybe you have more luck!Or...faria may Post a RomKitchen exclusive for our lovely Tornado..
Click to expand...
Click to collapse
i have the same problem like you.
I've made a nk.nbf from the *.nb files with nb2nbf_tornado.exe.
I've also extracted *.nb (OS, IPL, SPL, etc) from nk.nbf from windows mobile 6 alpha and then 'translated' those nb files with nb2nbf_tornado.exe. Same result: succesfull flash, stuck in first screen every time..
so not the "initflashes.dat" file is guilty..
...and nobody out there may help us?
arpy, it seems that if I include only OS without IPL & SPL in nb2nbf, all are OK..
But still with my modified OS does not get over the first splash screen.. maybe i've done smth wrong. In dump folder, I've added some files (some overwritten), i've removed some files, modified initflashfiles.dat (last line blank, + removed the two first bytes with winex), modified the hv files (saved in unicode standard, first line REGEDIT4, last line blank.. complied: no errors). replaced carrier_splash and shutdown
that's all what I've modified ...
edit:
arpy, try to translate only the OS module with nb2nbf_tornado. and tell me the result. also, tell me what changes you've made
edit2: found this: http://forum.xda-developers.com/showthread.php?t=298327 . improved tools
edit3: i've dumped my modified OS module with tadzio's ImgfsTools and discovered that initflashfiles.dat had the two bytes that i've removed with win hex.. what the?!
i've removed again, and run the whole build rom process again , but this time with tadzio's ImgfsTools.
Same result.. (stuck in first screen)
Maybe i've modified something wrong.
edit4: i've repeated the whole process and OS module flash and work ok . I haven't tried yet with all modules, only OS. I think I've made some mistakes when trying to replace drivers.
@DSF
Can you post a Step-By-Step Solution?I want to figure out my prob...which tools do you use?And how?May you Post your ROM?
well, i will post summary. i hope to release a "tornado romcook kitchen" and more detailed steps these days.
here is my OS module:
http://rapidshare.com/files/45915194/RUU.rar.html
right now i'm trying to figure out how to make the sd driver from iphone/other roms to work on my custom rom. every time i try other sd driver, i cannot view the card.
i'm using the tadzio's ImgfsTools (see link in my previous post).
steps:
- download typho5.exe, ImgfsTools, nb2nbf_tornado (you can get them by searching via gogole)
- copy all those files in the same folder, eg: ROMDEV
- copy nk.nbf in ROMDEV
Commands:
1) typho5.exe -x nk.nbf
2) imgfsfromnb.exe 82040000-OS.nb imgfs_raw_data.bin
3) imgfstodump.exe imgfs_raw_data.bin
Now the OS files are dumped in dump folder. Do the changes (delete, copy, modify, etc). When editing registry and initflashfiles.dat file, perform the important steps describeb at http://www.molski.biz/romcooking.html (turn off word wrap and use UNICODE in notepad, etc). If you're dune with those things do next:
4) imgfsfromdump imgfs_raw_data.bin imgfs_new.bin
5) imgfstonb imgfs_new.bin 82040000-OS.nb 82040000-OS_final.nb
if no error occured in the whole process, run 6) nb2nb_tornado.
There, chose the nb files, OS will be 82040000-OS_final.nb and not 82040000-OS.nb. Don't forget to use the correct image name. (eg: for 82040000-OS_final.nb chose OS)
The language, oem, operator version, cid can be left blank.
When you're done, press translate.
Copy the generated nk.nbf file in the rom update folder (RUU), execute ROMUpdateUtility.exe and follow the normal flash steps..
That's all.
Thanks to all those ppl that made this possible
PS: if you flash only the OS module (without IPL & SPL), even if the update proces crashes, you will not 'brick' your phone . Mine happen to crash on 2%.. i transpired instantly
kartam said:
You never told anybody how to do it and then you complain of constant requests
I don't want to cook Wm6 I just want to change some files in my current WM5 Rom!
Could you please tell me how can I do it?
Click to expand...
Click to collapse
Actually, I have some files about how to cook a rom, but they all Chinese, and may be useless for you.
DSF: the way you describe works with the tornado. thx. ive testest
an usefull app to edit initflashfiles.dat and the registry files is "notepad2".

Install .cab during Customization?

I would also like to know how to install a .cab during Customization (in 3 seconds). Does anyone know how?
anyone?
What do you mean by converting a .tsk????
Just put the .tsk in the OEMOperators Package instead of the one the ROM does and change the config file...i
yeah, i dont think that "convert" was the best word choice, but i basically just wanted to use a custom theme in my rom and was wondering how to do that. ill give this a shot, though
ryncppr said:
What do you mean by converting a .tsk????
Just put the .tsk in the OEMOperators Package instead of the one the ROM does and change the config file...i
Click to expand...
Click to collapse
I can't find that package, where is it?
ok, sorry, I found it and changed the theme successfully. Now, I might as well ask this one question:
is there any way to install a .cab to the device while the device is configuring during the first startup? That way users can uninstall it if they want to?
im sory, but does anyone have the answer for this? im pretty sure laurentius26 uses it in his roms, but thid thread has had 150+ views and no respnses other than mine on one other one...
For OEM you could make an cab of it then use packages creator 5.4.exe Might not be the simplest solution but..
For UC use the cab you made above
Atleast now you have something to go on.
raiisak said:
For OEM you could make an cab of it then use packages creator 5.4.exe Might not be the simplest solution but..
For UC use the cab you made above
Atleast now you have something to go on.
Click to expand...
Click to collapse
is this the solution for the theme? because I have figured that one out Now I'm looking for a way to install .cab's when the device says "It will configure your device in three seconds."
opgadgets said:
ok, sorry, I found it and changed the theme successfully. Now, I might as well ask this one question:
is there any way to install a .cab to the device while the device is configuring during the first startup? That way users can uninstall it if they want to?
Click to expand...
Click to collapse
Use kaiserkitchen. Run KAISERKITCHEN.cmd and choose p option then open the cab. if you need more info read. All the info you need is here already.
opgadgets said:
is this the solution for the theme? because I have figured that one out Now I'm looking for a way to install .cab's when the device says "It will configure your device in three seconds."
Click to expand...
Click to collapse
Check config_operator.txt under kaiserkitchen\OEM\OperatorPKG
raiisak said:
Check config_operator.txt under kaiserkitchen\OEM\OperatorPKG
Click to expand...
Click to collapse
I can't seem to find that file
There are two methods you can use to cook a cab into the customization install.
To hardcode the cab into the install locate the config.txt and add a line for your cab. The formatting is pretty self explanatory once you look in the file itself, or to be more user friendly and allow used to decide whether or not they want to install the cab in the first place rather than just make it uninstallable go here and include the cab(s) in a separate UC package.
there is no reason for a .cab what so ever just put your .tsk in the rom dump (dont even use package tools) and edit the config to your .tsk its really simple as the config.txt all ready has a line that installs the defualt .tsk so just edit that to the name of your .tsk lets say custom.tsk
fiendz said:
There are two methods you can use to cook a cab into the customization install.
To hardcode the cab into the install locate the config.txt and add a line for your cab. The formatting is pretty self explanatory once you look in the file itself, or to be more user friendly and allow used to decide whether or not they want to install the cab in the first place rather than just make it uninstallable go here and include the cab(s) in a separate UC package.
Click to expand...
Click to collapse
Ok I'm going to go for the first method. Now, is the config.txt in the Tier Install Package folder?
anyone? all I want to know is how to install .cab files while the "device is configuring please wait..." during an initial hard reset/flash
opgadgets said:
anyone? all I want to know is how to install .cab files while the "device is configuring please wait..." during an initial hard reset/flash
Click to expand...
Click to collapse
We told you already mate...
Open: C:\kaiserkitchen\OEM\OEMAPPS\Config_AP.txt
You will se something like this:
Code:
CAB: \WINDOWS\CVC-PPC-WWE-705142-DopodPPC.CAB
CFG: \Windows\config.txt
CVC-PPC-WWE-705142-DopodPPC.CAB is actually cyberon voice command
Now what you do is:
1. Place youre cab here: C:\kaiserkitchen\OEM\OEMAPPS
(let call it: search4answer.cab)
Now you have search4answer.cab in youre C:\kaiserkitchen\OEM\OEMAPPS folder.
2. Open: C:\kaiserkitchen\OEM\OEMAPPS\Config_AP.txt
and insert the name of the cab.
Code:
CAB: \WINDOWS\CVC-PPC-WWE-705142-DopodPPC.CAB
CAB: \WINDOWS\search4answer.cab
CFG: \Windows\config.txt
Remember Config_AP.txt is locked, unlock it and lock after you have edited.
Close all, and cook it up. Now youre cab will be installed under what you call 1-2-3 customization install.
The cab will be uninstable if you flaged it to be so.
GL.
raiisak said:
The cab will be uninstable if you flaged it to be so.
Click to expand...
Click to collapse
A little off topic, but i always wondered why chefs don't make most of their cooked cabs uninstallable. Coz' there's always a program or two (or 10) that you don't use, but you like the rom and stick with it. having a dosen programs you never use is a waste...
question to cooks
slovoflud said:
A little off topic, but i always wondered why chefs don't make most of their cooked cabs uninstallable. Coz' there's always a program or two (or 10) that you don't use, but you like the rom and stick with it. having a dosen programs you never use is a waste...
question to cooks
Click to expand...
Click to collapse
Bether rom performance when cooked in Metod above is not what we call "cooked in".
raiisak said:
We told you already mate...
Open: C:\kaiserkitchen\OEM\OEMAPPS\Config_AP.txt
You will se something like this:
Code:
CAB: \WINDOWS\CVC-PPC-WWE-705142-DopodPPC.CAB
CFG: \Windows\config.txt
CVC-PPC-WWE-705142-DopodPPC.CAB is actually cyberon voice command
Now what you do is:
1. Place youre cab here: C:\kaiserkitchen\OEM\OEMAPPS
(let call it: search4answer.cab)
Now you have search4answer.cab in youre C:\kaiserkitchen\OEM\OEMAPPS folder.
2. Open: C:\kaiserkitchen\OEM\OEMAPPS\Config_AP.txt
and insert the name of the cab.
Code:
CAB: \WINDOWS\CVC-PPC-WWE-705142-DopodPPC.CAB
CAB: \WINDOWS\search4answer.cab
CFG: \Windows\config.txt
Remember Config_AP.txt is locked, unlock it and lock after you have edited.
Close all, and cook it up. Now youre cab will be installed under what you call 1-2-3 customization install.
The cab will be uninstable if you flaged it to be so.
GL.
Click to expand...
Click to collapse
thanks a lot raiisak!
however, it's not working. For example, I placed a custom-made .cab file in OEMAPPS, then told the config.txt file to load that, but it didn't work. Any suggestions?
Oh, and I still can't figure out how to get the darned theme to load as the default theme...

few dll files?

What is webview.dll file used for and can I delete it?
What about GAC_system.xml a few numbers(there is two different files)then .dll as the extension file. Is that also safe to delete?
bump please......
don't delete stuff you don't know about.
webview.dll is required as an active-x control for some applications.. it is also considered to be a bad spyware thread coming from some websites.. so watch it.. don't download the file or play with it.
well it is already on my device so i guess i should not.
Webview.dll
- read URL
- write URL
- load registry setting
- help StartUp
- help Shut Down
- etc
GAC_System.XML.xxxxxxx
- used to run some program that required NetCF
- such as yahoo go
So the answer for your question is "NO" Dont Delete.
Help have been given, hope this help,.
thank you.

How to combine CAB

Is there a program to combine many cab files into one CAB?
I flash many ROMS and would like to make one cab of all the programs that I usually install after a hard reset. (I've tried sashimi, but I need it to be in one cab)
I searched about it, but couldn't find an answer.
Thanks for any help or suggestions.
Moved to Q&A
http://forum.xda-developers.com/showthread.php?t=366337
To ather90:
I apologize for posting in the wrong forum.
To nir36:
Thanks for your help, but I was wondering about a program that will create a cab from many cabs, not UC.
Its ok, but becareful next time
there isent a way to install several cabs in a single install, though what you can do is to make a new cab file with all your data in it, but it will make a VERY big Cab ;D
no no.. what i meant is, use UC to create an installation of all your cab files. you can't combine a lot of cabs into 1 cab because it's not readable.
ather90 said:
Its ok, but becareful next time
there isent a way to install several cabs in a single install, though what you can do is to make a new cab file with all your data in it, but it will make a VERY big Cab ;D
Click to expand...
Click to collapse
We'll be more careful next time.
That's exactly what I wanted, to make one big cab.
The same idea as this one: http://forum.xda-developers.com/showthread.php?t=464758&highlight=game+pack
Its not free, but look at http://www.ocpsoftware.com/products.php?nm=cecabmgr
edit: It might be possible to extract the data from the cabs you have, and recombine them into one big cab file.
i use WinCECabManager to create cab files.. but you can't create full installations of many cab files in the same cab.

how to run several CABs in a batch

searched the forum, for something that seems trivial, but can't find it...
sdconfig.txt is giving me problems, so now looking for a simple way to automatically run cab1, cab2, ... cabN, after a flash. like a DOS batch file
SASHIMI is what you need!
There are many tutorials, search for it!
3dfx
I found this:
forum.ppcgeeks.com/showthread.php?t=20753
dXsL said:
searched the forum, for something that seems trivial, but can't find it...
sdconfig.txt is giving me problems, so now looking for a simple way to automatically run cab1, cab2, ... cabN, after a flash. like a DOS batch file
Click to expand...
Click to collapse
If you want to make it easy:
http://forum.xda-developers.com/showthread.php?t=514934
dXsL said:
searched the forum, for something that seems trivial, but can't find it...
sdconfig.txt is giving me problems, so now looking for a simple way to automatically run cab1, cab2, ... cabN, after a flash. like a DOS batch file
Click to expand...
Click to collapse
You can use my cab, which already combined the major tweaks + NET 3.5:
http://forum.xda-developers.com/showthread.php?t=611358
I include a brief tutorial on how to merge cabs in the the second post.
I prefer creating a single cab for the things I will always install, so I don't need a pc to flash a new rom and get all my tweaks mods and apps back!
Using a cab installer requires a pc, so not as elegant.
Steve0007 said:
If you want to make it easy:
http://forum.xda-developers.com/showthread.php?t=514934
Click to expand...
Click to collapse
Nice, very nice.
x3dfx said:
SASHIMI is what you need!
There are many tutorials, search for it!
3dfx
Click to expand...
Click to collapse
Can you run it on Leo? After install, Sashimi stopped after saying initialisation complete and refuse to do anything else (the status screen stays there forever, no menu screen).

Categories

Resources