Problem Creating OEM Packages - 8525, TyTN, MDA Vario II, JasJam ROM Development

Hello developers,
I'm currently trying to create an OEM package for CHT support,
I've extracted the files into a folder called "CHT", inside that, I've created three documents,
f50e9a40-aed9-497a-bdea-84451210e960.dsm (blank file, nothing inside)
f50e9a40-aed9-497a-bdea-84451210e960.rgu (registry entries, everything is working fine i have tried)
option.xml
I understand that the option.xml is there to provide the checkable state for OSBuild.exe. I now have the entry written as:
Code:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<Items>
<Item name="CHT" group="CHT" checked="false">
<Tip>Traditional Chinese Input and Display</Tip>
<Guid type="p">f50e9a40-aed9-497a-bdea-84451210e960</Guid>
</Item>
</Items>
and saved it in that same folder.
when I run OSBuild.exe, it kept crashing. i am sure that it's the xml entry that is causing it to crash, but I have no idea why. Does anyone have any idea?
p.s. I am sure that the packages other than option.xml works because i've tried to combine it into \SYS\BaseApp folder and compile it, it runs flawlessly on my hermes
please advice

Option.xml is optional, just build it without that file...

I know but i just wanted to make the xml file so that it can be a selectable option for an oem package for others

I managed to have it fixed now, thanks to Cab Creator. Now i face another problem - my package has a wince.nls, and when i have it used as an OEM package, it compiles fine, but OSBuild tells me "error, wince.nls already exist". then i remember that the OS itself does have a wince.nls. I need to replace that file when i compile this OEM package, so is there any way to set the oem package to overwrite it by default, or do i have to manually remove it from SYS\WinCENLS_WWE ?

i did that before...just replce WWE NLS file with CHT one

yeah i know, but then it will not be a standalone OEM package that i can distribute for others.

AFAIK there is no simple workaround to achieve what you want. There are a number of files that I have had to cook in the old fashioned way rather than via selectable packages.
If you find a solution I would be most interested.

Related

RGU files in ROM, "ROM file" attribute

Hi all
I'm cooking my own rom using Core Pro Kitchen, so far it's going OK.
I read most of this forum and the WiKi, but still have a couple of questions
first:
Do we really need .rgu files in imgfs? AFAIK they are only used to build .hv files.
I tried to delete theese from \temp\dump before creating OS.nb (after running BuildOS), and the ROM works, at least I don't see any drawbacks.
second:
I'm cooking my own custom package into the rom and need all the files in it to be impossible to modify/delete. All files in the package have +r +s +h attributes set, but I'm sill able to modify them on device.
It seems like the modified file is created "above" the ROM one (sort of copy-on-write), because when I use TotalCommander to delete it, it just reverts to the original file from ROM. Is there anyway to make a file completely unmodifiable? Put it in XIP? do I have to rebuild any of three .dsm files in XIP if add my file there?
The file is about 1-2kb
Any ideas?
Thanks, Serge

XmlToReg - Convert registry provisioning files to .reg files

There are several tools available for converting .reg files to xml registry provisioning files, but none for going in the other direction. Admittedly, not quite so common a requirement, but could still come in handy.
This is a Windows command line tool which accepts an xml registry provisioning file as the only command line argument (just drop the .xml file on the .exe), and produces a .reg file next to it, in RegEdit v5 Unicode format.
Comments, suggestions, and bug reports all welcome.
Alex
Updates:
0.2:
Now supports empty values for String, MultiString and Binary values
.NET Framework (required)
AlexVallat said:
There are several tools available for converting .reg files to xml registry provisioning files, but none for going in the other direction. Admittedly, not quite so common a requirement, but could still come in handy.
This is a Windows command line tool which accepts an xml registry provisioning file as the only command line argument (just drop the .xml file on the .exe), and produces a .reg file next to it, in RegEdit v5 Unicode format.
Comments, suggestions, and bug reports all welcome.
Alex
.NET Framework (required)
Click to expand...
Click to collapse
Brilliant Alex. Simply brilliant
Hi Alex,
wow, I think it took only 2 days from when I told you about my idea until you turned it into a usable solution!
Congratulations and a big thank!
One thing that occurred when I tested with some of my xml files (seems that I've always got the strangest testing files one can imagine...)
<characteristic type="Registry">
<characteristic type="HKLM\Comm\TIACXWLN1\Parms\TCPIP">
<parm name="WINS" value="" datatype="multiplestring"/>
</characteristic>
</characteristic>
The empty string value="" leads to a conversion abortion.
Maybe you can build in a fix for such a situation?
Thank you very much again for turning this into reality and I'll let you know in case i'll find anything else that needs to be fixed if you don't mind!
Version 0.2 released
Thanks for pointing that out, I hadn't considered empty values. I don't think an empty value is valid for a numeric or boolean data type, but there's no reason a string or binary value shouldn't be empty. Version 0.2 should handle them properly, and is now available in the first post.
Alex
First, it's great that you made this app! But, I am having an issue with this.
I don't know why, but it doesn't make a real reg file. I just get an empty one!
I am attaching the provxml I tried it with!
That provxml isn't a registry provisioning file. It claims to be a "Metabase" provisioning file, which is one I'm not familiar with. It does seem to contain registry data, though, just not in the Registry provisioning format. What produced this file?
Too bad. This is a provxml for a language SYS package for a WM 6.1 Standard ROM. I wanted to make CABs out of the packages, because not all languages fit in one ROM and I don't want to male 3 ROMs just for all languages. Unfortunately if I don't add the information of this file, not everything gets translated
Thanks for your help!
Thanks for this great tool buddy. I was looking for it since long ago.
Good app THX
Great app Thanks

[UTILITY] CabTools - ROM package <--> CAB converters and more. For ROM builders

These tools will let you create ROM package and install CAB files from each other. I know there are already tools for them, but I didn't like them, because they had many errors. Of course my programs may have errors too, but I like them better anyway Some of these tools use external applications which need .NET and/or VC++ runtimes to work properly!
cab2pkg
This utility will extract a cab and create a ROM package. (just like ervius package creator, but this will get the info from the _setup.xml file). Simply tell him the cab file name as parameter, and it will extract into a new directory. (Or if you don't like the command prompt, simply drag the cab onto this file, and it'll extract it)
pkg2cab
This utility does the reverse of the above. It creates a cab installer from a ROM package.
Usage: pkg2cab [Application Name] [Directory1] {Optional directory 2} {...}
For example: pkg2cab OneNote OneNote OneNote_lang_0409
If everything goes fine the programs should create a setup.cab
pkg2cab does only support "flat" directories, so if your directory contains modules (directories that look like files), then you have to copy the file out of them manually, and delete the directory
extractpkg
This application will extract a package from a ROM, using a SYAKR file removal information file XML. If you don't know what syakr is, then check these pages:
http://winmo.sztupy.hu/syakr.html
http://www.modaco.com/index.php?s=&showtopic=277390
http://forum.xda-developers.com/showthread.php?t=462841
Put this application into a kitchen with an extracted ROM and SYAKR
Enter command prompt and enter "extractpkg XMLfilenamewithoutextension" so for example if you want to extract the fmradio, you should write: "extractpkg fmradio"
This app does the same as SYAKR, but instead of deleting the files/registry settings/initff lines, it will copy them to a separate directory, and adds the appropriate things that are needed for a package, that BuildOs likes
BEWARE! The current SYAKR tasks are not designed for extractpkg to work, and sometimes the extraction might fail, or the created package would be defective. If so, please try to correct the XML file!
After you extracted a package you might use pkg2cab to create a distributable CAB installer
DL link: http://winmo.sztupy.hu/cabtools.html
OHH nice. someone just asked me to make a stock dialer cab for them.. this will make it easy
Amazing!, will try it indeed
wow nice tools i m going to make my own kitchen .. great work
It seems the included cabwiz might not work. You might try replacing it with a newer one: http://www.modaco.com/index.php?s=&showtopic=278074&view=findpost&p=954161
v0.2
v0.2 released with support for the InstallDir variable in cab2pkg
http://winmo.sztupy.hu/cabtools.html
This Great, Good & Nice Job!!!
sztupy said:
v0.2 released with support for the InstallDir variable in cab2pkg
http://winmo.sztupy.hu/cabtools.html
Click to expand...
Click to collapse
thanks to you man!!!
v0.3
Fixed a registry creation bug in cab2pkg. The packages should work with older BuildOs versions too.
Source code of cabtools and syakr released: http://winmo.sztupy.hu/cabtools.html
Am I missing something I cant get any of these to work I'm using Windows Vista Erice kitchen
Still freezing on EXTRACTING REGISTRY ENTRIE phase....CAB2PKG verzio 0.3 under Vista SK SP1 + all updates.
jlp_svk said:
Still freezing on EXTRACTING REGISTRY ENTRIE phase....CAB2PKG verzio 0.3 under Vista SK SP1 + all updates.
Click to expand...
Click to collapse
reg2inf uses xml2reg. Does it work?
rjmjr69 said:
Am I missing something I cant get any of these to work I'm using Windows Vista Erice kitchen
Click to expand...
Click to collapse
????????????????????????
sztupy said:
reg2inf uses xml2reg. Does it work?
Click to expand...
Click to collapse
ehm...sorry for my stupid question, but.... HOW TO TRY???
jlp_svk said:
ehm...sorry for my stupid question, but.... HOW TO TRY???
Click to expand...
Click to collapse
Use (for example) total commander to extract _setup.xml from the cab file. then run xml2reg with this xml.
No...it's also freezing.
i want to create oem packages from cabs, and i have a problem. i've dragged the cab onto the "cab2pkg.exe" file and an error occurred: see attachament.
P.S. i've extracted the _setup.xml near pocketalarm.cab and i've copied next to cab2pkg.exe also. what should i do?
ady_uaic said:
i want to create oem packages from cabs, and i have a problem. i've dragged the cab onto the "cab2pkg.exe" file and an error occurred: see attachament.
P.S. i've extracted the _setup.xml near pocketalarm.cab and i've copied next to cab2pkg.exe also. what should i do?
Click to expand...
Click to collapse
Are you sure your cab is located in the same folder as cab2pkg.exe? Only time I see an error is when I try dragging from outside the folder
ady_uaic said:
i want to create oem packages from cabs, and i have a problem. i've dragged the cab onto the "cab2pkg.exe" file and an error occurred: see attachament.
P.S. i've extracted the _setup.xml near pocketalarm.cab and i've copied next to cab2pkg.exe also. what should i do?
Click to expand...
Click to collapse
You don't have to extract _setup.xml from the cab. If the cab contains _setup.xml then it should work fine. I only wrote to extract it separately, because then you can test whether xml2reg is working or not.
yes are in the same folder. i tried and in the same folder and in separate folders.
maybe should i try in command prompt? what command should i type there? i've tried drag & drop cab2pkg.exe space CorePlayer.v1.2.5.Build.4506.Pre.Regged.cab and i have the same result.

[APP] Michy's Installer - complete wceload repleacement!

- Michy's Installer -
​Have you ever got an "Installation Unsuccesfull" message? Or a "Uninstall failed" message? Or worst thing an "Missing privileges" while installing a cab?
Now this messages are gone. With my installer, which is a complete Wceload and uninstaller replacement, any installation will complete without any problem
Main features:
Full repleacement for winceload
Select if you want or not to run setup dlls
Avoid failing for missing privileges
Get the space that an'installed app consumes after installing too
Search within your device the cabs you have and select what you want to install
Analyze FB_Install folders
Batch cabs installation
Installation processes can be aborted any time
If you are overwriting exes, they will be automatically terminated before installing
Advanced cab analyzer (view files contained, shortcut, regs, extract them......etc)
- MichyPrima_UC - ​
This system will let you to install:
.reg
.cab
.rgu
.xml
.provxml
.exe
Putting them in your SD/Microdrive/Diamond internal storage in the folder FB_Install. And them will be installed at first boot.
Information about files you can install:
- Files .cab -​
For a base installation of cabs you can put them in the folder FB_Install. Setup DLL will not be executed to avoid setup freezes. Anyway, there are ways to customize how your cab will be installed:
Installation to SD
Installation to MD
Activating Setup DLL
Possibility to use wceload to install (not advised)
For using them:
If your cab is mycab.cab and you want to install it to sd, simply create a file called mycab.tosd. if you want to install to MD, the name will be mycab.tomd, if you want to enable setup dll, the name will be mycab.enabledll. If you want to install using wceload... use .old extension.
- Files .reg, .rgu, .provxml e .xml -​Simply put them to FB_Install directory
- Files EXE - ​For a simple execution put them in FB_Install folder. If you need command line arguments, simply put them in a file called as your exe, but with .arguments extension.
- All files - ​All files can be skipped using .skip extension. eg if your file is mycab.cab , create a file with mycab.skip and it will not considered
- Other special functions: -​
File/folder structure restore
Creating the structure on SD it will be reversed into storage. We have more than only one folder where we can put our files (in FB_Install):
CopyInWindowsFolder (\windows)
CopyInProgramsFolder (\windows\start menu\programs)
CopyInProgramFilesFolder (\program files)
CopyInFavoritesFolder (\windows\favorites)
CopyInFontsFolder (\windows\fonts)
CopyInStartupFolder (\windows\startup)
CopyInRootFolder (\)
So, for copy/overwrite files in windows folder, only thing you need is to create a folder in FB_Install with name CopyInWindowsFolder. This is a recursive copy, so all subfolders will be copied.
Shortcut restoring
You can specificate the shortcut to create in shortcuts.txt file and put it in FB_Install folder. Each line will be a shortcut to create. The first part of the line contains where the shortcut will be, 2nd where the shortcut will point. The two parts are separated by ":".
We have ids there to:
%SD% (\storage card)
%PROGRAMS_STARTMENU% (\windows\start menu\programs)
%PROGRAM_FILES% (\program files)
%STARTUP% (\windows\startup)
%MYDOCUMENTS% (\my documents)
Example line:
%PROGRAMS_STARTMENU%\Test.lnk:%SD%\myprogram.exe
This line will create a "Test.lnk" in programs which points to \storage card\myprogram.exe.
Possibility to avoid final reset (not advised)
Just create a file with name NoResetAtEnd without extension in FB_Install folder.
Possibility to temporarily skip customization
Just create a file with name SkipCustomization without extension in FB_Install folder.
Do you want to process config lines to runcc?
Create a file with name AddToConfig.txt and there put your config lines.
Possibility to delete files or folder
Create a file with name Delete.txt. Each line is something to delete. You can use IDs as shortcuts
All I have to say is
Wow, sounds extremely "will have it now"!
Cool
Michy,
This shold be a nice addition to the tool box.
cheers
BR
Attempt of graceful recovery from dbl post
Cool
Michy,
Very nice work. I can't wait to see this released.
Cheers
BR
Michy, you are great!!
Wow, this must have been a LOT of work. Tnx a lot for your efforts!!
Sounds great!
Sounds very useful for those of us that change roms often.
Good work.
PS
My personal holy grail would be an APP that records changes as apps are installed to a point where I am happy then be able to gather all of the changes and build an install routine! Am I dreaming?
Wow sounds awesome and a gui, can't wait & thankyou
SIMPLY AMAZING!!!! cant wait...this should save me tons of time, and unlike other appz this seems easy 2 use and great!!!....thanks for ALL the hard work! ..waiting patiently
ehi my friends! good job, I'm sure that this program is excellent as the other your developments!
Put it online
This sounds amazing!!!
Italians do it very well!!!
Translators needed!!!
Please if anyone interested translating my application, this is the english file to translate and post back:
Code:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<Language>
<FormMain>
<ListviewColumn1>File</ListviewColumn1>
<ListviewColumn2>Dest</ListviewColumn2>
<ListviewColumn3>Instl.Size</ListviewColumn3>
<ReadyMsg>Ready.</ReadyMsg>
<AbortSoftKey>Abort</AbortSoftKey>
<InstallingMsg>Installing </InstallingMsg>
<AddItemBtn>Add item</AddItemBtn>
<RemoveItemBtn>Remove item</RemoveItemBtn>
<InstallSoftKey>Install</InstallSoftKey>
<MenuSoftKey>Menu</MenuSoftKey>
<MenuItem1>Exit</MenuItem1>
<MenuItem2>About</MenuItem2>
<MenuItem3>Clear list</MenuItem3>
<MenuItem4>Enable setup dll</MenuItem4>
<MenuItem5>Get cabs from storages</MenuItem5>
<MenuItem6>Load FB_Install folders</MenuItem6>
<MenuItem7>Uninstaller</MenuItem7>
<MenuItem8>Cab Info</MenuItem8>
<Msg1>Not enough space for this cab: </Msg1>
</FormMain>
<SearchCabsForm>
<Title>SearchCabs</Title>
<ListViewColumn1>File</ListViewColumn1>
<OkSoftKey>Ok</OkSoftKey>
<MenuSoftKey>Menu</MenuSoftKey>
<MenuItem1>Refresh</MenuItem1>
<MenuItem2>Select all</MenuItem2>
<MenuItem3>Unselect all</MenuItem3>
<MenuItem4>Invert</MenuItem4>
<MenuItem5>Cancel</MenuItem5>
</SearchCabsForm>
<SelectCabDialog>
<Title>Select cabs</Title>
<OkSoftKey>Ok</OkSoftKey>
<MenuSoftKey>Menu</MenuSoftKey>
<MenuItem1>Up</MenuItem1>
<MenuItem2>Select all</MenuItem2>
<MenuItem3>Unselect all</MenuItem3>
<MenuItem4>Invert</MenuItem4>
<MenuItem5>Cancel</MenuItem5>
</SelectCabDialog>
<SelectDestinationDialog>
<Title>SelectDestinationDialog</Title>
<OkSoftKey>Ok</OkSoftKey>
<CancelSoftKey>Cancel</CancelSoftKey>
</SelectDestinationDialog>
<Uninstaller>
<Title>Uninstaller</Title>
<ListviewColumn1>App</ListviewColumn1>
<ListviewColumn2>Mem.Usg.</ListviewColumn2>
<UninstallSoftKey>Uninstall</UninstallSoftKey>
<RefreshSoftKey>Refresh</RefreshSoftKey>
</Uninstaller>
</Language>
the filename should be Installer_CID.xml where cid is your cid. eg for italian: 410, english 409.
Edit: of course the italian one is already made by me
Thst is a great tool, anxiously waiting for release! Thank you sooo much!
Looks like a great tool ,and tools like this make other phones look primitive
Russian?
I might do a Russian translation. as soon as I have the time. in any case, I wanted to subscribe, so I made a post.
Looking forward to the release. when is it?
looks like an awesome tool... is it gsm specific or will it run on cdma phones?
Wow, nice release!! simple but powerful =)
benoahriz said:
looks like an awesome tool... is it gsm specific or will it run on cdma phones?
Click to expand...
Click to collapse
Should work fine on CDMA devices. A CAB's a CAB, CDMA or GSM
Dave

Modification of the On the Road panel for X2

Hi guys, i tried to modified the mui file for the italian language as in the beta panel downloadable from the SE site i found lots of translation errors. I was able to modifiy it with Res Hacker then put back on the cab file. The problem is when i install the panel it says the panel cannot be install because the program dones't have a digital signature with a realible certificate.
And if i install the original and then substitute the mui file in the folder, when i launch the panel it apears in English. Is there a solution for this and be able to make run the modified panel? Sorry guys this is all my knowledge, i'm not able to program or doing more difficult things. Just wanted to try some modifications by myself.
Sorry i forgot to say that it runs on my X1. And the original panel perfectly runs without the activeX or other X2 stuff. Just the translation is terrible
Nobody knows if there is a way to sign the file, as it seems ResHack removes some something on the file when i modify it
Use any signer for wm All work )
Hi, I'm not sure if it works with .mui files, but you can try using this package, which helped me translate some .dll files recently:
http://forum.xda-developers.com/showthread.php?t=432041
It contains Reshack and two small tools for unsigning and signing files.
However, the certificates of the included file have expired so you will have to replace them with the ones from this .zip archive:
http://forum.xda-developers.com/showpost.php?p=5312209&postcount=37
Please note that you might have to do your work all over again with a fresh unsigned file. I don't think you can re-sign a file without unsigning it before.

Categories

Resources