yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] vti2000x:
Remap GPS Button on Action Screen

This will probably be useful to the small percentage of you who use Garmin or another non-Google maps, GPS software:

The values for "APP_0" to "APP_11" can be remapped to your needs accordingly. And, of course, "Path" should be set to whatever you want to run.

Hope somebody finds this useful!

Edit: My browser (or the forum) seems to be processing the post in a funny way. "\ActionScr een\" in the path string should read as "\ActionScreen\"
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] thefa:
Hi,

Anyone knows where to set the Advanced Email option field "My email addresses"? This field is useful to avoid sending a mail to yourself when doing "reply all"... I could not find an example with this field set via wap provisioning.

I too am interested in how to set the signatures for the various accounts.

Also, how to set the "save attachements on SD card"?

Thanks,
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
not sure if it's worth the effort to make an exe then have to delete the link, etc. not too familiar with how to make exe's anyways. i was looking for the actual settings for the att provisioning earlier today but couldn't find anything. giong to copy the carrier provisioning exe to my computer and see if i can figure out where the settings are stored for that.

as for the keyboard layout (i copied the reg values in the tegic folder), it worked for the most part, but the function button works as a shift button, and hte ok button works as a function button...? i can deal with it for now as i wont have to run carrier provisioning with these settings :)

i tried out the exchange code posted on page 2 (i think) and it worked liek a charm! now i have to figure out how to do update intervals.

also, still tryng to figure out how to get the wifi cabs (from xml) to work. haven't had much success so far as the settings load but my phone still can't connect to the network.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
Probably you have the incorrect setting in the xml. Search in the UC thread, there are 2 members posting 2 small GUI programs to make the xml and cab file for wifi setting. I used 1 of them to make my wifi cab and have no problem connecting so far.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
i used the one that allows you to make email or wifi or something else? xml files. which program did you use? maybe i should try that one if it's not the same one
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
That the one I used. I have to make change to the Encryption value since that program didn't have the option for AES encrytion (value ="6").

Here is mine wifi xml provisioning

<wap-provisioningdoc><characteristic type="CM_WiFiEntries">
<characteristic type="YourNetworkName">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="YourNetworkName">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Hidden" value="1" />
<parm name="Encryption" value="6" />
<parm name="Authentication" value="4" />
<parm name="KeyIndex" value="1" />
<parm name="NetworkKey" value="YourNetworkKey" />
<parm name="KeyProvided" value="0" />
<parm name="Use8021x" value="0" />
<parm name="EAPType" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
yep, mine looks exactly the same, just configured for tkip instead of aes. no idea why it won't work. i'll check it again next time i flash
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Lewelynn:
The 23XXX roms usually have this feature (the ones with the start menu at the bottom) whereas the 21XXX roms only have the option of move icon up or down when you hold the icon for a few moments
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] telder:
+1 to that!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Copying Multiple Directories

In my windows folder I have a number of files and folders containing files that I want copied over after a flash. I put them on the storage card in a directory called 'Files to Copy'. Under that is a directory called Windows that containes the files I want copied, as well as sub-directories containing further files, or files with directories.

If I use the below command in a reg file, will it copy all the files and directories over?

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]

"\\My Documents\\Windows"="\\Storage Card\\XDA_UC\\Files to copy\\Windows"

If not, how do I achieve this?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
Look up in post # 24. JVH3's posted how to copy files/directory to windows folder.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Thanks, I did see that. The issue is, I'm trying to copy folders and files not only to windows, but to Program Files and Applications Data also. I'm actually copying directories which contain files and other directories and files. What I'm trying to find out is that if I copy the top directory, do all files, sub-directories and files in those sub-directories get moved over?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Only one way to know for sure. Do it.

I use it to copy links to Windows\StartUp by putting them in XDA_UC\Sense\StartUp

Granted the StartUp folder exists, but I don't think that matters.

Try what you are wanting to do and let us know the results.

EDIT

putting it under the Sense folder only works for the windows folder and subfolders of the windows folder.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Save Signatures

I've been doing a bunch of reading and have found a way to restore outlook signatures:

http://xdaforums.com/showpost.php?p=6341739&postcount=7696

I'm thinking about creating one similar to this, but extending it to allow settings signatures for all accounts, not just outlook.

Too busy tonight, but maybe this week if I get motivated.

The way I'll do it is that just like the existing one, the program will run at startup.

It will apply the cahnges.

Then it will exit.

So, you will see the changes after the soft reset.

This will also ensure that the accounts are set up.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Well I did it, and it didn't work. I had no success with the registry update using Reg files so I converted to a CAB and that worked. I got the Exchange, WiFi and Bluetooth to auto config (did't have to resync with the car anymore). All of my settings I usually update with BSB and AdvancedConfig were updated. Placing links in the XDA_UC/Startup folder copied the links start menu.

The issues I have remaining are:

1. Copying the files from Storage card to memory

2. Getting the Sense2.5/ CHT to auto set up. I copied all the related registry entries (found them by comparing last ROM before and after set up), but it did not work. I had to go to CHT editor recall the set up.

3. Can't get the 'People; short cuts to populate.

4. Trying to get MarketPlace and related programs to automatically be there (probably this issue is due to the copy issue in 1)

5. Didn't reload stocks (again I think related to item 1).

I'm thinking of trying a Config.txt or Mort script to drive the copying. Which method is preferred?

Please give input on 2 and 3.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Which version of XDA_UC in NRG ROM

Whatverison of XDA_UC is in the latest ROM? Is the latest folder/file copy modes supported?

I see in the Apr 23rd change log it says XDA_UC is 'tweaked'. How? I remember from somewhere (although I searched this thread and couldn't find it) that some of the directory names have been changed
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
I guess I gotta' get busy here!

Apparently, this thread made the front page over at the XDA Portal! :eek:

Now that my busy week is over, I'll have to find time (trying to buy Rush tickets presently) to update the first posts on this here thread. Thanks to everyone for your initial input, and let's keep it up! :D
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
To restore the cookie settings I use the attached file.

Edit it for the location of where your backup file is.

Rename it to mscr.

Also, Wait until it says restarting Sense before you click Yes to soft reset. I have found that if you click yes too soon, this step has not completed.

File is not in Unicode. That is why it has not been working. Open in notepad.

Make needed edits. Save in Unicode.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
For Item 3,

Are you using Sense 2.1 or Sense 2.5?

For Sense 2.5, it should automatically restore this when syncing with Exchange.

I have Found it to not be 100% reliable though. If something locks up during your initial active sync, it does not always work. There is an app - Fav People Backup. It's cooked into the Rhapael ROMs. Not positive if it's in the Rhodium Roms. But it's designed for WVGA and easy enough to install if it is not. If it's cooked in, it's under Start->Tools.

If not, I probably can find it. I used to install it before it was cooked in.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Why are people making cabs for provision files?

Just save the xml file as Unicode and they work.

Then you have an easily editable file to update your password in.

Otherwise, you need to rebuild the cab each time.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Button mappings

Does anyone know where the settings for button mappings are located?

Not the ones through Tarkin's keyremapper.

But the ones set through Start->Settings->Personal->Buttons

I like to set PTT to Comm Manager and Long Send to Voice Command.

But the Voice Command 23081 cab I use sets PTT to Voice Command. I decompressed the cab and examined the setup.xml, and have found no place where the button would get mapped to PTT. So, I am thinking it may be a file, or something that it sets on first run or the setup.dll for the cab.

Since Cabs are processed first, a reg file should fix it if it's a registry setting.

In order for my hands free bluetooth car stereo to launch voice command, it needs to be mapped to long send.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] digitalme!:
Start Menu

So i noticed a Tweet from Energy about adding a control to setup the startmenu by adding links in XDA_UC\StartMenu. I've been trying to find more information about this but this is the only relevant forum coming up in search so i hope it's the right place.

With his mod is it possible to "move around" links that already exist in the startmenu after flash? For instance move \Tools\PIMBackup to \Applications\PIMBackup? Also is it possible to move links for applications you're installing via UC, i.e. \Resco Explorer to \Tools\Resco Explorer?

I've been figuring out how to do this via Shasimi and/or Mortscript but i don't want to waste the effort if it can be done solely via UC.

Thx
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
See this post in this thread for amort script that will allow you to move a shortcut to a different folder.

http://xdaforums.com/showpost.php?p=6319234&postcount=25

It's the rename method

And you just create a text file with an extension of mscr

Stick it in your XDA_UC folder.

To move something is a 1 liner.

It's so easy, a caveman could do it.

See if Geiko notices
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
For 3: I tried backing up the people reg entries but on my next flash, i had random people from my contacts loaded to my fav contact page. About 4/15 of the favorites were my actual favorites, the rest of them were just random.

4: I've been reinstalling marketplace manually each time and then going through and installing my programs from there: is there a better way to do this? i usually reinstall 4-5 programs but only do it if im sticking with a rom for more than 2-3 days.

Back fav people up is included in raph and rhodium, but it doesn't find any of my favorites anymore. I use exchange with my gmail account and it takes 2-3 days for my favorites to even appear on the favorites page. if they do, it's only some of htem and it slowly adds people over time. not sure why it does this, but it's annoying! i found thought that when i used to sync contacts with outlook that it would do it much faster (if not when contacts are loaded). Not sure what the difference is - the contacts are hte same, i just do OTA sync instead of having to wire up to my laptop every flash.

congrats!!!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
The way I identified the regsitry keys to update was to export the registry using CeRegEdit immediately after the new ROM was installed and set up completed. I went in, made the changes using the manual methods - B2B, Advanced Config etc., exported the new registry and then used CeRegEdit to do a compare and export only changes. You'll get a bunch of items that are system-state type variables, but the ones you need will be obvious.

The problem is that not everything is in the regstry. I also dumped by phone memory to a file before and after update to identify config files within the file structure. My thinking is that once a new ROM is loaded, if I change the relevant regsirey entries, and copy the files to the right places, after a RESET it should be like they were installed the offical way
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
Maybe I'm just researching too many different topics at once (I can't even tell you how many browser tabs I've got open right now! :rolleyes: ), but one question remains with me: Using XDA_UC (not messing with adding Sashimi or anything else to make it more difficult for the laymen (me!)), is there a simple way to import files, like *.dat's, from say: \Application Data\GoogleMaps ...?

Looking at the 'tree' structure of XDA_UC, I see this entry:

Copy Over Folders From SD to Storage

"To" >> "From"

[HKLM\Software\XDA\DirCopy]

"\\My Documents\\Some Folder"="\\Storage Card\\Some Folder"

or

"\\Windows\\StartUpDisabled"="Makedir" (to only make a new directory)

Does this move the folders WITH file content, and apply it before rebooting? Am I missing something?

Is there a way to do this with an *.xml entry otherwise?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
I already tried it but somehow this way is not working with NRGZ rom, well as least with the ROM in my sig.

I don't know whether it can be done with xml.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
I tried this same approach. It didn't work for me either.

I'm now going to have a go at developing a MortScript (or sowething like that) to do the copying and folder generation. If it works, I'll come back and post it.

IF you figure out how to get the above to work, let us know
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
If you need the MortScript manual, get it here

http://xdaforums.com/showpost.php?p=3611691&postcount=1
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
Awesome! I'm thinking about redoing the first few posts in this thread, and combining everyone's input into, I guess, a Tutorial; So if you can do that with MortScript, it's got to be included! :D

EDIT: Come to think of it though, if you're going to go through the extra steps of using MortScript, why not just go the Sashimi route, the devil's advocate asked???

Haha! If I didn't have such a predilection to good beer, I'd be on it rght now, but alas! ;)
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] crachel:
Here's a few MortScript examples for anyone who needs them:

Delete File:

If ( FileExists( "\Windows\StartUp\Mortscript.lnk" ) )
Delete ("\Windows\StartUp\Mortscript.lnk")
Endif

Delete Directory:

If ( DirExists( "\Windows\Start Menu\Programs\S2P" ) )
DelTree("\Windows\Start Menu\Programs\S2P" )
Endif

Create an Icon:

RegWriteString( "HKLM", "Security\Shell\StartInfo\Start\Connections\Bing.lnk", "Icon", "\Storage Card\Icons\bing2.png" )

Move a link from Start Menu

If ( FileExists( "\Windows\Start Menu\Programs\WIFI Remote Access 1.6 Premium.lnk" ) )
Move( "\Windows\Start Menu\Programs\WIFI Remote Access 1.6 Premium.lnk","\Windows\Start Menu\Programs\Connections","TRUE")
EndIf

Create directories I think with MkDir..

As a side note, I don't really understand why Sashimi is considered for advanced users. Install it to your SD, put cabs in Auto->Cab, files you want in Windows in Auto->Root->Windows, etc, reg files in Auto->Reg.. can't really get much easier. Setting custom REG exports and .AUTO files is tricky and probably advanced but why reinvent the wheel here?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Curious as to why you chose not to post your findings on which reg entries and or which files.

Your answer applies to every request for info on what settings control what.

It's pretty obvious that a reg diff and file diff after each settings change will lead you to the keys and files.

There's little point in everyone figuring out every answer. If we all post answers we find, then we don't all need to spend our time on every problem.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
My whole impetus for starting this thread was for all 'Energy' users (now that NRGZ28 has implemented XDA_UC) to have the simplest way to get all their settings back. Nothing wrong with Sashimi (it may in fact, be how I go about this process, and tutorial, in the future), but I really wanted to find a 'out-of-the-box' experience for everyone, noob to expert. Adding another UC system within the first, to me at least, seems, yeah, a little on the 'advanced' side...

But if that's the only way to do something... Like I said, it may be included...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
I think (IMO) that it's simply because we all use different settings.

ElanMike's methodology is sound (I just downloaded CeRegEdit myself, and found it a great tool, btw!), and he's posted his knowledge for us all to utilize.

BUT, I would like a little more knowledge on that, especially concerning config and *.dat files...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Registry location where key mappings are set

A great tool is ASTools specifically the app PRUN.exe

To export the registry just go to a command prompt with your phone connected via active sync or device center

C:\Program Files\ASTools>prun.exe dottaskmgr /regxpkey \Storage Card\reg1\HKLM1.reg [HKEY_LOCAL_MACHINE]

make changes

C:\Program Files\ASTools>prun.exe dottaskmgr /regxpkey \Storage Card\reg1\HKLM2.reg [HKEY_LOCAL_MACHINE]

Copied the reg1 folder from my storage card to computer and used WinMerge to compare.

Long Send for the Raphael is

[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C6]

@="\"\\windows\\voicecmd.exe\" -ptt"

And the push to talk is here:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C1]

@="\\Windows\\AppButtons\\Comm Manager.lnk"

Incidentally, I also checked the HKCU and there were no real changes there. Just stuff like the active app and things.

It doesn't appear that any of those mappings are related to files either.

[EDIT]

I have verified that only these reg entries are all that is needed for those 2 keys.

I actually restored all values in the keys at:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C6]

[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C1]

And all worked perfect.

No files needed updating. Just a soft reset after the restore.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
With Fav Backup, you can backup, and you can restore.

So, if they don't come back right away, just use the app to restore.

But, I have found that they only don't restore if you start hammering on the phone before active sync has finished processing all of the contacts.

After the flash, it detects the network.

Then, I Start->Internet->Active Sync

Then, I tap on sync about every 10 seconds, until it starts.

Then, I leave my phone alone until it has finished.

Then, if I strictly do it that way, my fav people are restored correctly.

If I get curious and start looking at other things first, then they don't always restore.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Downloaded the manual. That's awesome.

And here's how to Copy Folder for others.

So to Copy a directory from your storage card.

Create file. Call it CopyThisFolder1.mscr.

Edit it with notepad.

Put 1 line in it

XCopy( "Storage Card\TheDirectory\*.*", "\TheDestination", TRUE, TRUE)

But look in the quote: The target must be an existing directory.

So, you might need to create the directory first.

Save the file.

Put the file in your xda_uc folder.

The way mentioned in noonski's thread with the registry doesn't work in Energy ROM's.

But how is creating that 1 liner mortscript more difficult than the way mention in noonskis XDA_UC thread?

Unless you've never seen a command prompt and used xcopy or written a bat file.

Maybe I just dated myself there.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] moopile:
Per SacTilt @ http://xdaforums.com/showpost.php?p=6058121&postcount=11778

The following reg file will backup Favorite people and in order:

HKCU\Software\HTC\People\FavoriteOrder

I've used this with ActiveSync, Win7 MDC, MS MyPhone, and my favorite: backing up and resoring \pim.vol. They won't show up until restart.

I would bet that you can easily move pim.vol from SC to root via XDA_UC, but I manually move it while XDA_UC is running in the background. I have the Reg file above in XDA_UC.

As JVH3 said earlier, make certain to wait until XDA_UC requests restart.

Also I read that you the Fav People info is stored in the Contact's Note section. If you have this tag " <Favorite>actionid:(option of choice)</Favorite " in more than 15 contacts it will cause problems such as your Fav People order randomly changing on reboots.

Goodluck.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Rabangus:
Can this be used to move folder as well as files?

EDIT: Ooops - just saw JVH3's post about Xcopy.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Sab3elbromba:
I have a simple question please, is there a way to install cabs to the SD card automatically without user interaction like you would if you installed on the phone memory instead of SD.

It's very annoying having to semi-manually install every cab in my xda_uc\sd folder, so any solutions ?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jfmckenna:
Well you could try a cab editing program and change the installations directory.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
so does it restore from the restore file specified, or from the info in the contact notes? i've given up on using it because it says 0 contacts stored as favorites when i tried backing it up (on different roms too)