Hey guys. I've been asking for help on a lot of stuff lately, so I figured I'd actually do some contributing to the community this time.
I just made some modifications to the XDA_UC script to make it run multiple stages with reboots in between. I also cleaned up the code a little. I call it XDA_MSUC, for "Multi-Stage User Customization".
Here's how to set it up:
- You will need to either replace the original XDAUC.mscr with the new script, or just place the new one in your XDA_UC directory where you would normally put all your stuff.
- Set the first variable in the script to reflect whether or not you're using a Raphael device (the original doesn't work on Raphael without changing "Internal Storage" to "Storage Card"). I've pre-set it to true, since everyone looking at this thread is most likely running a Raph.
- Make new subdirs in the XDA_UC directory, labeled "StageN", where "N" is a number, starting at 1. There should be no space between "Stage" and the number.
- Place all your .cab, .reg, .mscr, etc. files in the Stage dirs, just as you would normally put them in XDA_UC. You may also place a directory labeled "RootFS" within any stage, and the tree structure inside will be copied over to the device root.
- If you want your cabs to install in a certain order within each stage, start the filenames with numbers, and they'll go in that order. Just remember to pad with zeros if you have more than 10. For example, 01_cabname1.cab, 02_cabname2.cab, etc.
- Flash, hard reset, or run the script to get it going.
The script will start at Stage1, install everything in that folder, reboot, and continue with each stage in the same way. For example, if you have the following structure on your SD card....
- \Storage Card\XDA_UC\
- Stage1
- Package1.cab
- Package2.cab
- Registry1.reg
- Script1.mscr
- Stage2
- RootFS
- My Documents
- Pim.vol
- Facebook.vol
- Package3.cab
- Registry2.reg
- Stage3
- XDA_MSUC.mscr
The script would do the following:
- Install Package1, Package2 and Registry1, and run Script1.
- Reboot.
- Copy over everything in RootFS to the appropriate places on the device, and install Package3 and Registry2.
- Reboot.
- Install Package4.
- Reboot.
- Clean up.
The reason I wanted this is because there are some cabs that don't work right unless a previous cab has a reboot right after it's installed.
Another script I whipped up is just to move your Start Menu shortcuts around. I've included that as well.
Peace.
__________________
Sprint Samsung Epic 4G
Previous PDAs: Handspring Visor Deluxe, Sony CLIE, HP iPAQ h2215
Previous Cell Phones: Motorola E815 (Verizon)
Previous Smartphones: Treo 700p (Verizon), Centro (Sprint), Touch Pro (Sprint)