[Touch Diamond, MDA Compact IV ROM Development] sjauquet:
[Tool] Mod of Suiller'UC -> SUPER EASY Auto restore (Like UC/UC2) Just by copy/paste

Hi everyone,

I started the thread because I wanted to "promote" a nice way to restore cabs and regs after flashing.

I found this script way more useful than UC or UC2 as you don't have to edit files, convert reg to xml files etc. just put the file you want in folders and launch one script

... how this can be more simple ? :)

This nice script was just missing a script to copy files and folders to the device or the storage card.

This script should be device independent, so please test and report.

The first version of this script has been extracted from an other script created by Suiller for the rom Macadam V1.2. (discontinued)

I ripped the restore part of this script to use it on other roms

INSTALLATION/USE

Just Un-zip the attached file and place the folder "Backup and Restore" in the root of your storage card.

Then you just have to copy:

- .cab you want to install in the folder cab (cabi for those you want to install on storage card)

- .reg in the folder reg

- .exe for files you want to execute

- Files and folders in the folder "Files"

Files included in the zip:

- # Create Folder structure.mscr

- 1 install MortScript420 if needed.cab

- 2 Start Restore.mscr

- Config.mscr

- config.txt

- PimBackup.exe

- TaskMngr.exe

How to use:

1) Extract the zip into the root of your storage card

you will have a structure like:

\internal storage\Backup and Restore\CAB

\internal storage\Backup and Restore\CAB\CABi

\internal storage\Backup and Restore\EXE

\internal storage\Backup and Restore\Files

\internal storage\Backup and Restore\REG

...

2) install mortscript (if not already installed on your rom)

3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure (not mandatory)

4) populate the folders with .cab, .reg, .exe and files to match your needs

5) start the script "2 Start Restore.mscr"

6) be patient and note the the CABi script is not perfect (already installed cabs, errors etc... will fail)

Explanation for the folder "Files":

All files and folders in the folder "Backup and restore\files" will be copied to the divce starting from the root of the device.

Example:

\Backup and Restore\Files\Windows\Start Menu\Programs\Tomtom.lnk

\Backup and Restore\Files\Program Files\Home2\Db.xml

\Backup and Restore\Files\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr

Will be copied to:

\Windows\Start Menu\Programs\Tomtom.lnk

\Program Files\Home2\Db.xml

\Internal Storage\Program Files\Opera Mobile\profile\opera6.adr

Note: The *.cab and *.reg execution is by alphabetical order, so if some cabs/regs need to be restore before others rename them (for example A_Resco explorer, B_Resco registry Etc ...)

Enjoy ! :D

The only thing this script misses is:

- a copy folder where to put files and folders to be restored to device and internal storage(for shortcuts, ringtones, folders to copy/create automatically) - Done, thanks to Myself :D ... found inspiration around

- support of other roms for other phones (the name of "internal storage" for example) - done, thanks to Suiller - need feedback now

----------------------------------------------------------------------------------------------------------------------------------------------------

Edit:

V3.1 Added create folder "Files" in script "# Create Folder structure.mscr"

V3.0 Added Copy files and Folders

V2.1 Bug, not importing *.Reg - fixed

Changed some timings and paths

V2.0 Some improvements and auto detection of the name of the storage card

http://xdaforums.com/showpost.php?p=3988330&postcount=9

V1.0 Simple restore Cabs and Exe