PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro 2 (http://forum.ppcgeeks.com/forumdisplay.php?f=97)
-   -   Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15} (http://forum.ppcgeeks.com/showthread.php?t=113189)

El Ha$oN 10-17-2010 01:58 AM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-08-12}
 
Quote:

Originally Posted by NinjaDuck (Post 1973881)
Are you organizing in to folders, or just changing the order?

into folders and the order

NinjaDuck 10-17-2010 11:17 AM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-08-12}
 
Quote:

Originally Posted by El Ha$oN (Post 1975334)
into folders and the order

The proper thing to do is to build ROM specific scripts to move the files and capture the registry info.

The cheap way is to backup your start menu --> Falsh the ROM --> Delete Start Menu --> Restore backup.

Registry info is here:
HKLM\Security\Shell\StartInfo\Start\
Try DotFred task manager, total commander, or Resco Registry to export the parts you need.

Some of the script tutorials in the begining of the thread should help you with the file operations.

Here is a Mort script I use to backup some of my information:
Code:

StatusHistorySize(10)
StatusInfo( "UC Setting BAckup", "by Ninja Duck" )
StatusMessage( "Backing up data", ST_LIST, TRUE )
StatusMessage( "Opera 10 Settings", ST_LIST, TRUE  )

MkDir("\Storage Card\Backup")
MkDir("\Storage Card\Backup\Program Files\")
MkDir("\Storage Card\Backup\Program Files\Opera Mobile 10")
MkDir("\Storage Card\Backup\Program Files\Opera Mobile 10\Profile")
MkDir("\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage")

XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\1\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\1", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\2\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\2", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\3\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\3", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\4\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\4", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\5\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\5", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\6\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\6", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\7\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\7", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\8\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\8", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\9\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\9", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\10\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\10", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\11\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\11", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\12\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\12", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\13\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\13", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\14\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\14", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\15\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\15", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\16\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\16", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\17\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\17", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\18\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\18", TRUE, TRUE )
XCopy( "\Program Files\Opera Mobile 10\Profile\DataStorage\19\*.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\DataStorage\19", TRUE, TRUE )
MkDir("\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\secure")
XCopy( "\Program Files\Opera Mobile 10\Profile\secure\wand.dat", "\Storage Card\Backup\Program Files\Opera Mobile 10\Profile\secure", TRUE, TRUE )

StatusMessage( "Audio Manager Settings", ST_LIST, TRUE  )
MkDir("\Storage Card\Backup")
MkDir("\Storage Card\Backup\Application Data")
MkDir("\Storage Card\Backup\Application Data\HTC")
MkDir("\Storage Card\Backup\Application Data\HTC\AudioManager_Eng")

XCopy("\Application Data\HTC\AudioManager_Eng\*.vol", "\Storage Card\Backup\Application Data\HTC\AudioManager_Eng", TRUE, TRUE )
 

StatusMessage( "RSS Feeds", ST_LIST, TRUE  )
MkDir("\Storage Card\Backup")
MkDir("\Storage Card\Backup\Program Files")
MkDir("\Storage Card\Backup\Program Files\RSS Hub")
MkDir("\Storage Card\Backup\Program Files\RSS Hub\ChannelData")
XCopy("\Program Files\RSS Hub\ChannelData\Channels.opml", "\Storage Card\Backup\Program Files\RSS Hub\ChannelData", TRUE, TRUE )

StatusMessage( "YOUTUBE", ST_LIST, TRUE  )
MkDir("\Storage Card\Backup")
MkDir("\Storage Card\Backup\WINDOWS")
MkDir("\Storage Card\Backup\WINDOWS\YouTube")
MkDir("\Storage Card\Backup\WINDOWS\YouTube\Favorite")
XCopy("\WINDOWS\YouTube\Favorite\*.*", "\Storage Card\Backup\WINDOWS\YouTube\Favorite", TRUE, TRUE )

StatusMessage( "REGISTRY BACKUP", ST_LIST, TRUE  )
RUN("\Windows\dotTaskMgr.exe", "/regxpkey \\Storage Card\\Backup\\Manila-Layouts.reg [HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\CHT\Layouts]")
RUN("\Windows\dotTaskMgr.exe", "/regxpkey \\Storage Card\\Backup\\Manila-Home.reg [HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\Home]")
RUN("\Windows\dotTaskMgr.exe", "/regxpkey \\Storage Card\\Backup\\Manila-LM.reg [HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila]")
RUN("\Windows\dotTaskMgr.exe", "/regxpkey \\Storage Card\\Backup\\Manila-CU.reg [HKEY_CURRENT_USER\Software\HTC\Manila]")
 
StatusMessage( "Finished" , ST_LIST, FALSE)
Vibrate(550)


frozenbutt 01-01-2011 08:18 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
A quick question. I just flashed after spending hours trying to make sure it would go well. hahaha no luck. I used xml provision maker to create my xml files and did the rest with settings exporter from NRGZ28 and export settings in sense. Flash went ok but I didn't get my mail, wifi or a bunch of other settings back. It appears that XDA_UC didn't run my xml files.

Do they have to be saved as unicode the same as reg files? I created them on my pc so they were probably ansi.

Is there anyway of provisioning xml files one at a time or seeing what is going on or is there a switch for creating a log file. I may have errors in the xml files that I don't know about and with the Energy rom's running of xda_uc in the background I don't see what is happening. I know I got all my cabs installed but not much else.

ty

NinjaDuck 01-01-2011 10:13 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
Quote:

Originally Posted by frozenbutt (Post 2028071)
A quick question. I just flashed after spending hours trying to make sure it would go well. hahaha no luck. I used xml provision maker to create my xml files and did the rest with settings exporter from NRGZ28 and export settings in sense. Flash went ok but I didn't get my mail, wifi or a bunch of other settings back. It appears that XDA_UC didn't run my xml files.

Do they have to be saved as unicode the same as reg files? I created them on my pc so they were probably ansi.

Is there anyway of provisioning xml files one at a time or seeing what is going on or is there a switch for creating a log file. I may have errors in the xml files that I don't know about and with the Energy rom's running of xda_uc in the background I don't see what is happening. I know I got all my cabs installed but not much else.

ty

To diagnose:
  1. Empty your XDA_UC folder and put one XML file (that did not run) in the root of this folder.
  2. Run XDA_UC from the tools folder. Did it work?
If it worked, then there was something wrong with the directory you had the file in.

If it does not work, feel free to PM me the contents of of the XML and I will take a look.

frozenbutt 01-01-2011 10:30 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
I will try that out. I did find out to my embarrassment that I should have checked my "great utility", xml provision maker. Seems that there is an issue with the files that it creates.

http://forum.ppcgeeks.com/htc-touch-...ml#post1390450

garbage at the beginning of the file. I had to install another program just to see it and clean it out. Also found that this thing doesn't store the passwords so I am looking for something to create the htcaccountmanager xml. The email accounts I will go back to makisu.

I am learning but I seem to have a lot of bumps on my forehead. It will be nice once I have this all done. Then I won't be so reluctant to flash and try new roms.

frozenbutt 01-02-2011 01:50 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
Can you tell me in what order XDA_UC processes files. I noticed that when it did run and my pim backup file was processed it could not find my email accounts which tells me that it must have run the pim backup restore before the email.xml file. Anyway I can effect the order in which it processes files?

NinjaDuck 01-03-2011 12:40 AM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
Quote:

Originally Posted by frozenbutt (Post 2028474)
Can you tell me in what order XDA_UC processes files. I noticed that when it did run and my pim backup file was processed it could not find my email accounts which tells me that it must have run the pim backup restore before the email.xml file. Anyway I can effect the order in which it processes files?

I am not an expert in XDA_UC. I only use the portions I use:

XML --> CAB --> REG --> MSCR

There are more things it does if you need them.

You can get more information here:
[UC]XDA_UC Autoconfiguration User2User Thread

BumRush37 03-16-2011 11:52 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
I need some mortscript help please. After all the research I've done, I thought the following would work:

Filename is My.mscr and it is placed in my XDA_UC folder on my storage card (using NRG ROM). This is what is in the file:

Copy("\Storage Card\My Documents\HOME.lnk","\Windows\Start Menu\Programs\")
Copy("\Storage Card\My Documents\Home.png","\Windows\")
Copy("\Storage Card\Program Files\WinMoSpeed\WinMoSpeed_710.lnk","\Windows\Sta rtUp\")
RegWriteString("HKLM","Security\Shell\Startinfo\St art\HOME.lnk","Icon","\Windows\Home.png")
RegWriteDWord("HKLM","Security\Shell\Startinfo\Sta rt\HOME.lnk","Rank", 999)
EXIT


None of the files get copied, but the registry keys are created (after a reset of course). I can't figure out why the files are not copied.

Thanks for any help!

Bum

BumRush37 03-16-2011 11:57 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
forgot to subscribe to thread, so had to post again... sorry for taking up the space with a useless post

frozenbutt 03-23-2011 08:33 PM

Re: Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
 
An xml question...

Is there a parm for the toggle for deleting files off the server when you delete them from the phone. I keep forgetting to change this after a flash and it defaults to delete from server. Then when I get home all me emails from that day that I read and deleted are gone forever. I would like to just add a parm to change that to "not delete from server" to my xml for email accounts.


All times are GMT -4. The time now is 05:19 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0