Windows Phone @ MoDaCo: New tools for ROM builders - ROM package <--> cab converters and more - Windows Phone @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

New tools for ROM builders - ROM package <--> cab converters and more Fresh from SztupY laboratories
-----


#1 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 05 January 2009 - 08:44 PM

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

0

Sponsored Links


#2 User is offline   lufeig 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 247
  • Joined: 16-September 08
  • Devices:Samsung i900

Posted 05 January 2009 - 08:47 PM

congratulations, sztupy!!!

another amazing tool you provide to the community!

0


#3 User is offline   shokka9 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,498
  • Joined: 21-September 08
  • Gender:Male
  • Location:The moon
  • Interests:|| MUSIC | TECH | LIFE | LFC ||
  • Devices:iPhone 4
  • Twitter:@shokka9

Posted 05 January 2009 - 09:30 PM

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....

0


#4 User is offline   lastnikita 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 567
  • Joined: 18-June 07
  • Devices:Samsung Galaxy S

Posted 05 January 2009 - 09:34 PM

the last one will help creating better tasks, by letting us test those packages on other devices :rolleyes:
good job dude

0


#5 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 06 January 2009 - 06:20 PM

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

Attached File(s)


0


#6 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 10:09 PM

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

0


#7 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 13 January 2009 - 10:19 PM

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.

0


#8 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 10:22 PM

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

0


#9 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 10:44 PM

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 File(s)


0


#10 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 13 January 2009 - 10:51 PM

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.

0


#11 User is offline   JonPhone 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 26
  • Joined: 09-September 08
  • Devices:i900 - Fr HH4 custom

Posted 13 January 2009 - 10:51 PM

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

0


#12 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 10:58 PM

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

0


#13 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 13 January 2009 - 11:04 PM

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.

0


#14 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 11:18 PM

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

This post has been edited by pepech: 13 January 2009 - 11:22 PM

0


#15 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 13 January 2009 - 11:25 PM

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.

0


#16 User is offline   pepech 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 91
  • Joined: 09-September 08

Posted 13 January 2009 - 11:42 PM

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

0


#17 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 14 January 2009 - 10:32 AM

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

0


#18 User is offline   sector 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,296
  • Joined: 18-September 05
  • Gender:Male
  • Devices:Samsung Omnia

Posted 14 January 2009 - 10:47 AM

<3 thanks man

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


#19 User is offline   sztupy 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 453
  • Joined: 16-December 08
  • Location:Budapest
  • Devices:SGH-i900; HTC Touch Pro

Posted 16 January 2009 - 07:28 AM

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)

This post has been edited by sztupy: 16 January 2009 - 07:29 AM

0


#20 User is offline   sector 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,296
  • Joined: 18-September 05
  • Gender:Male
  • Devices:Samsung Omnia

Posted 16 January 2009 - 08:17 AM

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


Sponsored Links

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!