• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

ROM Customization Tool - Pandora PreConfig Launcher

Search This thread

mattk_r

Senior Member
Feb 9, 2007
2,399
4
WA
So here's the scoop. You got this killer rom, but it loads a whole bunch of stuff that you don't want. You get around this by resetting before the configuration starts after aligning the screen.

You might have a host of cabs that you always load, and after you flash you need to run each one. Every rom you use it's the same thing - flash the rom, then load all your cabs.

Or, you may have a program you want to execute, such as enabling SetHSDPA.

Here's a way to "automate" it so you can use the power and flexibility of the PreConfig funtion as an "after the flash" customization tool, and make subsequent installations much faster.

You'll need a folder on your storage card called CABS, and in that folder put the attached file called CFG.txt as well as the cabs / exe's etc (unless they're already in the ROM, then just point the config file to the correct path) that you want to run. The CFT.txt is the file that will tell it what to install, and is exactly like the PreConfig.txt file - see my extended rom thread for ideas on what you can do with it.

Basically, here's the contents of the CFG.txt file I attached:

LOCK:Enabled
CAB: \Storage Card\CABS\A2DPFix.CAB
CAB: \Storage Card\CABS\ATIFix.cab
CAB: \Storage Card\CABS\Cingular_WAP_MediaNet_MMS_Settingsv2_No_ICON_Change.cab
CAB: \Storage Card\CABS\Google Maps Cell.CAB
CAB: \Storage Card\CABS\Monopoly.cab
CAB: \Storage Card\CABS\NETCFv2.wm.armv4i.cab
CAB: \Storage Card\CABS\S2U2-0.72-WM5.cab
CAB: \Storage Card\CABS\Solitare.cab
CAB: \Storage Card\CABS\StartClean.cab
LOCK:Disabled
RST: Reset

Just list out your cabs or actions in this file - and be sure the files you are referring to are in the destination path.

To use this setup:

Edit the CFG.txt file and place in \Storage Card\CABS (if the folder isn't there, create it)

Copy your cabs/exes into this folder, being sure they are set to READ ONLY.

Install the attached cab, and after you reset it'll start the installation!

Once the installation is complete and the phone resets - you can remove the program from Settings-Remove Programs.

Important Notes:

Don't forget to make your CABs READ ONLY - or they'll delete after installing. YOU HAVE BEEN WARNED!!!

Ensure that the cabs you're installing does not require any user input. If it does, it will hang the installation process, you'll need to reset the phone, and not all of your stuff will get installed.

Known list of NOT COMPATIBLE files:

MS Reader
 

Attachments

  • CFG.TXT
    445 bytes · Views: 496
Last edited:

twist

Senior Member
Feb 23, 2006
508
82
Sweet bro!!! I am all over it, will give it a go and let you know my results!!! Very cool stuff!
 

spastico

Senior Member
Oct 13, 2006
816
24
Last edited:

kc_hubbard

Senior Member
Jun 12, 2007
659
135
Kansas City
Is there a way to get cab files to default to installing on a Storage Card? I'm trying to prevent it from asking me where I want to install it and thus causing this tool from hanging up.

Nevermind, I made a bad assumption (yes, I know what they say about assuming things) that the PreConfig Launcher would hang up waiting for input for where to install something. I just tested it out on a cab that allows a user to override the installation directory and everything worked fine.

Sorry.
 
Last edited:

mattk_r

Senior Member
Feb 9, 2007
2,399
4
WA
Is there a way to get cab files to default to installing on a Storage Card? I'm trying to prevent it from asking me where I want to install it and thus causing this tool from hanging up.

Nevermind, I made a bad assumption (yes, I know what they say about assuming things) that the PreConfig Launcher would hang up waiting for input for where to install something. I just tested it out on a cab that allows a user to override the installation directory and everything worked fine.

Sorry.

You could edit your cabs and have them install to the storage card by default - or at least I think you could. I'm thinking something like %storage card%. If I get a chance I'll poke around WinCE Cab Manager and see if it's possible.
 

mattk_r

Senior Member
Feb 9, 2007
2,399
4
WA
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.
 

kc_hubbard

Senior Member
Jun 12, 2007
659
135
Kansas City
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.

Matt,

While I'm not quite the noob the number of posts would indicate I am, I admit that I haven't done much w/ building cab's. In an attempt to build one to install directly to the storage card, I've used WinCE to alter the default directory and have altered _setup.xml file, both to no avail.

While my pride says not to ask you to tell me how you set the cab up to install to storage, I'm not above asking you to post the example you created to test this so that I can look it over and try to figure this out for myself.

Would you mind attaching a cab file that installs directly to storage for me? Please?
 

mattk_r

Senior Member
Feb 9, 2007
2,399
4
WA
Matt,

While I'm not quite the noob the number of posts would indicate I am, I admit that I haven't done much w/ building cab's. In an attempt to build one to install directly to the storage card, I've used WinCE to alter the default directory and have altered _setup.xml file, both to no avail.

While my pride says not to ask you to tell me how you set the cab up to install to storage, I'm not above asking you to post the example you created to test this so that I can look it over and try to figure this out for myself.

Would you mind attaching a cab file that installs directly to storage for me? Please?

I could - but this is super easy. When you add a file, you get a window with three tabs, one being location. In that tab, you'll have the folder view. Click on the root '/' folder and press 'new folder'. Call it Storage Card.

That's it!
 

kc_hubbard

Senior Member
Jun 12, 2007
659
135
Kansas City
I could - but this is super easy. When you add a file, you get a window with three tabs, one being location. In that tab, you'll have the folder view. Click on the root '/' folder and press 'new folder'. Call it Storage Card.

That's it!

I must be an idiot to not have been able to figure that out (and my day job is computer programming, albeit on IBM Mainframes). Will work on this again once I'm back home. I'm sure big brother is already not too happy w/ all the time I spend on the forums anyway.

Thanks Matt!
 

AximMarkSD

Member
Nov 22, 2006
37
0
so, if i were flashing a ROM i would flash, install the cab and then, assuming i already have my cabs and config files on my card, i hard reset and this should launch ok?

thanks,
mark
 

kc_hubbard

Senior Member
Jun 12, 2007
659
135
Kansas City
so, if i were flashing a ROM i would flash, install the cab and then, assuming i already have my cabs and config files on my card, i hard reset and this should launch ok?

thanks,
mark

From what I've done/learned no hard reset is required. You install the Pandora PreConfig Launcher and let your phone Restart. When it restarts, your cabs in the CFG.TXT file will be installed.
 

AximMarkSD

Member
Nov 22, 2006
37
0
so after a flash or a hard reset (for whatever reason) you just install the cab and then soft reset and it will install your cabs?
 

AximMarkSD

Member
Nov 22, 2006
37
0
correct - as long as your cabs and the configuration file reside in the CABS folder on your storage card :)

right.

thanks. that's a great tool.

pardon the ignorance but i've never played w/ the WinCE cab manager. can i change the default install location on commercial cabs that i've purchased (assuming they require no interaction during install)?
 

megarek

Senior Member
Jan 21, 2007
205
19
right.

thanks. that's a great tool.

pardon the ignorance but i've never played w/ the WinCE cab manager. can i change the default install location on commercial cabs that i've purchased (assuming they require no interaction during install)?

Yes you can change the default install directory.
 

megarek

Senior Member
Jan 21, 2007
205
19
Matt,
Thanks for this great program. It makes changing roms SOOO much easier!! When combined with WinCE cab manager, you can autoinstall just about any program. This thread should be stickied.
 

megarek

Senior Member
Jan 21, 2007
205
19
Quick guide on how to get programs to install to storage card used WinCE Cab Manager. This guide was modified from K's FlexiRom instructions:

Preparing the cabs
---------------------------

- To set the cabs to a static path, install WinCECab Manager.

- Open a cab with WinCE Cab Manager and click on "CAB Information".

- Double click on "Default Install Dir" then select "Installation Directory"

- Change the default install directory to what every use desire. Do this by creating new directories under "/". For most users wanting to install on storage card, change path to "/Storage Card/Program Files/cabname". Before moving on to the next step, make sure that once you make the folders, click the desired installation path and click "APPLY".

- After applying the new default installation path, choose "Do not allow user to select installation directory"

- Check if there "Setup dll" is present under Cab Information. If setup dll is present, delete it off. [this step is from K's instructions, not sure if it is necessary or not. I've been doing it.]

- Save the cab then right click on the can and select "Read Only" and click apply/OK.

- Check and prepare all the cabs you want to auto install and place them into the CABS Folder of your storage card.

PS Using WinCE Cab manager, you can also modify the shortcuts of the program.