How do I integrate apps into the OS ROM for Wizard - Windows Mobile Development and Hacking General

I have been able to extract the EXT ROM and OS ROMs using the NB2NBF and IMGFS tools. I know that by using a custom ROM I can save on storage space by loading in my programs. I'd like to load Pocket Informat, Alarm Today, Phone Alarm , isilo and TCPMP into the OS ROM. How do I do this? I have all their cabs. I will keep reading the forums too.
I know that some like summiter have done this. Anyone able to help me get started or point me in the right direction?
J-Man5

the only device i ever heard supporting that is walaby
dont know if it's possible with other devices
i mean the os part of the rom is well you know full already

yes it is possibel.you need a tool called [typhoonnbfdecode_v5] look for this tool and how to use somehere in the ftp, and here in the wizard forums
you need to make a dump of the os from a nk.nbf image with the above tool
then you need to extract the files from de cabs you want plus the reg settings,
simply copy the extracted files from cab to your rom dump folder
make a cab file with the reg files from the cab files an also the shortcuts to the programs.
repack the rom with the typhoonnbfdecode_v5, convert the nba image with NB2NBF back to nbf and flash,after that install the cab with reg settings plus shortcuts,
you have a long jorney ahead.
i took me several weeks to make my own rom with netcf.2,adobe acrobat e several other programs integrated to the rom.

faria said:
then you need to extract the files from de cabs you want plus the reg settings,
simply copy the extracted files from cab to your rom dump folder
<snipped>
make a cab file with the reg files from the cab files an also the shortcuts to the programs.
Click to expand...
Click to collapse
OK I have gotten the nk.nbf extracted and the EXT ROM opened using winimage and the OS ROM dumped via imgfs.
Where I am running into problems understanding is how to unpack the .cab install files for the programs I am planning on using and how to "move" them to the \Program Files\ directories that they need to be in. For example PocketInformant is loaded into the \Program Files\WebIS directory. Do I put all the files from the .cab file in the dump OS directory? Is there some sort of program that will extract the .cab file and let me look at what registry settings are being set by its installation?
What program is used to create registry settings into a .cab file?
Thanks
J-Man5

BUMP

wincecab manager ,google it.

Hey!
I want to add some apps to the Rom of my Wizard, too.
I have used imgfs tools to great a dump from my OS.
Now i want to Install Total Commander to a Folder "\Programme\Total Commander\".
How can i do this? Or is it only possible to copy the files without any folder?
Sry for my bad english

Related

Converting EXE to CAB for Extended ROM Auto-Install?

Hey Guys,
I have been customising my extended rom so when I hard reset I get all the applications I want (Resco file explorer etc). I have been doing this with .cab files fine.
The problem is that I have files which are .exe setup files (e.g Flash player 6). These have to be installed on the PC, and the cab is copied to the XDA and run. I would like to just have e.g a flash CAB file to put on the extended ROM.
is there a way to convert the PC EXE into a XDA cab file, or some way to run the PC exe on the device automatically in extended rom?
I know some .exe setup files can be extracted using winrar which then give you the cab file, flash player isnt one of them though.
Regards,
Jez.
http://forum.xda-developers.com/viewtopic.php?t=10058
Jez said:
is there a way to convert the PC EXE into a XDA cab file, or some way to run the PC exe on the device automatically in extended rom?
Click to expand...
Click to collapse
Use Windows Registry Editor (regedit.exe) to look for the path where your Desktop Exes are extracted to PocketPC Cabs:
Look for this value:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services]
"InstalledDir"="k:\system\hardware\pda\imate\ASync"
Now, open your Windows Explorer and go to the path. You will find your cabs in corresponding folders (e.g, folder MacromediaFlash shall contain Flash6.arm.cab and etc...)
If you need to do more complex restoration, use Restorator tool. It restores your directory and file structure, registry settings, installs cabs, writes boot screens and does everything nice...
Oh my god, you are both bloody geniouses!!
This is wicked, cheers guys!
Regards,
Jez.
Any other ways to xtracting & repacking to cab?
Renaming the file format (exe to any formats) & exe xtractor software doesn't work.
I can compress any data to .cab, but how to xtract perfectly exe files?
Convert EXE to Cab online without having to download any software
If you have an EXE file that you would normaly run on your PC to install a sofware... it looks like this online converter work to have it converted into a cab file for your cell phone!!!
try it!
1- first you need to compress your EXE file into a ZIP folder... that will create a ZIP file on your desktop.
2- then you go to http://media-convert.com/convert/
3- browse on the first field to determine witch file on your pc you want to convert .. select the ZIP file you just created...
4- on the second part of the page you will be ask what format you want to convert your ZIP file to .. on the scrolldown menu select . CAB... and hit the convert button .. the online service will do the rest ..
Basicaly will upload your file onto their server , process it and render it to you on a file download link ...
There you go you have now a CAB version of your EXE file to upload on your phone with ActiveSync...
My problem
how to say... the site is cool ,and i get my file converted. However, the nature of that file hasn't been changed into a cab. it is still an exe. I dunno if i have done something wrong when converting.

ReLoad v0.1 Beta

ReLoad
This is a MortScript script written to simplify reinstalling cab files, and restoring files back to the device from a zip file on the trinity.
More information about MortScript at http://www.sto-helit.de
-v.01 Initial Release
Known Issues
-Cab files that initiate the installation of another cab file ie.Wisbar Advanced
-How to setup:
1)Extract Reload.rar to your storage card.
2)Place cab files in the CabsAuto folder if you want to the cab to be automatically installed to the device (installation to automatically install to the storage card is currently not available).
3)Place cab files in the CabsManual folder if you want to be able to choose where to install the cab.
4)Place file in the Backup.zip file that you want to be restored.
ie. If you wanted example.jpg to be placed in the \Windows folder, place example.jpg in the Windows folder of the zip file.
*Please note that the cab files placed in the CabsAuto folder need to conform to only asking the user for the installation destination, then showing installation successful/unsuccessful. Otherwise you might encounter some
problems. You should place cabs that don't conform in the CabsManual folder, or adjust these cab files with programs such as WinCE CAB Manager.
-How to use:
1)In the Reload folder, execute Run1st. Click ok the the window that pops up. This just installs MortScript
2)Execute Run2nd. This will initiate the script that will first install the CabsAuto, then CabsManual, and finally restore the files in the zip file.
Use at your own risk.
Download
http://rapidshare.com/files/29964511/Reload.rar.html
Thx, that's a good idea.
is there a way to have it restore registry entries from a .reg file?
Is there a way to install certain cab files on RAMDisk/Storage card without individually clicking the install option??
@racerx_
Currently there isn't a way to restore the reg file directly. But you can create a cab from the reg file and then have that cab automatically installed.
MortScript wasn't able to read in the reg files i saved with resco explorer, so I gave up on doing it this way. For right now the easiest way is to create a cab file with WinCE Cab Manager.
@c_shekhar
The best way to install the program to the Storage Card, backup the reg (and any possible files installed on rom), then create a cab from this.
This post has alot of good information on this.
http://forum.xda-developers.com/showthread.php?t=277727
yeah, i've been trying like a madman to get win ce cab manager to make a cab of my .reg file.. but when i click on 'import' and try to grab the .reg file it tells me it's only for registered versions of the program.. is there another way i'm not seeing? cause right now the only other options i see for registry entries is to manually create them one by one which doesn't sound very exciting hah
thanks for the help..
@racerx
What OS and version of WinCE Cab Manager are you running. I heard of some problems with the newest version of WinCE Cab Manager with Vista. I am running version 2.1.0.35.
If that isn't it, you might have run the program past its initial trial use.
hmm.. Win Ce CabManager is 2.1.0.50 running on xp.. still got 17 uses left.. sigh..
Maybe i missed something. Just in case, what button or command are you using to get your .reg file into WinCE? I was using the 'file' 'import' command.
@racerx
That's the same way I do it. I would find an older version and try it again.
Reload V0.2
I made a couple of changes to the script for a rom we are going to be releasing soon...it checks if Backup.zip exists and only does the unzip if it does...I also added a SDBackup.zip for files to unzip to Storage card (specifically exe's and dll's I've already upx'd to shrink them but reinstalling the cabs replaced them again so this puts them back)....
#ReLoad
#v.02 Initial Release
#Use at your own risk.
#v.02 Extract files from SDBackup.zip to Storage Card
If(Question("Do you want to ReLoad?", "Reload 0.2", "YesNo")="No")
EXIT
EndIf
Run("Storage Card\ReLoad\Bin\Message_Running.mscr")
RegWriteDWord("HKLM", "Comm", "AutoRunFlag", "0")
RegWriteString("HKLM", "Comm", "AutoRunCFG", "\Storage Card\ReLoad\CabsAuto\Config.txt")
#Create Config File
Delete("\Storage Card\ReLoad\CabsAuto\Config.txt")
WriteFile("\Storage Card\ReLoad\CabsAuto\Config.txt", "SHOW:\Storage Card\ReLoad\Bin\ReLoad.bmp^NL^")
ForEach x in files { "\Storage Card\ReLoad\CabsAuto\*.cab" }
WriteFile("\Storage Card\ReLoad\CabsAuto\Config.txt", "CAB: ", 1)
WriteFile("\Storage Card\ReLoad\CabsAuto\Config.txt", x, 1)
WriteFile("\Storage Card\ReLoad\CabsAuto\Config.txt", "^NL^", 1)
EndForEach
#CabsAuto Install
RunWait("\Storage Card\ReLoad\Bin\AutoRun.exe")
#CabsManual Install
ForEach x in files { "\Storage Card\ReLoad\CabsManual\*.cab" }
RunWait(x)
EndForEach
If (FileExists("\Storage Card\ReLoad\Backup.zip") )
#Restore files from zip to main storage
UnzipAll("\Storage Card\ReLoad\Backup.zip", "")
EndIf
If (FileExists("\Storage Card\ReLoad\SDBackup.zip") )
#Restore files from zip2 to storage card
UnzipAll("\Storage Card\ReLoad\SDBackup.zip", "\Storage Card\")
EndIf
KillScript("\Storage Card\ReLoad\Bin\Message_Running.mscr")
If(Question("Finished ReLoading.^NL^Do you want to reset?", "Reload 0.2", "YesNo")="No")
Exit
EndIf
Reset
Very good soft, it works nice !!
The only difficulty for the french users is to replace in the script "Storage Card" by "Carte de stockage"
Thx men for this !!!
Nice soft,
I could use FAMAN WM6 on my trinity now !
French translation and modification is (seem to be) ok.
Just wait the OK from the boss and I'll give you !
Edit : Why don't you use the LOCK:Enabled in the header and LOCKDisabled on the end of the config file ? Thxs in advance.
I use SettingsSavior on my Trinity mainly for its similar auto-install functionality
Hello,
Thank you for this very useful tool
My .cab are removed after using Reload. How can I keep my .cab on my SD after a new installation ?
Thank you for your help.
Guillaume
__________________
SPV M700
FAMAN 4.03.FR
1.50.08.11
2.79.7020.19H
can this software reinstall cabs, copy skin files in programs installation directory (eg pocketcm skin) and reconfigure mail and exchange accounts ?
OOPS delete this post.

How to copy .dll files from the device?

I tried to copy a bunch of .dll files from \Windows
I encountered a couple of problems doing that:
1. Some files are not shown on the PC in Windows Explorer though I've enabled viewing hidden and system files. However, these files are shown on the device in Resco Explorer, but can't be copied to e.g. \Storage Card
2. Some files are shown on PC in Windows Explorer but are in use and therefore can't be copied
What are the tricks to back up those files?
PS: My device (S710 Vox) is unlocked using M$ Security Manager
No tricks.
If you bothered to learn anything about your device you would know that these files are part of ROM and can not be copied out.
Don't mean to be rude but this was asked and answered many times before. Do a search on "ROM dump"
Yeah stupid me...
Dumped the ROM and got the files I want
(http://wiki.xda-developers.com/index.php?pagename=Vox_HowToDumpRom)
Actually I can't find coredll.dll in my ROM dump.
I used viewimgfs.exe to dump Part02. I can't use viewimgfs.exe on Part00 and Part01.
Is there another tool which can retrieve coredll.dll and perhaps other missing files?
Another question: can the S710 be flashed by using imgfs tools v1.82 to create the image(s) and a generic HTC flash tool?

HD2 cab install

hello guys, i dont own an hd2 yet but ill buy one this month but i have a question i want to add some cabs file on my device when i get. My question is i have download some cabs BUT when i open the winrar i dont get any cab file, all i get is some files that has bunch of numbers and one of them says "_setup.xml" so what should i do? should i directly put the winrar file on my hd2? since i dont get any cab file inside the winrar?? and if there's a cab file inside the winrar and i press the button "extract here" should i just upload the cab file only to my hd2 right??
Hope you guys can help me.
Thank you.
Hi.
A CAB file is a compressed installer file for mobile phones.
If you open it with winrar, you will see all the files it contains.
Just copy the original .cab file to your phone.
Click on the .cab file, and it will run the installer, and install the program on your phone.
You can choose to install to the main memory or the sd card.
Yeah - as above. What you're calling a "winrar" file is the cab file.
Extract a cab
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
kinsago said:
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
Click to expand...
Click to collapse
yes extract the files with winrar
ohhh okok i get it now.. so i just donwload thw winrar which is the cab file and i copy it to my hd2. thanks guys
Richy99 said:
yes extract the files with winrar
Click to expand...
Click to collapse
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
kinsago said:
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
Click to expand...
Click to collapse
Yes that's what you would expect as they are the cab install files.
If they don't mean anything are you sure you know what you're doing?
That's what I'm trying to find out. I assume that the WM program works in a similar way to windows program in that its a collection of files (exe, ico, dll, cfg so on so forth) that get installed in the appropriate places on the device. If so, how do you 'unpack' these files from the setup files
use a cab manager program. I don't so I can't recommend, but wincecab manager sound familiar. u can use them to create cabs of your tweaks, install files and such.
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
hoss_n2 said:
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
Click to expand...
Click to collapse
I'm not trying to install a cab file (which the first post was about) I'm trying to decompile the omnia 2 video editor to get it to run on the HD2 but instead of starting a new thread, I asked on this one because it seemed (partially) relevant.
BTW, I've got the cab 'extracted' so thanks - no for the difficult part...

Determining package install location--can it be done?

WM 6.5: Is it possible to predetermine an EXT/OEM package's install location to a place other than the Windows folder (e.g., Program Files), in the interests of organization and browsing speed?
Thank you.
yes it can be done... but not cooking them a friend do this:
he makes a EXT pkg with a Mortscript file that runs at startup... that file runs a exe file in the storage card that uncompress a TGZ file in the directory you want then the same exe deletes the start up file
hard isnt it? its just imagination
Everything in the \files folder of an EXT goes into windows. If you want things copied to another location, you can do it with the app.dat file. Or, you can put all the files in either a .cab or a .zip file, and just install the cab during customization or use a mortscript to unzip the zip file to whereever you want (zips are a lot faster than cabs and are easier to create/edit, but you need mortscript cooked in). But, you're better off having things run out of \windows most of the time. If you have two copies of a program, you're just wasting memory. You can create an EXT for something like TCPMP that puts it into \program files\tcpmp, but what's the point if the version that's sitting in \windows works just as well? Also, if you just work out of \windows, you can convert the dll's, exe's and mui's that might be present in the package to modules, which usually gives you an app that boots up faster. Some things don't work out of \windows, so it takes experimentation, and not all files work so well as modules, which requires more experimentation. But, I would say that putting things in different directories just to be (or seem) organized isn't always a great idea. If you're dead-set on doing it, then install the apps with a cab or a zip file, because it will save rom memory and limit the number of rom files, which is always a good thing.
Thank you both--your post was especially informative Farmer Ted.

Categories

Resources