[2010/11/02] XDA_UC_NET - portable UC, Sense GUI. (0.9.4.4) - Windows Mobile Apps and Games

Based on XDA_UC (by Noonski). I used it in my ROMs and the idea is just great.
But there are some issues that I want to fix and also I have some new ideas.
So I started new project.
1. XDA_UC is based on MortScript, and I use C#. This affects only engine. You can use your mscr files for customization =)
2. XDA_UC runs in background, it's almost silent. I want to add feedback to show what's happening now.
Official Russian forum is here.
This application will install all cab files, reg tweaks, provxmls, run mscr scripts, copy files (and more) from given folder. Use it after you upgraded your ROM to restore everything.
Information for Chef's updated 2010/07/07
UC_NET new feature - Using variables updated 2010/07/02
UC_NET new feature - Portable commands updated 2010/07/07
UC_NET tutorial - HOWTO create shortcuts updated 2010/07/02
Requirements: NetCF 3.5
Main features:
portable, supports localization, uses OS functions (if possible, for example for installing provxml), predictable - you can control order of everything, error reporting, full customization log.
Quick start:
1. create folders on your storage card
Code:
XDA_UC
XDA_UC\Manual
XDA_UC\Copy2Root
XDA_UC\Run
XDA_UC\Execute
"XDA_UC" is a place for all .cab, .reg, .mscr, .cer files that should be automatically installed to device.
"Manual" is a place for all cab files you want install in usual "visible" mode with all questions.
"Copy2Root" is a place for all files and folders that should be automatically copied to device.
"Run" is a place for you self-extracting archives.
"Execute" is a place for you self-extracting archives if you want to continue customization while them working.
2. run UC_NET.exe, select your XDA_UC folder and press customize button.
XDA_UC_NET features:
1. It runs with any ROM that has NETCF 3.5. You don't need to install or cook it. Just take exe and run it.
2. It searches for XDA_UC folders on your storages and then you can choose what folder you want to use for customization. And you can even select any other folder as a root for customization.
3. How it works. When you select folder and press "Customize!" program uses this algorithm:
Install MSCRs
RunWaitFiles - run apps from the Run folder and from coomand files UC_NET_Run
RunNoWaitFiles - run apps from the Execute folder and from coomand files UC_NET_Execute
Install XMLs ("*.*xml" from XDA_UC)
Install CERTs ("*.cer" from XDA_UC)
Install CABs silent to device memory ("*.cab" from XDA_UC)
Install CABs manual ("*.cab" from XDA_UC\Manual)
Install REGs ("*.reg" from XDA_UC, uses FS_TaskMgr.exe)
Install RGUs ("*.rgu" and "*.cereg" from XDA_UC, uses FS_TaskMgr.exe)
Copy Directories (see UC_NET_CopyDirectories)
Copy Files (see UC_NET_CopyFiles)
Move Files (see UC_NET_MoveFiles)
Delete Files (see UC_NET_DeleteFiles)
Create Shortcuts (see UC_NET_CreateShortcuts)
Install PIB (restore you contacts, uses last pib file and PPCPimBackup.exe)
if portable mode is disabled in menu, at the end of customization program will read arguments from registry and do these actions:
XDAUC_CopyDirectories (XDA_UC DirCopy feature)
XDAUC_DeletFiles (XDA_UC Delete feature)
XDAUC_CopyFiles (XDA_UC FileCopy feature)
XDAUC_CreateShortcuts (XDA_UC AutoShortCut feature)
4. FS_TaskMgr.exe and PPCPimBackup.exe are used for some actions, program will search for these files in current folder, in \Windows and in the selected XDA_UC folder. Both files are included.
5. Program logs every step – you can see what is happening right now. Errors are shown separately – you can see if something wrong happened.
6. All files processed in strict alphabetical order. For example, if you want to install SlideIT.cab before DanishPack.cab, you can just change names: 1_SlideIT.cab, 2_DanishPack.cab.
7. Program will first search and use XDA_UC\1, XDA_UC\2, … XDA_UC\99 folders (1-99 in alphabetical order), before using base XDA_UC. For example, you want to install some reg files before installing cab files, and you want to install first.cab right after installing these reg files. How to do this?
Go to XDA_UC folder, create subfolder "1" and move these reg files to XDA_UC\1.
Go to XDA_UC folder, create subfolder "2" and move this first.cab to XDA_UC\2.
8. You can structurize your setup folders by using Groups. Programm will show you menu and let to choose what you want to install. Read more here.
Ready!
Release history.
NETCFv35.Messages.EN.wm.cab - install it and you will see detailed descriptions of errors (if any)
If you want to translate program to your language - please follow instruction in included UC_NET_Localization_SRC.zip.
Update 2011/03/20 - new Fr and Sk localizations - http://forum.xda-developers.com/showpost.php?p=12231359&postcount=238

Information for Chef's
UC_NET v0.6
2010/07/07
option to run on any boot you like
you can configure wait timeout
you can set any folder as root folder (not only XDA_UC)
you can display your own Welcome Message in any language.
see attached readme.txt for more details
UC_NET v0.5
2010/07/02
put UC_NET_FirstBoot.lnk in your StartUp folder if you want run UC_NET.exe with these arguments
/CreateShortcuts
/CopyDirectories
/CopyFiles
/DeleteFiles
registry key
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
will delete this UC_NET_FirstBoot.lnk link after first boot.
registry key
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Programs\\UC_NET Customize.lnk"="\\Windows\\UC_NET.exe"
will create shortcut for users in programs menu.
command line parameters
/CreateShortcuts - creates shortcuts for all files listed under
HKLM\Software\XDA\AutoShortCut
/CopyDirectories- copies all directories (including all files and subfolders) listed under
HKLM\Software\XDA\DirCopy
/CopyFiles- copies all single files listed under
HKLM\Software\XDA\FileCopy
/Delete- deletes all files listed under
HKLM\Software\XDA\Delete
read more about XDA_UC commands format here:
http://forum.xda-developers.com/showthread.php?t=562568
UC_NET extends XDA_UC
You can use variables in your commands
and it will work with any localization of windows.
for example, this key will delete UC_NET_FirstBoot.lnk from Startup folder.
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
IMPORTANT - UC_NET doesn't show GUI to user if started with command line.
I think this is the most confusing part of original XDA_UC - your ROM depends on something that user will do on first (second) boot.
Therefor I disabled GUI - If user wants to use customization he will start it from start menu, and of course in this case user will know what's up. Correct me if I'm wrong.
Another difference from original XDA_UC - UC_NET will not install all cab files from windows folder. I can add this feature, but I don't know why Chef will put cab files into his "perfect" ROM. The same with reg files - what kind of chef needs to import reg files AFTER the ROM is ready? =)
please, post your comments and requests!

You can use these variables in you commands:
Microsoft Environment.SpecialFolder Enumeration members:
Code:
Environment.SpecialFolder.ApplicationData
- The directory that serves as a common repository for application-specific data for the current roaming user.
Code:
Environment.SpecialFolder.Favorites
- The directory that serves as a common repository for the user's favorite items.
Code:
Environment.SpecialFolder.Personal
- The directory that serves as a common repository for documents.
Code:
Environment.SpecialFolder.Programs
- The directory that contains the user's program groups.
Code:
Environment.SpecialFolder.StartMenu
- The directory that contains the Start menu items.
Code:
Environment.SpecialFolder.Startup
- The directory that corresponds to the user's Startup program group.
UC_NET v0.5 adds more variables
Code:
StorageManager.Profiles.SDMemory
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\SDMemory\Folder
Code:
StorageManager.Profiles.MoviNand
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\MoviNand\Folder
Code:
StorageManager.Profiles.INAND
- will be replaced in runtime with value of
HKLM\System\StorageManager\Profiles\INAND\Folder
UC_NET v0.9.4.2 adds more variables
Code:
ShellFolders.Windows
- value of HKLM\System\Explorer\Shell Folders\Windows
Code:
ShellFolders.StartUp
- value of HKLM\System\Explorer\Shell Folders\StartUp
Code:
ShellFolders.Recent
- value of HKLM\System\Explorer\Shell Folders\Recent
Code:
ShellFolders.Programs
- value of HKLM\System\Explorer\Shell Folders\Programs
Code:
ShellFolders.ProgramFiles
- value of HKLM\System\Explorer\Shell Folders\Program Files
Code:
ShellFolders.MyDocuments
- value of HKLM\System\Explorer\Shell Folders\My Documents
Code:
ShellFolders.Fonts
- value of HKLM\System\Explorer\Shell Folders\Fonts
Code:
ShellFolders.Favorites
- value of HKLM\System\Explorer\Shell Folders\Favorites
Code:
ShellFolders.Desktop
- value of HKLM\System\Explorer\Shell Folders\Desktop
Code:
ShellFolders.ApplicationData
- value of HKLM\System\Explorer\Shell Folders\Application Data

UC_NET extends XDA_UC with portable commands:
UC_NET_Magic_CreateShortcuts
UC_NET_CopyDirectories
UC_NET_CopyFiles
UC_NET_MoveFiles
UC_NET_CreateShortcuts
UC_NET_Delete
UC_NET_Run
UC_NET_Execute
UC_NET_BackupReg
Just create text file (UTF8 and Unicode supported), fill this file with command arguments and put it to any XDA_UC folder (to root, or to root\1 and so on).
UC_NET_Magic_CreateShortcuts, creates shortcuts for all exe files in given folder and its subfolders.
base filename UC_NET_Magic_CreateShortcuts format:
create_shortcuts_here=folder_with_exe_files
create_shortcuts_here=folder_with_exe_files
...
base filename UC_NET_CopyDirectories format:
to=from
to=from
...
base filename UC_NET_CopyFiles format:
to=from
to=from
new in v0.9.3.1 - You can use "*" and "?" wildcards in UC_NET_CopyFiles, (if you are using mask, destination parameter should be a folder name, as you cannot copy several files to one file)
...
base filename UC_NET_MoveFiles - new command v0.9.3.1, works exactly like UC_NET_CopyFiles, but moves files. You can use it to rename files as well.
to=from
to=from
...
base filename UC_NET_CreateShortcuts format:
link="target"
link="target" params
...
base filename UC_NET_Delete format:
file_to_delete
file_to_delete
directory_to_delete
...
You can use "*" and "?" wildcards in UC_NET_Delete -
for example
Code:
StorageManager.Profiles.SDMemory\_test_del\*.txt
will delete all txt files in my folder _test_del on storage card.
base filename UC_NET_Run format: - new command v0.9.3.1
each line of such file is a path to your application (or script, or anything that can run). UC_NET will start program and wait until it finishes. You can pass parameters to your program. In this case Use quotes around path and then place a parameters.
for example:
"notepad.exe" my_text_file.txt
this will start notepad.exe and pass my_text_file.txt as parameter.
base filename UC_NET_Execute format: - new command v0.9.3.1
works exactly like UC_NET_Run, but doesn't wait for complete and continue with next customization step.
UC_NET_BackupReg - new command v0.9.4.0, uses FS_TaskMgr.exe /regxpkey feature.
format for this command is
filepath=[regkey]
filepath2=[regkey2]
...
See attached examples. Tell me if it's not clear how to use this feature.
You can have more than one file with parameters - just add something to base filename. For example UC_NET_CreateShortcuts1.Settings.Advanced will be parsed as well as UC_NET_CreateShortcuts.txt

HOWTO create shortcuts
A shortcut is a small file containing the name of a target program file that the shortcut represents. The shortcut might additionally specify parameters to be passed to the target program when it is run. Shortcuts are very commonly placed on Start Menu.
option 1: UC_NET_Magic_CreateShortcuts protable command
use UC_NET to create shortcuts for all programs in given folder
Before you read remaining part of this tutorial you need to know
-the name of a folder with target programs (should be real folder you have on your device)
-name of folder for your new shortcuts (any name you like)
now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_Magic_CreateShortcuts.txt file.
There is a line in this file. It is a command, that will be processed by UC_NET when you press "Customize".
Code:
Environment.SpecialFolder.Programs\My Util=StorageManager.Profiles.SDMemory\MyPortableUtils
Format is:
<destination folder>=<source folder with target programs>
You can find '=' character and everything before it is a destination folder
Code:
Environment.SpecialFolder.Programs\My Util
Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.
"My Util" - is a name for new folder under start menu where all new shortcuts created by this command will be stored.
For example, if you want create shortcuts for GPS utilities you can change this part to
Code:
Environment.SpecialFolder.Programs\GPS
everything after '=' character is folder with target programs
Code:
StorageManager.Profiles.SDMemory\MyPortableUtils
Replace this string with your path - folder with target programs, and you ready.
For example, if your GPS utilities are here
\Storage Card\util\gps you should change this part to
Code:
\Storage Card\util\gps
Save your file and put it in your XDA_UC folder.
Start UC_NET, choose this folder and perss [Customize!]
option 2: UC_NET_CreateShortcuts protable command
control and tune every shortcut for every program you want
Before you read remaining part of this tutorial you need to know
-the name of a target program file (should be real program you have on your device)
-name of your new shortcut (any name you like)
now download UC_NET_v0.5_portable_commands_example.zip from the first post and open UC_NET_CreateShortcuts1.txt file.
There are two lines in this file. Each line is a command, that will be processed by UC_NET when you press "Customize".
The second line shows an example how to create shortcut with parameters, it's a bit tricky and for now delete this second line. You can return to it later, when you understand simple shortcut creation.
Let take first line:
Code:
Environment.SpecialFolder.Programs\Test Portable.lnk="\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"
format is
<shortcut name>="<target program file>"
You can find '=' character and everything before it is a shortcut name
Code:
Environment.SpecialFolder.Programs\Test Portable.lnk
Environment.SpecialFolder.Programs - is a variable, that points to the place where all Start Menu shortcuts are stored.
"Test Portable" is a name for my new shortcut - when I open Start menu I want to see this name. You can change it as you wish.
".lnk" - is a file extension, do not change it.
For example, if you want create shortcut for chess game you can change this part to
Code:
Environment.SpecialFolder.Programs\Chess.lnk
everything after '=' character is target program file
Code:
"\Storage Card\_new_distrib\portable\LiteNote\LiteNote.exe"
Replace this string with your target program file path and you ready.
Do not remove quotes.
For example, if your chess gameis here
\Storage Card\games\chess\chess.exe you should change this part to
Code:
"\Storage Card\games\chess\chess.exe"
Do this for all your shortcuts. (copy this line and edit it)
Save your file and put it in your XDA_UC folder.
Start UC_NET, choose this folder and perss [Customize!]
option 3: XDA_UC registry command AutoShortCut
UC_NET can read XDA_UC registry commands, you can use them as well.
These commands are not portable, and you should uncheck "Portable" option in menu or use command line switches. example:
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Programs\\GPS\\SeaSGEE.lnk"="\\Windows\\SeaSGEE.exe"
read more about this type of commands in XDA_UC thread.
And you can make these commands more portable if you use variables - replace \Storage Card with StorageManager.Profiles.SDMemory, this will work even if Storage Card has different name in new ROM.
How to create shortcut with parameters?
MSDN says
Place quotes around the target path so that SHCreateShortcut can correctly parse the target file from any following arguments.
Click to expand...
Click to collapse
example - creating shortcut to enable FileDialogChanger:
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"Environment.SpecialFolder.Startup\\filedlgchgs.lnk"="\"ctlpnl.exe\" filedlgchg 1"

Hello...
...i am a german cook and im cooking ROMs for my Blackstoen (HD) ...
I love XDA_UC and i try your new version...
thanks for aour work !!!!!

Looks great, gonna try it out in my roms
Thanks!

This is nice If you could get away from using the FDCSoft task manager to import .reg files it would be perfect!

Idea looks great.
The only thing I'm missing here is;
*Quick lauch icons on the 3 home screens
-Would like to backup these icons in the exact order and every app should be installed, so each quick launch icon should referr to that perticular app.
After every install of any new energy ROM it is so much work to order and fill in the 3 home screens quick launch icons and apps
Kind Regards
[email protected]
ROM: Energy Dinik style 22nd June
Radio: 2.10.50.28_2
HSPL: 2.08 HSPL

History
[2010/11/02] UC_NET v 0.9.4.4
new command "Refresh Today screen" is added. Just create an empty file UC_NET_RefreshToday.txt in your folder, and the program will refresh today screen.
This command is executed after all other things in the folder, as a last step.
the program will show the message about cprog.exe if you run PPCPimBackup.exe, using UC_NET_Run command. It works exactly like it works when you are restoring pib file.
UC_NET_BackupReg is improved - the program now checks if registry keys exist, and doesn't create empty files if key doesn't exist.
UC_NET_Delete, UC_NET_Copy and UC_NET_Move are improved - all of them support masks now, and all these commands work with files and directories.
for example, now you can delete all files and directories in a folder with one UC_NET_Delete command, if you give it \myFolder\* as a parameter.
if you need a command that works only with files, add "Files" to its name (for example, UC_NET_CopyFiles)
if you need a command that works only with directories, add "Directories" to its name (for example, UC_NET_DeleteDirectories)
small bugfixes
Code:
[2010/10/22] UC_NET v 0.9.4.3
[LIST]
[*] Now the program uses safe code to control power during customization.
This version of UC_NET doesn't use registry keys related to power and back light to prevent device from sleep during customization.
Previous version, like original XDA_UC, used registry to keep back light "always on" - it's unsafe, because if your device was reset before the end of customization, these registry keys were not restored.
[*] Polish localization is updated (thanks to Bysio)
[*] UC_NET current version is added to log file.
[*] Sense SDK message boxes were replaced with standart message boxes to make program more stable (because there are no bugfixes for Sense SDK)
[/LIST]
[2010/10/14] UC_NET v 0.9.4.2
[LIST]
[*] new localizations were added:
Chinese (Simplified),zh-Hans
Polish, pl
Spanish, es-ES
[*] [Cancel] is added to the list of groups.
[*] [Pause] and [Resume] were added to customization window. You can use this to tell program you want to pause before next step of customization.
[*] New commandline parameter /base="path to your folder" - use it if you want to select any of your folders when UC_NET starts.
[*] "Create shortcut" is added to the main menu - use it to create shortcut in Start Menu, that will launch UC_NET and automatically select current folder.
[*] new variables:
"ShellFolders.Windows" - value of HKLM\System\Explorer\Shell Folders\Windows
"ShellFolders.StartUp" - value of HKLM\System\Explorer\Shell Folders\StartUp
"ShellFolders.Recent" - value of HKLM\System\Explorer\Shell Folders\Recent
"ShellFolders.Programs" - value of HKLM\System\Explorer\Shell Folders\Programs
"ShellFolders.ProgramFiles" - value of HKLM\System\Explorer\Shell Folders\Program Files
"ShellFolders.MyDocuments" - value of HKLM\System\Explorer\Shell Folders\My Documents
"ShellFolders.Fonts" - value of HKLM\System\Explorer\Shell Folders\Fonts
"ShellFolders.Favorites" - value of HKLM\System\Explorer\Shell Folders\Favorites
"ShellFolders.Desktop" - value of HKLM\System\Explorer\Shell Folders\Desktop
"ShellFolders.ApplicationData" - value of HKLM\System\Explorer\Shell Folders\Application Data
[*] log file now includes all variables for current ROM in the beginning
[*] errors and warnings summary are added to the end of log file.
[/LIST]
[2010/09/28] UC_NET v 0.9.4.0
[LIST]
[*] UC_NET_CopyFiles is fixed. (it was broken in 0.9.3.1, it always worked as move command).
[*] UC_NET_BackupReg - - new command, uses FS_TaskMgr.exe /regxpkey feature.
format for this command is
filepath=[regkey]
filepath2=[regkey2]
...
[*] system variables are now supported for Copy2Root folder.
see attached UC_NET_v0.9.4.0_test.zip
for example everithing from Copy2Root\Environment.SpecialFolder.StartMenu
will be copied to \Windows\Start Menu if you run 0409 localization of Windows Mobile.
[*] UC_NET_DeleteFiles is renamed to UC_NET_Delete as it can delete files and folders.
[/LIST]
[2010/09/27] UC_NET v0.9.3.1
[LIST]
[*] *.cereg files are supported
[*] program now uses last pib file, this allows you to keep several backups in the same folder and only the latest will be restored with PIMBackup.
[*] empty groups are hidden in the group list, especially root folder
[*] "*" and "?" masks are supported for UC_NET_CopyFiles command (if you are using mask, destination parameter should be a folder name, as you cannot copy several files to one file)
[*] same command files in a folder are processed in strict alphabetical order, (for ex. UC_NET_CopyFiles_0 comes first, then UC_NET_CopyFiles_8)
[*] UC_NET_MoveFiles - new command, works exactly like UC_NET_CopyFiles, but moves files. You can use it to rename files as well.
[*] UC_NET_Run - new command, each line of such file is a path to your application (or script, or anything that can run). UC_NET will start program and wait until it finishes. You can pass parameters to your program. In this case Use quotes around path and then place a parameters.
for example:
"notepad.exe" my_text_file.txt
this will start notepad.exe and pass my_text_file.txt as parameter.
[*] UC_NET_Execute - new command, works exactly like UC_NET_Run, but doesn't wait for complete and continue with next customization step.
[*] Run - special folder (like Copy2Root). You can create Run folder and place your your application (or script, or anything that can run) in this folder. UC_NET will try to execute everything from Run folder. It's good for self extracting archives for example.
UC_NET will wait for every program before it will start next (like UC_NET_Run command).
[*] Execute - special folder, works exactly like Run, but doesn't wait.
[*] Current version of Fr and De localizations are included.
[/LIST]
[2010/07/30] UC_NET v0.9.2.1
[LIST]
[*] Presets from v0.9.1 are replaced with [URL="http://forum.xda-developers.com/showpost.php?p=7413758&postcount=68"]more powerful Groups[/URL]. See attached QuickStart_XDA_UC_advanced_template.zip
[*] Dutch translation - thanks to [URL="http://forum.xda-developers.com/showpost.php?p=7412941&postcount=64"]webpatrick[/URL]
[/LIST]
[2010/07/27] UC_NET v0.9.1
[LIST]
[*] New presets system - more flexible customization.
You can sort you programs and tweaks and install only part of them! (And install another part later)
=) see included UC_NET_presets_template.zip for example.
[*] Arabic localization is ready ([URL="http://forum.xda-developers.com/showpost.php?p=7363890&postcount=51"]thanks to AbdullahSZ[/URL])
[*] Check if ROM security is relaxed (and fix it if needed)
[*] DisableFinalMessage - new option for Chefs. Use it if you want to disable "...Reset Now?" dialog.
[*] You can use comments in your portable commands. Any line that starts with a #, ; or // is a comment.
[*] Fixed bug with Copy Folders. (thanks to log file =)
[/LIST]
[2010/07/22] UC_NET v0.8.1
[LIST]
[*] (W)VGA improvements
[*] Russian localization ready, [URL="http://forum.xda-developers.com/showthread.php?t=709557"]read here to add more languages[/URL]
[*] for chefs - option to disable Exit in menu.
[*] you can add your own message to UC_NET_WelcomeMessage.txt and save put it to your folder. message will be shown when you select this folders. (For example, imagine you have one folder for games, one for GPS and so on).
[*] small tweaks here and there. =)
[/LIST]
[2010/07/19] UC_NET v0.7
[LIST]
[*] new GUI is created using [URL="http://forum.xda-developers.com/showthread.php?t=648906"]Sense Interface SDK v1.39[/URL].
[*] delete command now can delete the specified directory and any subdirectories and files in the directory.
[*] warning is displayed if pim.vol and PPCPimBackup are used at the same time
[/LIST]
[2010/07/07] UC_NET v0.6 new features
[LIST]
[*] for chefs - new option to run on any boot with any folder selected
[*] for chefs - new option to display given message in any language when program autoruns
[*] for users - wildcards are supported for Delete command. for example
[CODE]StorageManager.Profiles.SDMemory\_test_del\*.txt
will delete all txt files in my folder _test_del on storage card.
[/LIST]
[2010/07/02] UC_NET v0.5 new features
new portable command UC_NET_Magic_CreateShortcuts. example.
new variables for SDCards names
rgu files supported (as reg files)
you can open last log from menu now.
internal engine improvement - UC_NET detects ROM files in copy and replace operations.
[2010/06/29] UC_NET v0.4 new features
NEW - portable commands. Now you can put files with commands in your XDA_UC folders. I suggest to use this in-place of XDA_UC registry commands.
New - portable mode (active by default, see menu). "Portable" means no commands from registry will be used. This is good for users. UC_NET will just process selected folder and do not recreate shortcuts defined by Chef and so on. Tell me how do you like this new feature.
pim.vol copy to root is supported.
internal engine feature - delete locked files on next reboot.
[2010/06/26] UC_NET v0.3 new features
now you can use any folder on device as a root for customization.
command line params
/CreateShortcuts - creates shortcuts for all files listed under
HKLM\Software\XDA\AutoShortCut
/CopyDirectories- copies all directories (including all files and subfolders) listed under
HKLM\Software\XDA\DirCopy
/CopyFiles- copies all single files listed under
HKLM\Software\XDA\FileCopy
/Delete- deletes all files listed under
HKLM\Software\XDA\Delete
loacalization support - no more hardcoded strings like \Windows\Start Menu\Programs\, that depends on ROM locale. Use Environment.SpecialFolder Enumeration
for example, this key will delete UC_NET_FirstBoot.lnk from Startup folder.
Code:
[HKEY_LOCAL_MACHINE\Software\XDA\Delete]
"Environment.SpecialFolder.Startup\\UC_NET_FirstBoot.lnk"=""
Package for Chefs is released - tested it in my own ROM
[2010/06/25] UC_NET v0.2 new features
support XDA_UC Copy2Root feature - copy everything from Copy2Root folder to device, without any reg keys.
run MortScript files if any. MortScript must be installed or cooked (you can install using cab and UC_NET of course =).
you can run TaskManager right from UC_NET window.
save log as text file.
timestamps in log.
[2010/06/24] UC_NET v0.1 - first release, preview.[/CODE]

NRGZ28 said:
This is nice If you could get away from using the FDCSoft task manager to import .reg files it would be perfect!
Click to expand...
Click to collapse
UC_NET uses FDCSoft task manager in silent mode. It's almost invisible =)
Anyway, now I finished with most features, and will implement registry files parser. (It's strange, but there is no such thing in WinAPI).

Tried it today and it works perfect! Thanks for sharing! (You got the date wrong in v0.4 change log)

Where can I put folders and files to have automatically copied over. In SASHIMI, you put them in the Auto/Root folder
For example:
\Storage Card\SASHIMI\Auto\Root\Program Files
The folder and all it's sub-folders and contents would be copied to \Program Files
I tried naming a folder within the XDA_UC folder CopytoRoot and DirCopy and neither worked. What do I need to do?

name it Copy2Root
not CopyToRoot

I have an idea for next v0.5:
I see it's not very clear how to create shortcuts with XDA_UC.
Imagine this - you can create shortcuts for all *.exe files in folder (and its subfolders). Just
1. create text file named like UC_NET_Magic_CreateShortcuts.txt in your XDA_UC folder
2. add parameters to it
destination folder=source folder
destination folder 2=source folder 2
and so on.
for example if I add
Code:
Environment.SpecialFolder.Programs\My Utils=\Storage Card\MyPortableUtils
UC_NET will create folder My Utils in Start Menu and then it will create shortcuts for all programs from \Storage Card\MyPortableUtils in this folder.
What do you think? =)

[2010/07/02] UC_NET v0.5 new features
new portable command UC_NET_Magic_CreateShortcuts. example.
new variables for SDCards names
rgu files supported (as reg files)
you can open last log from menu now.
internal engine improvement - UC_NET detects ROM files in copy and replace operations.

Hi. I'd like to use yout app on my Omnia2 with Rapid's Sense 6.5, but there are some issues.
All I did was:
Copy the cabs in an XDA_UC named dir placed in my "install" folder on Storage Card.
Uncompressed the app, started the exe.
Selected the XDA_UC dir.
Pressed customize.
Then it installed MortScript.cab, and none of the others. Instead it says: [13:09:19][13:09:20][\Storage Card\install\XDA_UC][Install CABs silent][ERROR]\Storage Card\install\XDA_UC\cabname.CAB, Exception:wceload.exe returns -2147024891
for all of the cabs I want to install(cabname is always different ofc). Could you help me please?

wceload.exe returns -2147024891, "access denied", on you ROM.
Try this - install one of your cabs manually.
If installing cab by tapping on it, would normally display a security
warning for not being signed, then wceload.exe will fail in silent mode.
In this case you need to relax your ROM security.
This is in the Requirements of original XDA_UC:
"The Rom should have the security relaxed in HKLM\Security\Policies\Polices by setting the value 0000101a to a 1.
So unsigned installations and Mortscript do not give a security error."
Try to add this to your registry.

serfer222 said:
wceload.exe returns -2147024891, "access denied", on you ROM.
Try this - install one of your cabs manually.
If installing cab by tapping on it, would normally display a security
warning for not being signed, then wceload.exe will fail in silent mode.
In this case you need to relax your ROM security.
This is in the Requirements of original XDA_UC:
"The Rom should have the security relaxed in HKLM\Security\Policies\Polices by setting the value 0000101a to a 1.
So unsigned installations and Mortscript do not give a security error."
Try to add this to your registry.
Click to expand...
Click to collapse
I see, thanks. There is a registry app in which I can disable security. I'll do that.
Thanks agai and keep up the good work!

This is pretty awesome. Lightweight alternative to SASHIMI. It works great!

Related

[Beta 0.1.4][25-Mar-09] UCMe2 - Selective backup and SDConfig tool for reflashing

Premise is that there are many backup utilities that will backup/restore either dirs or the whole ROM, but not just for a specific apps settings. There are many ways that dev could use to store their settings for a given app, but getting them all to do the same way is "difficult". However, if program A had it's settings in a settings.ini (or whatever name) and that specific file could be backed up and restored later after a hard reset or new ROM installed, it would make the flashing a ROM even easier since UC came out.
My idea is for an app that works sort of like AppToDate, in that it will parse a collection of ini files in a directory to determine what a given progam uses for it's configuation (files or reg keys) and will backup/restore them.
Basically all that someone needs to do is:
- Extract the UMCe2.zip to a folder on their Storage Card
- Register Mortscript (just click on it once, from this point on you can just click on a script and it will run.)
- Place the INI files that define the files or keys of the app that you'd like to backup/restore into the \Storage Card\UCMe2\ini folder. I have posted a small collection of some INI files as examples
- If you'd like startmenu shortcuts, I attached a few dummy.exe files that you can put into the UCMe2 folder so you can make shortcuts.
- Run the UCMe2_Backup and it will read every INI file in the ini folder and store the backup files in \Storage Card\UCMe2\Backup
- Run the UCMe2_Restore and it will read every INI file in the ini folder are restore the backups
I want the app do do a few things:
* to run start to finish unattended... start the program and it just runs, with no questions asked. (for scheduling purposes)
* the config ini for apps need to be simple to read/edit, so user community can post/share them, or be created by the original app devs
Feel free to create your own INI files and post them here for others to share
I have updated the scripts to include the SDConfigCE tool, to create a new SDConfig.txt based on the files that you have placed in the CABS subfolder.
Additionally, I have included XCopyCE support in the created SDConfig.txt file to copy files placed in the Files subfolder to the device.
(added test sdconfigce.zip to attempt to detect devices with internal storage vs. storage card and SHOULD manage other ROM languages)
Todo list:
add ProcKill and SuggestReboot options to ini file
-optional kill process before backup/restore
-optional suggest reboot after restore if suggested in ini file
add optional Disable parameter to ini file to "turn it off"
add section to backup/restore individual reg values (instead of entire subKey)
-[RegValues]
-Value1= root, subkey, value, data, type
Build in Restore script to run during UC to further automate UC
Provide bulk REG file import, over and above the scripted reg key values provided by INI files
Click to expand...
Click to collapse
Bug List:
Validation key in ini files do not like LONG reg root names, workaround is to change them to HKLM or HKCU as necessary
- change: Validate = HKEY_LOCAL_MACHINE,Software\Apps\Google Maps
- to: Validate = HKLM,Software\Apps\Google Maps
Click to expand...
Click to collapse
Updates in version 0.1.4:
updated bug in restoring of backup files. Now it will create missing directories and actually copy in the files :-0
Click to expand...
Click to collapse
Updates in version 0.1.3:
updated bug in validation logic on the restoring of backup.
Modified Backup script to automatically generate new SDConfig to make that "last minute" backup into a 1 step process.
Click to expand...
Click to collapse
Updates in version 0.1.2:
Created tool to create SDConfig.txt file automatically based on the presence of CAB or XML files in the CABs subfolder
Provided XCopyCE support to do file copy of the contents of the Files subfolder to the device during UC
Updated Menu applet to call the SDConfigCE tool
Click to expand...
Click to collapse
Updates in version 0.1.1:
Replaced dependancy of SKTools with DotFred Taskmanager for reg functions (it is even smaller and faster and freeware)
Changed display of progress in GUI
Added Version numbers in script and GUI
Click to expand...
Click to collapse
Initial release 0.1.0
How to make your own INI file:
The ini file is a very simple thing to make as it is basically just a text file with a few bracketed headers (sections) and values in them.
The easiest way to do so, is to place a copy of the template on your PC desktop and open it with notepad.
Then use the freeware tool CERegEditor ( http://ceregeditor.mdsoft.pl/ ) to read your device's registry... MOST apps save their customization in:
HKEY_CURRENT_USER\Software\ (App Publisher) \ (App Name)
There are plenty of sample files to use as references. If you need help, I'm certain that someone in this community can help.
PocketBreeze.ini
[UCMe2]
appname=PocketBreeze
subdir=PocketBreeze
Validate = HKLM,Software\Apps\SBSH.net PocketBreeze
[regkey]
key1=HKEY_CURRENT_USER\Software\SBSH\PocketBreeze
Click to expand...
Click to collapse
OwnerSettings.ini
[UCMe2]
appname=Owner
subdir=Owner
[regkey]
key1=HKEY_CURRENT_USER\ControlPanel\Owner
Key2=HKEY_LOCAL_MACHINE\Ident
key3=HKEY_CURRENT_USER\Software\Microsoft\Bluetooth\Settings
Click to expand...
Click to collapse
GoogleMaps.ini
[UCMe2]
appname=GoogleMaps
subdir=GoogleMaps
Validate=HKLM,Software\Apps\Google Maps
[Files]
cache-GLM.dat=\Application Data\GoogleMaps\cache-GLM.dat
index-GLM.dat=\Application Data\GoogleMaps\index-GLM.dat
prefs.dat=\Application Data\GoogleMaps\prefs.dat
prefsext.dat=\Application Data\GoogleMaps\prefsext.dat
prefsext2.dat=\Application Data\GoogleMaps\prefsext2.dat
prefsfriends.dat=\Application Data\GoogleMaps\prefsfriends.dat
prefsfriendsmini.dat=\Application Data\GoogleMaps\prefsfriendsmini.dat
strings-all.zlb=\Application Data\GoogleMaps\strings-all.zlb
Click to expand...
Click to collapse
Format of ini file is:
[UCMe2]
AppName = Friendly name for future use
subdir = subfolder to store the files
Validate = condition to look for before restoring (either a filepath and name or reg key... Reg key must be formatted like ROOT,KEY)
[regkey]
filename1 = regkey to backup
filename2= other regkey
[Files]
destinationfilename1.ext = source filename with full path
destinationfilename2.ext = source filename with full path
Just create an ini file for each app to backup
**** Reserved for suggestions or requests
I'm thinking of adding a switch to the ini files as a block to prevent backing up certain apps...
It would be used to "install" an app that only needs file copy like an exe or shortcuts or similar... no sense of copying back those files for backup, as they would never change.
an entry in the ini like:
[UCMe2]
RestoreOnly = 1
Would it make a difference to anyone if I CREATED new app shortcuts, or just copied the old ones for backup/restore?
Another optional ini setting should be:
[UCMe2]
Validate = <fullpath\file> or Reg key
Which would only restore the backups of the appropriate reg key or path\file exists. No sense restoring data for an app if it isn't yet installed.
hmmm...
I've added a bit of a GUI to the backup process, just to see something while it runs. I'll get around to doing the same to the restore mode...
UCMe2.mscr
Code:
ScriptDir = SystemPath("ScriptPath")
IniFiles = ScriptDir \ '*.ini'
StatusType(ST_LIST)
StatusInfo("UCMe2 Backup", "Backup process running")
ForEach F in files (IniFiles)
AppName = IniRead(F,"UCMe2","appname")
SD = IniRead(F,"UCMe2","subdir")
RestoreOnly = IniRead(F,"UCMe2","RestoreOnly")
StatusShow()
StatusMessage( AppName, ST_LIST, TRUE )
If (RestoreOnly = False)
MkDir(ScriptDir \ SD)
ForEach K, V in iniKeys (F,"regkey")
RunWait(Scriptdir\"SKTools.exe","#REXP(" & V & ") #FNAME(" & ScriptDir \ SD \ K & ".reg)")
StatusMessageAppend( "." )
EndForEach
ForEach K, SettingsFile in iniKeys (F,"Files")
copy (SettingsFile, ScriptDir \ SD \ K ,TRUE)
StatusMessageAppend( "." )
EndForEach
StatusMessageAppend( "OK" )
ElseIF
StatusMessageAppend( " - Skipped by RestoreOnly value" )
EndIf
EndForEach
StatusMessage( "Backup Complete" )
WriteStatusHistory( Scriptdir \ "BackupLog.txt" )
StatusMessage( "Window closing in 5 seconds" )
Sleep( 5000 )
StatusType(ST_HIDDEN)
Updated the scripts a bit and made a GUI menu... but that has limited value, beyond my playing with MortScript
here is a template of the current ini entires, but most of them aren't necessary... see the examples I already have in the zip.
Code:
[UCMe2]
appname = (descriptive Name)
subdir = (subfolder name)
RestoreOnly = 0/1 (1 = do not back up this app)
Validate = <fullpath\file> or Regkey HKLM,Software\appname\key (NOTE the comma in the reg key)
[regkey]
key1="HKEY_CURRENT_USER\Software\AppName\etc"
key2="HKEY_LOCAL_MACHINE\Software\AppName\etc"
[Files]
backupFilename.ext=Fullpath to sourcefilename.ext
anotherbackupFilename.ext=Fullpath to sourcefilename.ext
andanotherFilename.ext=Fullpath to sourcefilename.ext
rilphone2.ini
[UCMe2]
appname=Rilphone2
subdir=Rilphone2
[regkey]
key1=HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL
[Files]
rilphone2.dll=\WINDOWS\rilphone2.dll
Click to expand...
Click to collapse
PocketBreeze.ini
[UCMe2]
appname=PocketBreeze
subdir=PocketBreeze
RestoreOnlyIfRegExists = 1
Validate = HKLM\Software\Apps\SBSH.net PocketBreeze
[regkey]
key1=HKEY_CURRENT_USER\Software\SBSH\PocketBreeze
Click to expand...
Click to collapse
I see where I should make a subdir to hold the INI files, and another to hold the backup folders... the prog dir is getting cluttered
I can see another mini app for this process... one to enable or disable individual ini files... (probably just move them to a different folder instead of deleting the ini file)
I don't think Mortscript has that kind of support for forms, so it might remain a manual process for a while. Lemme see how clever I can be
attached pics to post 1
there is a minor issue in the restore script... I have to re-think my logic for the validation determination, but I'll get that
I fixed the restore mode problem. as well are eliminated 2 unnecessary fields from the INI files.. the RestoreIfRegExists (or file)... now it just examines the content of the validate field... if it has a comma in it, it assumes it is a reg entry.
I still need to put in error handling, but I have to figure out how that all works in MortScript.
I also am considering having it backup/restore specific reg values, in addition to the whole key, but much of will be based on MortScript... it is lacking in reg features and I'm currently dependant on SKTools to do the reg functions... I'd much prefer to do it internally, but MS doesn't have a way of determining the regtype that it is reading, so I can't store that so I can restore it to the correct type.
fixed a simple issue of the reg export grabbing the level higher and exporting from there.
let me be the first one to reply the app looks nice, isent it nice that MortScript can be used in many ways?
This is great, I will be watching on this
that's funny how this is like a 2-page OP
but this is a fantastic idea and crazy useful if it comes to fruition. between this and UC or sashimi, flashing roms would have so little downtime..wow....

[Q] can someone help me in configuring XDA_UC?

i have create the folder '\Storage Card\XDA_UC'
now, i dont know how to do with the following instructions.
can someone guide me with this?
maesus said:
XDA_UC installation tips are generally similar as listed here. http://forum.xda-developers.com/showthread.php?p=3611692
I made some modifications so that the sequence of the installation will be like this:
My.tsk file from "\Storage Card\XDA_UC"
and if not present Cook.tsk from Windows Folder.
import *wifi*.*xml and *mail*.*xml provisional registry settings for WiFi and Email setup.
Copy Over User Files.
Check for "\Storage Card\XDA_UC\Copy2Root" if present, Disable Manila from Homescreen then Copy files from "\Storage Card\XDA_UC\Copy2Root" to the root of the device, Then checking for existence of wallpaper_TF3D.png or wallpaper_TF3D.jpg in "\Storage Card\XDA_UC\Copy2Root\Windows" and adding that to
[HKCU\Software\HTC\Manila]
"HomeBackgroundPath"="\\Windows\\wallpaper_TF3D.jp g"
Import registry files from "\Storage Card\XDA_UC\Copy2Root\Windows\manila.reg" If present
Re-enable Manila on Homescreen and redraw it. Now also works for the Sense 2.1 and up versions.
.xdas files in "\Storage Card\XDA_UC"
Silently run Legacy SDConfig.txt from Storage Card
(If your using RunCC.exe or Autorun you do not need to point to or use SDAutorun.exe or SDConfig.txt) Thanks to RoryB
Commands for SDConfig.txt can be found here....
.cab files in "\Storage Card\autoinstall"
This makes it compatible with your storage card's setup for Tom's Autoinstall.
.cab files in "\Storage Card\XDA_UC"
.cab files in "\Storage Card\XDA_UC\Storage", These cab files will be tempted to install to Storage Location. Not recommend using this method. Please use Manual instead.
.cab files in "\Storage Card\XDA_UC\Manual",These cab files will start with Full User interaction capabilities to choose where to install to.
.reg files in "\Storage Card\XDA_UC"
.xml files in "\Storage Card\XDA_UC"
.mscr files in "\Storage Card\XDA_UC"
.cer files in "\Storage Card\XDA_UC"
Create Shortcuts and more from Registry Keys
More information here....
Copy over welcomehead.192.01.png & welcomehead.192.02.png present in "\Storage Card\XDA_UC\Copy2Root\Windows" to the Windows folder.
Copy over welcomehead.96.01.png & welcomehead.96.02.png present in "\Storage Card\XDA_UC\Copy2Root\Windows" to the Windows folder.
Actually everything is copied over from Copy2Root folder to root, but the above Splashcreens get their file atributes removed before this happens.
Add native support for .mscr, .mortrun, .xda, xdai, xdas & .xdaz files
Well, I hope this is good enough to explain everything. Good luck with setting up your XDA_UC!
Click to expand...
Click to collapse
or is that i need to follow this? http://forum.xda-developers.com/showthread.php?t=684865 or http://forum.xda-developers.com/showthread.php?t=366337
i'm a newbie, so, can someone explain more easily?
Try this one:
http://forum.xda-developers.com/showthread.php?t=795711
It's for Energy customized rom, but it will help you understand how xda_uc works.
Just a few tips:
-You can put all the .cab files of programs you want to install in XDA_UC folder, as well as all the .reg files
- Create the folder Copy2Root inside XDA_UC folder. Inside Copy2Root folder, put all the files and folders you want to be copied to their respective places in the phone memory. Use the same path that the original files have, including folders.
For instance, inside Copy2Root I have the folder "Windows" and inside "Windows" I have the folder "Rings" with all the sounds I want to restore at each hard reset.
Another example: if you want to copy something to the root of you phone's memory, just put the file in the Copy2Root folder. If you want to copy a file to the Windows folder, create the folder Windows in Copy2Root folder and inside it put the file you want to copy.
thanks for reply
joooe said:
Try this one:
http://forum.xda-developers.com/showthread.php?t=795711
It's for Energy customized rom, but it will help you understand how xda_uc works.
Just a few tips:
-You can put all the .cab files of programs you want to install in XDA_UC folder, as well as all the .reg files
- Create the folder Copy2Root inside XDA_UC folder. Inside Copy2Root folder, put all the files and folders you want to be copied to their respective places in the phone memory. Use the same path that the original files have, including folders.
For instance, inside Copy2Root I have the folder "Windows" and inside "Windows" I have the folder "Rings" with all the sounds I want to restore at each hard reset.
Another example: if you want to copy something to the root of you phone's memory, just put the file in the Copy2Root folder. If you want to copy a file to the Windows folder, create the folder Windows in Copy2Root folder and inside it put the file you want to copy.
Click to expand...
Click to collapse
then no need to use these software?
* DoeDoe's SDConfig.txt creator.
* .reg -> xml conversion tool
* XML Notepad 2007
* CeRegEditor (can find registry changes)
* DaveShaw's Folder Copy utility
* Registry capture Logger
and, is that i need to locate those reg file from where the application folder in the device then straight away copy them to XDA_UC folder?
Stick with the basics, for now.
Here's what I do: I customize the phone to my needs in every option needed. Then, I grab a registry editor, and search for the entries that correspond to the changes I've made.
Once I find them, I export that registry key to the XDA_UC folder as a .reg file. Then I repeat for all the entries that matter to me.
When hard resetting, XDA_UC will enter those registry files into the wm registry to activate your options.
So, in teory, you will only need a registry editor.
ok...
i will try
thanks again..

WM6 Kitchen ENG/GER for Hurricane (incl. cooked ROM)

Well, at least one is interested and dared to ask, so here it comes:
an old style batch file kitchen
that only deals with application add/remove
has a fixed XIP
and a fixed OS Version
and it cannot dump an existing ROM
If you want to port another OS Version you are on your own, no support in the kitchen, neither for SYS nor for XIP. So basically it is just an end-user "cook your meal" kitchen with fixed ingredients and not a whole chef cuisine.
The folder with all the files you need (and one ready cooked ROM if you want to try that first) is located at mediafire.
It has the same ingredients as my Tornado kitchen (which is based on that of NitroGenious). The OEM parts are picked from the ROMs that exist already and all of these are largely identical in that part. Some special treatment was done in these ROMs on the backlight and the battery driver. You may wish to find the differences yourself - I picked the backlight driver that best fits my needs. Some more changes to the Tornado Kitchen are (as far I remember):
The batch file handling is not caring any longer where you unpack the kitchen, it can work anywhere in the path.
replaced G'reloc (that was not regularly run) with WMreloc that now runs at each build on the dump folder, so you can basically do whatever you like also on the modules part, wmreloc will align the memory slots always in an optimal way.
The template (source) BINFS is now minimized and there are two flavors of it, one with LZX and another with XPR compression. Just copy either one over the 82040000.bin file. The used imgfsfromdump.exe could also take this from the commandline but I like copying files more than editing the batch file.
almost all parts dealing with WIFI have been removed, the ones that are left in the kitchen will do no harm.
Please also see my post on the shortcomings of the Hurricane compared to the Tornado when announcing the kitchen.
You may also want to learn some basics about Windows Mobile to arm yourself for what you intend, have a look at my Beginners Guide to Windows Mobile (prepare for cooking)
So what to do to get ready cooking?
SuperCID your device -> look in the Tornado Kitchen thread where the process of getting that done is explicitly described. Please take special care about backing up the files from that process! Skip that if you did it already.
Put the patched SPL 1.00.100 on the device. This will allow the BIN file to upload correctly later and it will enable your device to get charged from any USB charger. Skip that if you did it already.
Unpack the kitchen to any folder that you like. It should be a dedicated folder for just that purpose but it can be on any disk and at any place in the directory tree (not too deep to stay below the 255 char path limit, I suspect).
(you start from here for subsequent cooking) Run the batch "BuildOS-all-steps.bat" and follow the instructions that the batch file writes to the command window.
After building the ROM is done (XPR builds much faster than LZX but makes 20% bigger ROM files), you find the result in \Flash as OS.BIN
in \Flash you run as.exe and kill active sync (you may have to push the kill button twice)
connect your device in bootloader mode with UI = yes
run mtty and select the "USB" button
press enter to see the command prompt
enter "info 2" (no quotes)
You must read "HTC CuperCID" at the end of the information to continue (step 1. did that)
(you can skip that for subsequent cooking) Now you can load the OS.BIN to the device. Note that there is a handy feature in MTTY to save you from typing the whole path of the OS.BIN over and over again:
Push the "F" Button (3 from right)
enter "l" (no quotes) for the "download" command
enter the full path to the OS.BIN file in the "first time downloaded file name" field
leave the rest as is
Confirm
Push the "1" botton (second from right) and see the action start
You should see progress per loaded block of the BIN file until it is finished loading to RAM. It then takes as much time to load the RAM copy to the ROM onboard the device - this is the crucial part - be patient until the command prompt comes back.
Enter "ResetDevice"
Close the Terminal window in MTTY (Ctrl-F4 or Ctrl-W) - you can keep MTTY open - to avoid the USB polling for the no more connected device to eat all your CPU.
Wait for the device to start up. This will take some minutes - and if you activate the option "Startup and Shutdown Sounds + Animation" you should see the HTC Boot animation after ~30 seconds. Then you will notice that the screen turns white after some time, don't bother. With the red button you get the normal content back. It may happen during that time of first boot that you feel "locked" out of the device - just wait until the screen gets a little "dim" and press the red botton then.
After you passed the initial Welcome screens the device is ready to use. Reboot is very fast (40-50 seconds) and memory is plenty (35MB RAM).
Finally you may want to check out the German localization (100% for all settings and OS parts) or the nice home-screen that I have added.
Thanks to sniper304, a replacement for the ddi.dll is available in the shared folder at mediafire. Replace the content of "<your-kitchenpath>\WORK\OEM\OEMDrivers\ddi.dll" with the archive content. This removes the scrollbar quirk after a new cooking cycle.
reserved for even more future updates
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
sniper304 said:
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
Click to expand...
Click to collapse
You try to copy the files msvcr71.dll to Windows \ system32 direktoris and don't forget to install the Visiual Studio Redistributable Package 2008( requirment of windows to run C++ Programs) on your own computer
Thanks to all!!!Kitchen is working!!!Z have add russian language to my hurricane!!!!
Tobbbie THANKS!!!It's good!
I have not created a file OS.nb.
In order to create, I removed from BuildOS-all-steps.bat line
IF EXIST% kitchenpath% \ OUT (rd / s / q% kitchenpath% \ OUT)
And only then works!
Tobbbie THANKS!!!

Create a universal theme for any ROM!

I have flashed it on my Note, it works well.
I in no way created this, just thought it may be worth while.
The operation of this template is based on the VillainTheme System for the ROM VillainROM.
Link: http://www.villainrom.co.uk/forum/sh...inTheme-System
Credits and thanks to all XDA team that collaborated on the original script: Doctorcete, Stericson, Matt and Seshy​
What is Universal Flasher Tool?
is a complete template that is used to create the simplest possible way a subject flashable from recovery without the need to include or edit files. apk.
This new method uses the file system implementation metamorph (just have to put files and folders on their respective routes), with the advantage that the system identifies and injected into their applications without the need for external application. The subjects are flashed directly from recovery.
What are the advantages of this method compared to metamorph or traditional flasheables issues?
Do not include. Apk complete, only the files you want to include in the subject.
A theme created with this template is valid for any rom, even among different phone roms (the tests have been performed with SGS2 and Nexus one).
Optionally, the template can include complete files if desired, can even be used to install applications not system.
Does not depend on external applications like metamorph because it flashes directly from recovery.
Operation of the template
at the end of the post are attached a number of considerations to take into account, but basically works like this:
Identify the applications that want to thematize and checks that exist in the rom. Once the check, the system compares folders that will be introduced as well as files and injects them into the apk as long as the new file exists within the apk. This has been thought well to avoid filling an apk with files that do not belong because they are from another rom or because you made a mistake when typing the name, for example.
Once injected the files takes a zipalign the apk to optimize RAM usage.
Alternatively, if the topic includes external files or copy them to install applications on your path.
At the same time to be using the item, the system will generate a backup of changed files and automatically creates a file. Zip flashable from recovery, in case something goes wrong or do not like changes to previous state.
Finally, it also generates a small log with the outcome of the whole process is recorded in SD to verify that all changes are properly implemented.
How to create and edit your own theme
Download the template from the attachment in this post or the link below.
Recommended Tools: 7zip to include files and browse the file system (you can also use winzip or winrar without problems) and Notepad + + or any other plain text editor to edit the name of the mod.
Once downloaded, open the template double-click will observe and folders inside a file in the root. Here's that are in each folder and how to create the theme.
MOD.config file: (new from version 3.0) is an editable text file (recommend Notepad + +) where in addition to establishing the name of the MOD to set different parameters of the template.
MOD_VERSION= Name (name of the mod to be displayed in the system properties after the name of the rom. Are cautioned not to put a name too long and try to avoid as far as possible in the blanks.
CLEAN_MORPHING = not (compare the new files before injection into the apk, only enter if the file already exists. Turning the option dramatically reduces speed)
V4_MORPHING = yes (support to manage compatibility with existing folders-v4 system in some applications).
DO_BACKUP = yes (enable or disable the creation of the flashable backup from recovery to restore the existing theme).
LOG_ENABLED = yes (enable or disable the creation of a log file with the results of the process).
SCREEN_LOG = yes (shows the process of recovery on the screen or not. important notices are always shown even if the option is disabled).
Optionally, you can set a different path for memory cards (no need to touch these lines in most cases, you should not touch):
default_internal_sdcard = / EMMC
default_external_sdcard = / sdcard
Optionally, you can add special commands to mount partitions (no need to modify these lines in most cases, you should not touch):
mount_system = mount / system
mount_data = mount / data
README.txt:
Includes some additional instructions on the operation and the license. Please read before using the template to create a theme (in English). Carteta / tools: is the folder where you have placed the scripts and binary files necessary to flash the issue and make subsequent restoration. You do not need to touch anything in this folder to edit the theme. From version 3.0 has been deleted because busybox binary is no longer involved in the process. folder / META-INF folder system which includes the signature file and the script to launch from recovery. It is recommended not to touch. Folder / MORPH: This is the template folder where files should be included with the theme. In turn, the folder is divided into two subfolders called / data (for applications theming system NO) and / system (for theming system and applications framework). In the / MORPH / system / app files are included for the applications and / MORPH / system / framework for the framework files. NOTE: NO application theming system in / MORPH / data / app / myapp.apk supposed to change the digital signature, so from that time can not be updated from the market or will you installed in the market (like if it had been installed by 'other means' non-statutory ...). Therefore, we do not recommend any downloaded application thematize the market. You are advised that the complaints do not come then ... For each application you want to thematize must open a new folder called / nombre.apk (eg / Contacts.apk if you want to change the system application Contacts.apk) . It is necessary to respect the use of upper / lower case. Within each of these folders you have to respect that there are logical paths within applications, so that the files would have to place them in folders named / res / drawable, res / drawable-hdpi, etc ... It is the same structure metamorph an issue, so any item is readily convertible metamorph simply dragging folders.
No need to create any control file or anything like . The system is responsible for reviewing the folders to see what applications you want tematitar.
Folder / Xtras / system:
in this folder is where, if desired, can include files or complete applications that you wish to flash in conjunction with the subject. For example, sound files, bootanimation, scripts, complete applications, etc ... Folder / Xtras / data: in this folder is where, if desired, can not add applications to be installed system during flashing. Folder / Xtras / sdcard: in this folder you can add files to make copied to the SD card, as packs of icons, sounds, videos, etc ... to take into account considerations
Always respect the use of uppercase / lowercase letters in the names of files or folders and logical paths located within the apps.
With this system the themes may be universal, although depending on the type of files a user input may cease to be:
If you only include image files theme is compatible with any rom from any phone.
If you also include. xml may only operate in one rom, but can still work on future updates of it.
If resources are included for translations (resources.arsc) the issue would only be valid for a particular rom.
The. Zip with the issue is not necessary for you to sign flashearse, and is valid for CW-Recovery and Recorevy-RA. If you do not have to remember signing off signature checking before flashing.
Original Thread:http://http://www.htcmania.com/showthread.php?t=258333
Also:http://forum.xda-developers.com/showthread.php?t=1474686
On the galaxy s 3 us version most of the recoverys are not reading the external sd so should I changed the mounts on the script?
Sent from my SGH-T999 using Tapatalk 2

[APP][CE]CeRegistrySave & CeRegistryRestore

It has always annoyed me that I can't create in WindowsCE with hive-based registry any system restore points, as is possible with desktop Windows. Also MortScript has no such features. Have therefore decided to create two small WindowsCE command-line programs: CeRegistrySave & CeRegistryRestore.
CeRegistrySave Usage:
Code:
CeRegistrySave <Full-Path-To-SREG-file>
Example: CeRegistrySave.exe "\Storage Card\FOO.sreg"
MortScript example: RunWait("<Full-Path-To-CeRegistrySave-Executable>\CeRegistrySave.exe","\Storage card\FOO.sreg")
Note, that if no full filepath name passed then by default in \My Documents a backup-file will be created that consists of UNIX-format timestamp as filename and ".sreg" as filename extension.
CeRegistryRestore Usage
Code:
CeRegistryRestore <Full-Path-To-SREG-file>
Example: CeRegistryRestore.exe "\Storage card\FOO.sreg"
MortScript example: RunWait("<Full-Path-To-CeRegistryRestore-Executable>\CeRegistryRestore", "<Full-Path-To-SREG-file>")
Note that if no full filepath name passed then nothing happens; who wonders. Also be aware that a soft-reset is automatically performed.
Both CeRegistrySave and CeRegistryRestore (incl. its source code) are attached.

Categories

Resources