Jump to content


New tools for ROM builders - ROM package <--> cab converters and more

- - - - -

  • Please log in to reply
37 replies to this topic

#1
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro
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 :rolleyes: 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 doesn't rely on MSCEInfEn which imho has a lot of bugs). 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

         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


#2
lufeig

lufeig

    Enthusiast

  • Members
  • PipPipPip
  • 247 posts
  • Devices:Samsung i900
congratulations, sztupy!!!

another amazing tool you provide to the community!


#3
shokka9

shokka9

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,498 posts
  • Gender:Male
  • Location:The moon
  • Interests:Everything
  • Devices:iPhone 5
  • Twitter:@we0nit
HERO!!!

I knew you were working on something good!! I think you just making tools for me really!  :rolleyes:

Downloading now, looks like i may be flashing my Omnia sooner rather than later, need to use your appz in one go.

Congrats on doing this and keep it up, next i need a whole new GUI, like HTC, but better! I know you can do it.

you done it again....


#4
lastnikita

lastnikita

    Addict

  • Members
  • PipPipPipPipPip
  • 567 posts
  • Devices:Samsung Galaxy S
the last one will help creating better tasks, by letting us test those packages on other devices :rolleyes:
good job dude


#5
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro
It seems makecab is needed for the applications to work properly. Attached.

Attached Files



#6
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts

View Postsztupy, on Jan 6 2009, 19:20, said:

It seems makecab is needed for the applications to work properly. Attached.

Hi Sztupy , first , sorry for my poor english . I am a newbie and I have used your fantastic tool ( syakr 0.9 pack 2 ) to make my own custom ROM ; all was fine , with M2D , I have 135 MB free in storage and about 62 Mb free in programs . Now , I would like to go further in customing and be able to install my own apps , like PHM registry , port splitter and somme others ones ; I have read the Xda post about OEM Packages but you said in first post that the software was very buggy . So I tried to use yours ( cab2pkg ) : my problem is , although all versions of Microsoft .Net Framework ( 1.1 ,2.0 SP2 , 3.0 SP2 , 3.5 SP1 ) and VC++  2005 redistributable and 2008 redistributable are installed on my XP desktop PC , when I drag a cab on cab2pkg , a DOS window is opened but close itself within one second ; what I am doing wrong ? I have tried to create a new folder on desktop , one at the root of disk C , each one contains all the tools packaged in your first post and makecab too

Many thanks for your magical tools and for the great support for all the Omnia Users

Regards , Philippe


#7
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

View Postpepech, on Jan 13 2009, 23:09, said:

Hi Sztupy , first , sorry for my poor english . I am a newbie and I have used your fantastic tool ( syakr 0.9 pack 2 ) to make my own custom ROM ; all was fine , with M2D , I have 135 MB free in storage and about 62 Mb free in programs . Now , I would like to go further in customing and be able to install my own apps , like PHM registry , port splitter and somme others ones ; I have read the Xda post about OEM Packages but you said in first post that the software was very buggy . So I tried to use yours ( cab2pkg ) : my problem is , although all versions of Microsoft .Net Framework ( 1.1 ,2.0 SP2 , 3.0 SP2 , 3.5 SP1 ) and VC++  2005 redistributable and 2008 redistributable are installed on my XP desktop PC , when I drag a cab on cab2pkg , a DOS window is opened but close itself within one second ; what I am doing wrong ? I have tried to create a new folder on desktop , one at the root of disk C , each one contains all the tools packaged in your first post and makecab too

Many thanks for your magical tools and for the great support for all the Omnia Users

Regards , Philippe

Copy all files to the i900 kitchen then run Shell.cmd In the shell run the application (like cab2pkg something.cab) and check what it does. It should report some errors.


#8
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts

View Postsztupy, on Jan 13 2009, 23:19, said:

Copy all files to the i900 kitchen then run Shell.cmd In the shell run the application (like cab2pkg something.cab) and check what it does. It should report some errors.

Thanks for your quick reply , I try this and report feed back


#9
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts

View Postpepech, on Jan 13 2009, 23:22, said:

Thanks for your quick reply , I try this and report feed back
Sorry , I had errors with image shackert

Screenshots attached

Attached Files



#10
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

View Postpepech, on Jan 13 2009, 23:44, said:

Sorry , I had errors with image shackert

Screenshots attached

Two comments:
1. You have to extract all files from CabTools0.1 cab2pkg uses cabarc to work.
2. cab2pkg uses _setup.xml files to extract the package. Unfortunately PHM registry editor doesn't use setup.xml files, so you have to resort back to ervius package creator.


#11
JonPhone

JonPhone

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:i900 - Fr HH4 custom

View Postpepech, on Jan 13 2009, 23:44, said:

Sorry , I had errors with image shackert

Screenshots attached

Hi Philippe Pechabrier (fait gaffe dans tes captures :) ),

maybe you can try with short filename for your cab file (less than 8 char), and for the entire path too. For example, move everything in a root directory, like c:\I900.

tell us if it works :D


#12
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts

View PostJonPhone, on Jan 13 2009, 23:51, said:

Hi Philippe Pechabrier (fait gaffe dans tes captures :) ),

maybe you can try with short filename for your cab file (less than 8 char), and for the entire path too. For example, move everything in a root directory, like c:\I900.

tell us if it works :D

Many thanks for your help ; I try it


#13
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

View Postpepech, on Jan 13 2009, 23:58, said:

Many thanks for your help ; I try it

Won't work with that cab, don't bother.


#14
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts
It ' s OK : by putting the kitchen at the root of disk C , it works with the iContact .cab , a new folder is created in the kitchen

Sorry I' m a pure noob ( but I love to learn ) , it may be trivial for you but I' d like to know whether it's possible , how to do to create a package for port splitter which is not a cab but an .exe that must be installed from the PC

Edited by pepech, 13 January 2009 - 11:22 PM.


#15
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

View Postpepech, on Jan 14 2009, 00:18, said:

It ' s OK : by putting the kitchen at the root of disk C , it works with the iContact .cab , a new folder is created in the kitchen

Sorry I' m a pure noob ( but I love to learn ) , it may be trivial for you but I' d like to know wheter it's possible , how to do to create a package for port splitter which is not a cab but an .exe that must be installed from the PC

If it's a standard PC isntaller, it should have isntalled the cab file to your PC somewhere. If it's not a standard installer you have to track down the changes the installer does to your device. Here is a utility for this: http://winmo.sztupy.hu/regtree.html Run it before the instal,, then after the install (takes about a minute), then copy the two new dimp files from the root of the device, and check the differences between them (use a diff tool). You have to manually create the registry entries after that though, so it's not an easy task.


#16
pepech

pepech

    Regular

  • Members
  • PipPip
  • 91 posts
Thanks a lot Sztupy , I think I have no time enough to test it tonight , but probably tomorrow . I will send feedback anyway ; once more time , sorry for asking so basic questions , I' have already seen hundreds of threads about it , on Modaco , Xda but English is not my native language , I discovered WinMo four months ago , and although my job is far from this ,  I' m very enthusiast about learning more and more  
Regards , Philippe


#17
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro
V0.2 released with some miner fixes.cab2pkg will now work with InstallDir variables too. (most of the official cabs are like that)

http://winmo.sztupy.hu/cabtools.html


#18
sector

sector

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,296 posts
  • Gender:Male
  • Devices:Samsung Omnia
<3 thanks man

If you like my work buy me a beer :) !
Posted Image
WM 6.5/6.1 roms, Themes, Taskbar etc... :D

#19
sztupy

sztupy

    Diehard

  • Members
  • PipPipPipPip
  • 453 posts
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro
Found a "small" error in cab2pkg which I didn't realise yet. It ceates an .rgu file with this header: "Windows Registry Editor Version 5.00"

Seems like BuildOs doesn't like this. Replace this line with "REGEDIT4" (or if the registry is empty simply truncate the file)

(thx lastnikita)

Edited by sztupy, 16 January 2009 - 07:29 AM.


#20
sector

sector

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,296 posts
  • Gender:Male
  • Devices:Samsung Omnia
Need to mention that there are no new lines after each node.

If you like my work buy me a beer :) !
Posted Image
WM 6.5/6.1 roms, Themes, Taskbar etc... :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users