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

[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 !
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 ... 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://forum.xda-developers.com/showpost.php?p=3988330&postcount=9
V1.0 Simple restore Cabs and Exe

more infos:
daeshawn said:
sounds like an idea..personally i was never good with scripts etc..but looks like this simplifies it...i might give it a try tonight after work!! thanks
Click to expand...
Click to collapse
thanks !
this link can help:
http://forum.xda-developers.com/showthread.php?t=440683
for the usefulness of a COPYi, i think it's still interresting to be able to copy files from "internal storage" to "internal storage" for example to overwrite config files, or patch installed programs etc.
I think this function has been already written but not integrated with the actual script.
more info on what the previous version of this script was able to do, extracted from the link given before:
suiller said:
The previous version of this script was able to:
- after rom installation an automated procedure will ask you: configure general speed & GPS profiles; remove ActiveSync time change queue (stop popup every 5 min); left/right softkey configuration; CAB & CABi + REG + EXE installation/execution (as mentioned above) + upx compression phase, then choose backup method & eventually load a restore, restore previous saved Start Menu + tweakPers script and for finish reboot to apply changes
- once your cab installation is completed and the reboot phase is done you can open tweakPerm under Scripts folder (simple notepad is enough) and read carefully the comments inside, take inspiration & make changes (copy/paste) in the tweakPers script (an example is here); all these scripts are independent, so for example you can use tweakPers at any time, after every hard reset or a new flash the only one that wont touched is that script (this is the reason why your personalization should go in that file)
- then you can re-organize shortcuts in your "\windows\Start Menu" directory to fit your needs, then run the script "backupStartMenu", this will make a copy of your "final" start menu directory, useful to preserve your original Start Menu structure (in this way it can be restored automatically on next flash)
- the last important folder (always under "Backup and Restore" directory) is "pimbackup", under this directory will be saved automatic pim backups during night(contacts/sms/call logs/et cetera)
Click to expand...
Click to collapse

Tuto: How to format your diamond (not internal storage) before flashing:
Why this procedure ? : Because it works and because it's easier than flashing the original HTC stock rom before flashing a cooked rom... and also because flashing an original htc stock rom was not enough sometimes to stop my strange problems on my diamond when flashing rom's.
Here we go:
1. bring the device to bootloader. in diamond: (Volume down + reset)
2. Launch ActiveSync on PC
3. Go to connection settings
4. Uncheck the Allow USB Connection
5. Now, run mtty 1.42_538 on your PC.
- Select USB from the "Port" drop-down on the upper left corner of the dialog box and hit OK
- another screen will come up. Hit enter and that will show "USB>"
6. CMD>task 29
- wait untill finished then exit.
7. Flash the ROM of your choice.
Download executable and Infos: see attachment

Just one question. Has Suiller or Danny_and_2 given you permission to release this independently?

shaks1979 said:
Just one question. Has Suiller or Danny_and_2 given you permission to release this independently?
Click to expand...
Click to collapse
Hi Shaks,
I've sent previously PM to Suiller, if he disagree, I will remove it.

for me it's ok... and in the meanwhile I prepared a separate sUC.cab to use for high-personalizations also on uncapable UC roms, I haven't tried at 100%, but it worked perfectly in a couple of roms (for ex. the last I tested was the one made by Dazzza); the cab includes ALL the functions enabled by default on Dia Duit rom series, plus I removed stuff touching the SYS, so it should work on every diamond rom; I added also the auto recognition of "Storage" name... so should work without troubles also on NON WWE roms
attachments:
sUC.cab (is the pre-compiled, ready to run cab)
sUC.zip (is the source)
tweakPers.zip (is an example of personal tweak script, the only one the wont be touched on future upgrades, so put there all your very personal stuff)
MortScript420.cab (guess??)
if the rom is UC compliant simply your sdconfig.txt will look like:
Code:
LOCK:Enabled
CAB :\Internal Storage\MortScript420.cab
CAB :\Internal Storage\sUC.cab
LOCK:Disabled
RST: Reset
in this way at 1st boot will be installed both mortscript & sUC, then at 2nd boot will start standard sUC procedure
if the rom isn't UC compliant simply after rom flash run 1st mortscript cab & then sUC cab, it will ask to restart & automated procedure will start
If you have time, starting from this thread I can pass all the info you need, for example could be useful write a better guide for using this way, I tried but not so able to explain in few words perhaps making some real life examples... anyway good idea... I think a sort of unification must be made (sUC + UC + UC2, or whatever)
bye,
davide
ps: in the nataly rom series even if mortscript is yet installed the full version is required too, so reinstall the mortscript cab also in those roms
ps2: I added also the folder CPY always under "Backup and Restore" master folder, all files putted there will be copied (without overwrite) under \windows folder... for example I use it to install in a fresh rom my personalized icon dll, my background, etc... so after restoring the "Start Menu" the system will find without trouble the needed icon dll

Hi Davide,
Thanks A LOT for all this, there is a lot of work in those attachments ...
I'm not a developer but I can read a script.
This script contains a lot of changes since the one I use.
On the scripts you uploaded there is a lot of customisations and registry tweaks.
I think a lot of people will not want to modify the settings made by their "chef".
So, with your permission, I will try to remove all what is not related to the restore/auto install of cabs, regs and files.
I will also extract the script to create the folders on the internal storage for an initial setup of the solution
I prefer also to have for example pimbackup.exe in the folder "backup and restore" so nothing needed on the /windows folder.
If you agree, I will do those extraction of your code to make things simple:
- no installation (just copy)
- maybe extract the script to create folders architechture
- 1 script to start the restore of what is in the backup and restore folder.
- If users want to customize, they will extract registry keys in .reg files and put them in the /reg folder
This may take time as tomorrow I'm going to Greece for 2 weeks (for work :-s)

for me it's ok... you can make all the changes you feel/need
anyway the tweakPerm is just a base from where take "inspiration" for not skilled users, all personal stuff should go instead into tweakPers script
for example, I suppose, that many don't know how to setup a default ring, or sms sound, or alarms, etc... without a single touch by reading tweakPerm (copied into Back and Restore) they can have an idea
good job friend & have a nice trip

Ok,
Here is the "new" restore script based on the updated file received from Davide.
I removed all that's not related to the restore (many customisations of the rom); this script need no installation (except mortscript if not available in your rom)
What's included:
- # Create Folder structure.mscr
- 1 install MortScript420 if needed.cab
- 2 Start Restore.mscr
- Config.mscr
- config.txt
- PimBackup.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\CPY
\internal storage\Backup and Restore\EXE
\internal storage\Backup and Restore\REG
...
2) install mortscript if needed
3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure, but it's not mandatory
4) populate the folders with .cab, .reg and .exe 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)
Note:
The content of the CPY folder will be copied to the /windows folder.
TO DO:
If someone is able to create a copy routine (with overwrite) who can take in charge a complete structure it will be appreciated a lot.
Example:
(Using a new subfolder Backup and Restore\Files)
\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
Enjoy

sjauquet said:
Ok,
Here is the "new" restore script based on the updated file received from Davide.
I removed all that's not related to the restore (many customisations of the rom); this script need no installation (except mortscript if not available in your rom)
What's included:
- # Create Folder structure.mscr
- 1 install MortScript420 if needed.cab
- 2 Start Restore.mscr
- Config.mscr
- config.txt
- PimBackup.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\CPY
\internal storage\Backup and Restore\EXE
\internal storage\Backup and Restore\REG
...
2) install mortscript if needed
3) run the script "# Create Folder structure.mscr" if you want the "default" suiller UC structure, but it's not mandatory
4) populate the folders with .cab, .reg and .exe 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)
Note:
The content of the CPY folder will be copied to the /windows folder.
TO DO:
If someone is able to create a copy routine (with overwrite) who can take in charge a complete structure it will be appreciated a lot.
Example:
(Using a new subfolder Backup and Restore\Files)
\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
Enjoy
Click to expand...
Click to collapse
it's a good idea & above all not so difficult to implement... the overwrite thing depends, of course, if you want overwrite a file flashed inside the rom... in this case, as you know, it's not possible... better on some files could be possible but it's very complex
for the same speech upx compression works only with EXE files installed post the flashing phase, for example it will work with exe files from extra cab installation

suiller said:
it's a good idea & above all not so difficult to implement... the overwrite thing depends, of course, if you want overwrite a file flashed inside the rom... in this case, as you know, it's not possible... better on some files could be possible but it's very complex
for the same speech upx compression works only with EXE files installed post the flashing phase, for example it will work with exe files from extra cab installation
Click to expand...
Click to collapse
Yes, if someone can write this it will be mostly to copy/overwrite installed application with settings or shortcuts.

Hi,
is this method better than sashimi? just ive had sashimi fail once or twice recently with certain cabs.
thanks in advance
MG

Excelent thread - I tested and work correctly. Save a lot of time!
COPY> Maybe it will be easier create simple .bat for windows and 3 phaze will be on pc: copy files from PC to special folders in Diamond. What do you think? It is easy to wrote I think.
REG> Is one thing that not work correctly. I exported registry key from Rasco Explorer. Put this to reg folder but it was not imported to system Do you know why?

s2007 said:
Excelent thread - I tested and work correctly. Save a lot of time!
COPY> Maybe it will be easier create simple .bat for windows and 3 phaze will be on pc: copy files from PC to special folders in Diamond. What do you think? It is easy to wrote I think.
REG> Is one thing that not work correctly. I exported registry key from Rasco Explorer. Put this to reg folder but it was not imported to system Do you know why?
Click to expand...
Click to collapse
COPY ... yes, of course it's possible, but you can also do it easily with mortscript...
And the main goal of this script is to make all install automatic, so everyone can restore his PocketPC if he can copy/paste )
REG In my case it works perfectly, probably because I install resco registry before (via cab)

> REG In my case it works perfectly, probably because I install resco registry before (via cab)
I too but not work. Anyway it is not a lot of addiotional work for me.
And I used v1 your script not v2.

s2007 said:
> REG In my case it works perfectly, probably because I install resco registry before (via cab)
I too but not work. Anyway it is not a lot of addiotional work for me.
And I used v1 your script not v2.
Click to expand...
Click to collapse
You can try with the V2.0, just rename your backup and restore folder et create a new one with only a .reg file inside.
I just made a second test now and it was flawless (with bsb 6.5L)

Please ask me how can I do backup/restore settings of Today screen Panels/Pages (I use all time Chrome Editor to customize it but it take a lot of time ). Is there key in registry or config file that can I restore after reinstalation? I need fast restore after HR or rom update rom my Today (WM6.5) screen.

s2007 said:
Please ask me how can I do backup/restore settings of Today screen Panels/Pages (I use all time Chrome Editor to customize it but it take a lot of time ). Is there key in registry or config file that can I restore after reinstalation? I need fast restore after HR or rom update rom my Today (WM6.5) screen.
Click to expand...
Click to collapse
Sorry, I do not use Titanium, but you should find easily the keys in the registry

Hi this sounds great. I was always scared of by the normal UC or even SASHIMI. Your version is probably as easy as it gets.
Can I include PIMBackup with this?
The main goal is to restore my contacts/SMS/Call logs and then restore the manila favourite contacts tab. I thought this should be possible by just restoring the registry entries for the contacts tab, is that correct?
Cheers

konrad.schafers said:
Hi this sounds great. I was always scared of by the normal UC or even SASHIMI. Your version is probably as easy as it gets.
Can I include PIMBackup with this?
The main goal is to restore my contacts/SMS/Call logs and then restore the manila favourite contacts tab. I thought this should be possible by just restoring the registry entries for the contacts tab, is that correct?
Cheers
Click to expand...
Click to collapse
PIMBackup is included and if put in the folder EXE it will lauch automatically at the end.
The contacts are not stored in the registry, but in db files

Related

WM6 Registry Hacks (Different to WM5)

Hi guys,
I've been scouring the net and these forums for about 3 days trying to find the registry hack to change the default location of the 'My Documents' folder to my storage card as the reg key normally used (as per the wiki) under WM5 doesnt exist. I also want to do the same with the default ringtone location, changing it to 'My Ringtones' located in the 'My Documents' folder instead of '/windows/rings'.
Maybe we could use this thread to post known WM6 reg hacks that are different to the method used for WM5 which could be of some use to members, including myself, and hoping I get the answer to the ones I mentioned above,
Feel free to add reg hack queries, and any hacks you know of that are WM6 specific.
Enjoy your day,
Neil.
Nobody?
I noticed the same a while back, but since WM6 is not technically even out there, and if it is in very little numbers. Us here included, it might take a little while before we start seeing a load of hacks.
sassenach74 said:
Hi guys,
I've been scouring the net and these forums for about 3 days trying to find the registry hack to change the default location of the 'My Documents' folder to my storage card as the reg key normally used (as per the wiki) under WM5 doesnt exist. I also want to do the same with the default ringtone location, changing it to 'My Ringtones' located in the 'My Documents' folder instead of '/windows/rings'.
Maybe we could use this thread to post known WM6 reg hacks that are different to the method used for WM5 which could be of some use to members, including myself, and hoping I get the answer to the ones I mentioned above,
Feel free to add reg hack queries, and any hacks you know of that are WM6 specific.
Enjoy your day,
Neil.
Click to expand...
Click to collapse
Has anyone found a solution for this yet. My Documents sync path to Storage card
Why don't you just try creating the registry key referenced for WM5? If it doesn't work, you can always delete it...
Guys,
just creating the keys work like a charm
TyTn with black 2.0 was used to test.
Doesn't work for me
I tried creating the hacks as per this thread:
http://wiki.xda-developers.com/index.php?pagename=WM5_Tweaks_Other
But it doesn't work for me - anyone have any ideas?
Found a way to move My Documents ... BUT ...
Found this on:
http://www.inspectmygadget.com/2007/07/17/how-to-hack-your-windows-mobile-registry/
*****************************************************
Change the location of My Documents to the SD Card.
This one is complicated but possible. I had to play around with this one for a while trying and failing with several methods, succeeding with this one. The order in which you do this is essential.
Please ensure that your SD card and My Documents are backed up. It is recommended that you do this on a fresh install of your ROM. This cleared out my “My Documents” folder but I was able to restore it.
1. Reset your device
2. Synchronise your device with your PC
3. Navigate to
“HKLM\System\StorageManager\Profiles\SDMemory“
4. Change the “Folder” key to “My Documents”
5. Rename your original “My Documents” folder to “My Docs”. This is a crucial step, but it does not matter what you name it.
6. Power off and reset your device.
7. Sync your Device
You should see in “File Explorer that your “My Documents” folder has an SD card icon next to it.
Copy your files back into your My Documents.
*****************************************************
Only problem with doing this on an already set up system is that if you have anything installed to your Storage Card, then all the links become invalid - you can resolve this by using Resco Explorer / Total Commander to reset all of the links.
Haven't tried to install any apps after doing this, would be interested in hearing if it still installs there like normal - decided to reset the name to Storage Card, rather than have to remake 200+ links to all the apps / games that are on there - think I'll wait until I remake the system next time!
Bird
Update
Worth doing ... but only on a new install
Backed up my system, then had a go at this - spent an hour in front of the telly changing all the links over to the new addresses, etc.
All seems to work, but a load of little bugs started to occur - all related to where certain software is located, and files that have been installed, and where,etc.
No issues related to the system in general, but I think this method would be best used if you are doing a brand new install - don't even install the EXTROM before you do it and you'll have no problems at all, and no more issuses with the build up of crap on your system. Just don't think it's feasible on an existing build, to many hidden links and file misplacements can occur.
Still - if you backup first, it's worth a try!
Bird
Sorry for digging this up but... will this workaround let you sync with the 'my documents' on the storage card? I'm trying to get this to work but numerous threads say that wm6 can only sync to the my documents on the phone memory.
It can just manage its own my documents. Not the My Documents folder of M$ Windows. So what ever you want to add or update do it there as well.
When you will select the settings for Sync, select files and it will make a shortcut on your desktop for the folder of my documents of your device that is available on your PC also.
I found a simple solution on the net
I found this simple solution on the net:
1. Create a subfolder called "My Documents" in your Storage Card folder.
2. Copy the contents of \My Documents to \Storage Card\My Documents
3. Delete \My Documents
4. Open a text editor and paste the following text into a new document: 33#"\Storage Card\My Documents"
5. Save this as "My Documents.lnk"
6. Copy this to the root of your WM6 device
http://social.microsoft.com/Forums/en-US/windowsmobile/thread/df005e15-7116-43a8-aeb5-3e0122442487
Internetpo said:
I found this simple solution on the net:
1. Create a subfolder called "My Documents" in your Storage Card folder.
2. Copy the contents of \My Documents to \Storage Card\My Documents
3. Delete \My Documents
4. Open a text editor and paste the following text into a new document: 33#"\Storage Card\My Documents"
5. Save this as "My Documents.lnk"
6. Copy this to the root of your WM6 device
http://social.microsoft.com/Forums/en-US/windowsmobile/thread/df005e15-7116-43a8-aeb5-3e0122442487
Click to expand...
Click to collapse
After sync with PC, the folder "My Document" will automatically created again in root folder and the files in \Storage Card\My Document" can not sync with pc

ROM Customization Tool - Pandora PreConfig Launcher

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
LOCKisabled
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
Sweet bro!!! I am all over it, will give it a go and let you know my results!!! Very cool stuff!
You Rock!
Downloading Now!
Can I put this on My Treo?
berdinkerdickle said:
You Rock!
Downloading Now!
Can I put this on My Treo?
Click to expand...
Click to collapse
sure, if it's WM5/6.
mattk_r said:
sure, if it's WM5/6.
Click to expand...
Click to collapse
Jokes on Me.
Seriously Though,
This is Great!
mattk_r said:
...clip...
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.
Click to expand...
Click to collapse
We do want to be sure not to use apps that require a reset.
great! That's what I was looking for recently
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.
kc_hubbard said:
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.
Click to expand...
Click to collapse
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.
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.
mattk_r said:
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.
Click to expand...
Click to collapse
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?
kc_hubbard said:
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?
Click to expand...
Click to collapse
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!
mattk_r said:
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!
Click to expand...
Click to collapse
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!
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
AximMarkSD said:
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
Click to expand...
Click to collapse
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.
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 said:
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?
Click to expand...
Click to collapse
correct - as long as your cabs and the configuration file reside in the CABS folder on your storage card
mattk_r said:
correct - as long as your cabs and the configuration file reside in the CABS folder on your storage card
Click to expand...
Click to collapse
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)?
AximMarkSD said:
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)?
Click to expand...
Click to collapse
Yes you can change the default install directory.
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.
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.

last sdconfig+tool package!!!

this is last sdconfig (to start at first reset, after rom flashing) and its tools packaged for rom cokkoer.
if you use my kitchens only have to add it into \sys or \packages folder, if use other kitchen:
edit config.txt into "\OEM\OEMOPERATORS" folder, adding this value just before
LOCK: Disabled
RST: Reset
the string:
CFG: \windows\sdconfig.txt
so you have
xxxxxxxx
xxxxxxxx
CFG: \windows\sdconfig.txt
LOCK: Disabled
RST: Reset
in your config.txt file
while the tool is stored into "personal" tab on settings, and under windows mobile you can access it every times you want.
sdconfig (not tool) at 1st startup, and before config.txt will be execute, search for all: cabs provxml and tsk files into:
\storage card\Cabs\ folder, if found populate in \windows\ the file called "sdconfig.txt", and install at costumization, all it found inside...
if not,(if doesn't found the \storage card\cabs\ folder) create a blanch \windows\sdconfig.txt"
the programs is able to automatic recognize of "storage card or scheda di memoria etc.. and esecuzione automatico or startup folders, no more need it sdconfig.ini!!!
bye!
new version, same but changed icons, so maybe someone can be happy seeing icon present and doesn't change the icon or delete my sign inside my appz!!!
what is sdconfigtool ? lol
simkard said:
what is sdconfigtool ? lol
Click to expand...
Click to collapse
sdconfig:
is used to install all cabs you want at 1st reeboting when you ppc goes to costumizing (you need: sd card inserted and a directory into sd called "\cabs" and into \cabs folder some cabs present!)
sdconfig tool:
if you want install more cabs in one step, the tools search for all cabs, provxml and tsk present into sd card and its subfolder, list all them to you, and you can choice al them you need and want install, the tools install all them for you, one step one, you can also choice for each cab where istall it, into system or into storage card!

importing registry keys

hey guys, after miri's recent v19 rom release, i've got to the point where manually reinstalling stuff is getting more of a chore than a pleasure, so i've been playing around with sdconfig.txt and self-built .cab files...
however, there are some things i cant configure due to them being in the registry.
so far this is what ive done:
- used 'CeRegEditor' to capture the active registry (both stock rom, and fully configured the way i want it to be)
- compared the 2 files, and saved the output to another file
- copied this file (i've tried both .cereg, and .reg formats) to sd card, and attempted to run. when executed from my HD, the file format is unrecognised and will not import the registry values.
so, what have i missed? why wont a .cereg or .reg file 'install' on my HD?
the idea is to have this registry file in the sdconfig.txt (or a cab, and exec'd from sdconfig.txt), so on hard reset it is a completely 'hands-off' re-install.
Create a Cab file. You can create Cab files that only install registry settings. Take the '2_Way_Plus_InCall_Recording' cab file and build upon that maybe. Edit the '_Setup.xml' to include your registry settings and then you can install them just as you would install a Cab file.
How many registry setting do you want to change?
.reg file is 260 line file - 25kb.
while there seems to be a limit on what the registry is holding, it is configuring some of the more simplier and silly things...
- Device name
- Owner info
- Manila Weather
- power settings
- 'changescreen' app settings (app found on these forums)
- 'HD tweak' app settings (again, found on these forums)
at this point in time, it's more of a proof of concept, rather than finalized version. now i know how to get things working, i can fine tune the reg settings and provision my phone.
it seems 'ceregedit' does not correctly convert reg > XML (or reg > CAB).
however, i found another tool called 'SDConfigGen', which does correctly convert reg > XML. i've been able to use the XML in my sdconfig.txt, which is what i wanted!
while the above reg keys work, it's not an exact build of how i had my phone before...
there are some things i would like to automatically configure:
- pre-configured Wifi profiles (theres maybe 4 AP's i use)
- automatically set 'touchflo 3d' as the default theme.
- a complete hands-off install. (things like pre-setup the HTC auto-configure "sim card change")
- automatically accept a security certificate from our activesync server (i have activesync config in a .cab file, but it requires you to manually click 'yes' to the security cert install box)
im sure a google will help with a few points above!
Ok I'm not sure if you program at all or if this would really easy your pain much but you can download a trial version of Visual Studio 2008. It has a project option to build cab files for ppc devices. Might be worth a look if you have a lot of keys to do. Its not much better than doing them by hand though. I've included a screen shot of VS doing it so you can see. BTW its obviously been scrunched up.
Try this
veehexx said:
hey guys, after miri's recent v19 rom release, i've got to the point where manually reinstalling stuff is getting more of a chore than a pleasure, so i've been playing around with sdconfig.txt and self-built .cab files...
however, there are some things i cant configure due to them being in the registry.
so far this is what ive done:
- used 'CeRegEditor' to capture the active registry (both stock rom, and fully configured the way i want it to be)
- compared the 2 files, and saved the output to another file
- copied this file (i've tried both .cereg, and .reg formats) to sd card, and attempted to run. when executed from my HD, the file format is unrecognised and will not import the registry values.
so, what have i missed? why wont a .cereg or .reg file 'install' on my HD?
the idea is to have this registry file in the sdconfig.txt (or a cab, and exec'd from sdconfig.txt), so on hard reset it is a completely 'hands-off' re-install.
Click to expand...
Click to collapse
I used this to do what your trying to do, it will not import .reg files on the trial version but theres an older version on piratebay that will:
Heres a link to a trial for 30 days: http://www.ocpsoftware.com/products.php?nm=cecabmgr
SDConfig Builder
Hi,
try SDConfig Builder

[Reg Edit] Right click ApkTool

I dont really know where this belongs, Original Android Development, Android Development or Themes and Apps. I use it for themes so ill put here.
Hopefully some of the people around here will find this as useful as i have.
First things first, credit and thanks to Brut.all for his awesome tool.
Basically i couldn't find anything like this so I created a very simple little reg edit to enable right click de-compiling on apks and right click builds on folders.
I've been using this since Jaunuary 2011(over a year!!) with no problems and it's great for those quick .9 or xml edits.
DISCLAIMER:
This was made for the Windows XP operating system! .so im not sure if it will work on other Window OS, feel free to try but im not responsible for your computers well being so use at your own risk.
After a little research it seems the registry tree is the same for "Vista" and "7" so it should work on them also
To use this you must have apktool working correctly.
Only works if your path variable is set to C:\sdk\tools\
If your Path variable is set differently you have 2 options:
1-let me know where and i'll attatch appropiate reg-edit.
2-Easy option, create a folder on your C:\ named "sdk", inside the sdk folder create another folder named "tools,
now copy the contents from your original tools folder into your newly created tools and add the path in enviromental variables. Simple.
RECOMMENDED:
It is highly recommended to backup your registry prior to installing, just follow the simple instructions included in the download zip.
To install:
Simply extract .reg file from the zip, double click and answer yes.
That's it!!!!
Now your ready to become a de-compiling/building whirlwind.
Useage
*I simply right click an apk, "empty.apk" for example, choose decompile (you recieve a folder with the apk's name), navigate into the res\drawable* folder and drop in my .9.png's.
*Backout of folder, right click "empty" folder and choose build.
*The built images are in are located in "empty\build\apk\res\drawable*".
*The built apk is located in "empty\dist".
I've included an empty.apk for quick .9.png edits, this saves hunting through endless amounts of images for your newly created .9.
If the tool fails it could be something simple-
Problem: solution:
-Folder already exits -Delete or rename
-.9.png's not properley edited -Fix using draw 9 tool
-Required framework not installed -Open cmd and type "apktool if FILE LOCATION\framework-res.apk"
Remember this is a simple tool, for more advanced useage and logs use apk-manager
Final Note:
If Brut.all has any reason for me to remove this please let me know and it will disappear ASAP.
Thank you.
Link and Contents::
ApkTool_reg_edit.zip(contianing reg-edit)
reg_backup_restore.txt
empty.apk
>>>CLICK ME TO DOWNLOAD<<<
If for some reason you lose the ability to create new folders here is a fix:
>>Here<<
Just extract and double click, it might say "cannot import all data", just ignore it, it will restore your create new folder option.

Categories

Resources