yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
MortScript

I tried using the MortScript to copy files and to restore CHT settings (thanks for the tip JVH3) but it does not seem to run. I placed a file MikesMort.mscr in the XDA_UC directory. It was saved as Plain Text, Unicode-8.

I am trying to copy files from a directory on the storage card to the phone memory. I have a directory 'Files to Copy' inside which are a number of folders which contain files and/or subfolders with files. I used the following:

XCopy ("\Storage Card\Files to copy\Windows\*.*", "\Windows", FALSE, TRUE)

In the from folder there are a number of files and sub-folders with files and or further directory tree with files. Nothing copied!

I'm not sure if the command is wrong, or if the script is just not running. I expect it's not running as the RUN command string supplied by JVH3 to restore the cookie settings is also not running.

Anyone have any ideas?

My goal is to be able to update ROMs with no user interaction - yes i know, it's a lofty goal. Once I get to a decent point, I'll post an How-To and all the registry setting I have proven to work.

One other question, in thread 3 or 4 it says to keep your stock list I should update a registry and copy the '26948339_manila' file back in to Windows directory. That is one of the files I'm trying to copy. I tried to copy manually but it won't let me overwrite the file in Windows. How do I copy this?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] crachel:
To keep your stock list, you only need to back up Application Data/HTC/ygo

I think that manila file youre referencing needs to be backed-up in conjunction with the Launcher key from HTC's registry, and that its for Tab order, not stock list..

edit: its actually the configuration key not launcher
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
If your goal is to restore files in the Windows directory, create a Sense folder under XDA_UC. Put the files you want copied to the Windows folder in /Storage Card/XDA_UC/Sense.

It will copy them to the windows folder.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Windows is one of the folders I need to access. I'm also copying files in to Applications Data and Program Files and try to auto-run the CHT editor to bring back CHT settings.Just can't get this copy to work. I had the same issues with the Reg files so I converted to a CAB. Not sure if it's because I'm writing these on a MAC. Wouldn't see why it should make a difference as I'm saving as Unicode Text, but not sure what else to look at.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
As far as the CHT. I posted the mscr here: http://xdaforums.com/showpost.php?p=6351605&postcount=58

As stated in that post. You need to take the txt extension off so it has an mscr extention.

Other mscr files should execute as well.

Maybe attach your mscr files that you have attempted, so we can take a look to see if there is anything wrong with them.

I know my mscr files are not unicode. Just standard asci.

I've just looked at the reg files I use, and they are Unicode.

Of course the xml files for provisioning are Unicode. These must be unicode.

I only use 1 mscr file and it is ASCI, not unicode, and it works.

With Windows 7 notepad, there are 4 ways to save: ASCI, Unicode, UTF-8, and Unicode Big Endian.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
OK, so here it is, pretty simple I would think. What's wrong with this?

Run ("\Program Files\CHTEditor\CHTEditor.exe", """\Storage card\CHTEditor.dat""")

XCopy("\Storage Card\Files to copy\Windows\*", "\Windows", TRUE, TRUE)

XCopy("\Storage Card\Files to copy\Applications Data\*", "\Applications Data", TRUE, TRUE)

XCopy("\Storage Card\Files to copy\Program Files\*", "\Program Files", TRUE, TRUE)

This is saved as MikesMort.mscr in the XDA_UC directory and it does not run at all as far as I can tell.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Neet:
I think we all are learning a great deal about XDA_UC and I kinda hv started liking it!

Does anybdy know how to restore "pim.vol" with XDA_UC.

With UC I used sdconfig.txt.

I tried using the same method with XDA_UC but we need to have sense disabled and restart soon after copying pim.vol which I was unable to figure out wit XDA_UC!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
Please attach the file itself, so we can elliminate any issues regarding the format. Unicode, Unicode Big Endian, UTF-8, ASCI, some special Mac format, etc.

Also, where you have *

Try *.*
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
I originally had the *.* but that didn't work. I changed to * when I noticed someone had used that in one of the examples.

Actual file attached - BTW thanks for all the help!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
I assume you added .txt so you could attach it.

Something that might be the problem.

When it launches the mscr, it does not wait for it to finish.

So, it prompts you to soft reset before it is done.

Wait a minute or so after it prompts to soft reset before clicking yes.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
I opened the file.

It is a Mac problem

Carriage Return Line Feed

verses

Carriage Return

This is what it looks like when opened on my computer.

Run ("\Program Files\CHTEditor\CHTEditor.exe", """\Storage card\CHTEditor.dat""") XCopy("\Storage Card\Files to copy\Windows\*", "\Windows", TRUE, TRUE) XCopy("\Storage Card\Files to copy\Applications Data\*", "\Applications Data", TRUE, TRUE) XCopy("\Storage Card\Files to copy\Program Files\*", "\Program Files", TRUE, TRUE)

Do you have a way to open it in a windows emulation mode?

If so, open it with Notepad.

Word pad will interpret it and make it look the way you see it on a Mac
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Rabangus:
Wifi - WPA2-PSK with AES

Just thought I would share these settings, which worked a charm on my network:

<wap-provisioningdoc>

<characteristic type="CM_WiFiEntries">
<characteristic type="2WIRExxx">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>

<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="2WIRExxx">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="6"/>
<parm name="Authentication" value="7"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="xxxxxxxxxx"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="1"/>
</characteristic>
</characteristic>
</characteristic>

</wap-provisioningdoc>

No need to mess about with cab files, just put into an mscr file using notepad, then save into the XDA_UC folder.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
There never was a reason to mess with Cabs.

All you need to do is save the provisioning xml with an extention of xml.

And save the file as Unicode.

Not UTF-8, Not Unicode Big Endian, Not ASCI.

And follow Windows style Carriage Return / Line Feed Pairs.

Macs and Unix don't normally put both a Carriage Return and a Line Feed at the end eof each line.

Windows normally does.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] TheAgent1982:
Please help me...

I am using 21903 1st MAY.

Any idea, why the SMS notification appear ONLY at WM with SOUND.

BUT, do not appear at Manila, or CookieHomeTab Notification?

Thank you !
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
You are in the wrong thread. This thread is about Energy ROM XDA_UC, specifically for Rhodium / Touch Pro 2.

You should look in the thread for the ROM itself. If after searching there, you don't find it there, then post there.

You will get a better audience and the solution is more likely to appear there.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
That was indeed the issue. Interestingly, when I save on the MAC it had no .txt, but when I moved to the phone it added the .txt. I opened an XP window and edited there, moving across with Active Sync and it ran the MortScript.

The Marketplace programs now run without re-installing, although i can not run MartketPlace or re-install. Need to keep working on this one.

The main issues outstanding right now are:

1. I copied the Applications Data/HTC/YGO folder over but it did not get my stocks back.

2. The People Tab order is all messed up.

3. I'm trying to find the value for Off-Peak-Sync-Frequency for the Exchange XML that sync's every 15 minutes + I'm trying to figure out how to set the 'my_email_address' here also.

If anyone has any ideas, please let me know.

I'm attaching the Exchange XML and the WiFi XML I am using successfully. Remember to change them to file-type XML!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] adamperry:
Lost Instant Messengers & 'alt' key

I love the Engery roms. I put the Manilla one on my touch pro 2. Worked perfectly. Your instructions were great. I noticed two things, that i couldn't find an answer about in these threads. My alt key on the keyboard doesn't work anymore, it appears that all its functions are now being controlled by the 'ctrl' key. Anyway to get that back?? Also, i lost all of the instant messengers that were on the phone. i.e googletalk, aim, etc. Any help with these issues would be greatly appreciated. Thanks again for the hard work. Will be sending a donation as soon as i get paid. Please help.....Thanks
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
XML Provisioning Provider Reference Link

http://msdn.microsoft.com/en-us/library/bb737536(v=MSDN.10).aspx
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] moopile:
Did you try the registry entry I provided above?

Works everytime for me. If it doesn't work, may be a 21xxx vs 23xxx difference.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jneilliii:
Anyone have a script/registry/xml that will set windows theme and background image?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] TheAgent1982:
If you read my sign, i am talking about TP2 (aka Rhodium).

And NO there is no answer there, i was asking twice there without answer.

So, i see this tread "tips and tricks" and i write here.

I believe that this is the place for asking those questions.

"Thanks" for your help...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] krook6023:
I also would like to know how to get this working...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] SacTilt:
Sorry, but this thread is "Tips and Tricks" with relation to XDA_UC only.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] agentdr8:
Quick xml validation

I was having issues with my provisioning xmls for email accounts and couldn't figure out why. With dotFred's latest Task Manager, it now can parse XML config files and check for correct syntax and give hints on where to look if it isn't correct.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] krook6023:
LOCK:Enabled
TSK: \Storage Card\Cabs\themename.tsk
LOCK:Disabled

Would something like this work for a SDConfig.txt?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jneilliii:
I don't know if NRG's custom XDA_UC supports the sdconfig.txt commands.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nhshah7:
i think you can just drop the .tsk into the xda_uc folder to get it to install if i'm not mistaken. I feel like i read that in one of the xda_uc threads
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
I did use that registry. That is one of the ones I got from my before/after config compare and it has all the entries in it. However, when I upgraded it had all the people just in a different order.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] joking:
How about use BackFavPeople to back up then open the xml file and edit the order as you want. That's how I did on mine a while a go.

Note that after you restore your fav people, sometime all of them won't shows up or the order is not right until after you soft reset.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
The easiest way to know for sure is to copy XDAUC.mscr from the windows folder.

Rename the copy to XDAUC.mscr.txt

Now you can look at the exact way this is processed.

And maybe see a few other things that you didn't even know it could do.

There is code to process the SDConfig.txt

But I don't see anything in XDAUC.mscr about processing tsk files.

I did see something about .xdas files. Not sure what those are about.

I also noticed there doesn't appear to be anything related to running file copies based on registry entries that noonski's version is suppose to do.

Since a file copy is such a simple mscr to make, NRG probably thought that creating the reg entry was more complicated than just making an mscr.

It's a relatively easy read if you've ever worked with batch files or done any programming.

Leaves me wondering.

What would happen if I put a modified XDAUC.mscr in my XDA_UC\Sense folder. Would it start executing in my file or continue with it's own.

I think I'll just not do that.

Maybe I shouldn't recommend that people read this file.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] telder:
Cool, I will be doing that.

If it process like every other language, there will be no issues on the first run, unless it calls itself recursively. I remember in the late 80's we used to open a running .EXE (from itself) to write user registration info. So on the next run the .EXE would be "activated". Drives virus scanners nuts when you do that, luckily (i guess) virus scanners were a rare thing then.

Edit:Still, not a good idea. I am a trained professional, do not attempt anything you see here at home!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] krook6023:
...I read that too...This did not work your me.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jneilliii:
I don't necessarily want to install a custom tsk, but set the theme to one of NRG's older versions, that are already installed. I guess I'll start doing some registry comparisons today...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] moopile:
Don't know what to tell you. Mine load up in order after s/r. (Did you check to see if too many of your contacts have the favorite tag?)
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
I think the issue may be that the contacts come from synchronisation to my company Exchange server. When I installed the new ROM the people were in the wrong place, so I moved them and compared the registry entries. The numbers were completely different - first batch in the 2000000s and the batch after the new flash in the 5000000s.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Certificates

Anyone know where the Marketplace certificate is kept?

I copied all reg entries I could find and all files after burning a new ROM. All the MarketPlace app's came back working fine. The MarketPlace .exe is where is should be and the link even appears in the start menu. Problem is, when I go to start it I get a message saying the certificate is invalid and to re-install. It won't let me re-install is the issue.

So if anyone knows, I'll be happy to get an answer. That will be the final piece in the puzzle of my automatic, zero user interaction ROM upgrade - details coming shortly.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nmcbe:
Amateur Hour

So every time I start to research this topic and try to figure out how to make my life easier when flashing I become overwhelmed and eventually close my browser and walk away after staring at my screen for a few hours. I have a general understanding of how this all works but extracting, creating and organizing these files is what i get lost in. The only thing I have successfully done is insert my cabs in to the xda root folder in my storage card. I tried to create an xml for my email accounts but that failed. would anyone be willing to go through this step by step with me? maybe through chat or email..as to not clog the forum up with my "noob"ness. I am using the 4-12 maxmanilla ROM and want to try to learn this for my next flash. You're help is greatly appreciated
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Lewelynn:
there is xml email settings maker in the addons folder (on the first page of the rom thread)
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nmcbe:
Already tried that route...that's what failed on me. But I would like to get set up for numerous other settings as well, not just email.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Lewelynn:
it worked for me, i jus renamed the extension to .xml and saved the file in unicode format and droped it in da XDA_UC folder. As for other settings best i can help you is to maybe search for some examples of xml files. I'm not familiar with xml programming, sorry.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] motisu:
Use Makisu, an addon program from Sashimi. I use it to create the XML file for my Exchange account, my work Wifi (WPA-PSK) network, my home network (WPA2-PSK) and my gmail account. all work without any problems. Name of the site is www.winmo-experts.com. Good luck!!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] SacTilt:
I second that recommendation. I used it to set up my home wifi, 2 gmail (imap) accounts, and an exchange account for nuevasync. All settings are perfect, every time.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stenuine:
Anyone aware of the registry location/value for the volume up/down bar on the side of the phone? I think a .cab I downloaded (possibly zoombar v2 beta) may have overwritten it.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jfmckenna:
yeah makisu is great deff good for automating the xml file. if you would like to take it a step further you can turn the xml into a cab!

I did not create the cabwiz_tools.zip or this method, i researched it used many sources unfortunately i don't recall the user who made this possible but i will continue looking to give credit where it is due.

basically you just download the cabwiz_tools.zip

extract it

and replace the _setup.xml file with the xml that makisu created but you must rename it _setup.xml

run the bat file in the cabwiz folder and it will create a cab called regcab.cab

you can rename this file if you like (especially if your making multiple)

when you install the cab or use an autoinstaller it will apply the settings!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jhernand1102:
This look interesting..can someone please post the makisu program here...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
There is no benefit in turning it into a cab.

If you name it so it ends in .xml and save it as unicode and stick it in the XDA_UC folder, it processes and sets everything up.

And when you decide to change your password, just edit the file.

No need to make a new cab.

Why do people keep posting about making cabs out of provision xml, when xml files are processed by XDA_UC?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] Rabangus:
Indeed. Why make things harder than they need to be. Think it's because people have seen instructions on the M$ site about provisioning, but with XDA_UC you don't need the cab.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] motisu:
Like he said..... why make things difficult when they can be simple?

BTW, here's a little reg file that I made to allow the ordering of my windows start menu. ever since 6.5 stopped using the "recently used" automatic reordering, After every HR I would have to move all the shortcuts around. Since I always restore the same stuff, I created this reg which orders them the way I want. It saves me the time of rearranging my start menu after every HR. To modify, copy from the Registry the exact name of the key and change value of "ItemPosition"=dword:00000002 to where you want it. Remember that the value is hexa.

Enjoy!!
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] telder:
I can think of one reason. I have some applications and some settings for those applications that require a specific order for the installations (installing the app sets the preferences to the default). By having everything in \XDA_UC saved as a cab, I can number them and choose the order I prefer, and not be subjected to the order imposed by XDAUS.mscr. (currently .cab, .reg, .xml ...).

I agree that there is extra work involved in making a .cab file, but really, it only takes a few seconds more. The real work is creating the .XML/.REG file, the final packaging is a matter of taste.

$0.02
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] cairel:
Thank you for all the information on this thread. Though it took me some hours to read it I think I got answer for all my doubts. I guess once I put this on practice more will come.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
I understand for some things, you may want to control the order.

01_CAB.cab writes a set of reg entries.

02_CAB.cab writes a set of reg entries and some are the same entries as 01_CAB.cab, but with different values.

But, I am not aware of any cabs that at install time require your email, exchange, or wireless network to be configured. Possibly at first run, but not at install. For email and wireless, it is better to have a file that you can edit on the device, so you can edit it using your phone, if you change your password.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] jfmckenna:
very good points, i guess for me its a matter of preference. My ROM happens to have Tom's Auto-installer built into it, this unfortunately cannot do anything with an XML file. Rather than having 2 auto-installers i learned a way to utilize xml with a cab which was perfect ans figured i would share. So with that the advantage to using a cab is if you would like to try a new ROM series that already implements an auto-installer you can simply drop the cab in and let it do its thing.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] acc49ers:
What order are things installed. Is it by filename or also by file type?
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] ElanMike:
Quick question - I've backed up my ring tones using registry keys but I can't find the one for ring type. Any one know where that is? I searched all the Rhodium threads but nothing.
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] telder:
It's alphabetical by file type:

*.pib (PIMBackup)

*.xdas (don't know, seems to be some kind of zipped mortscript)

SDConfig.txt (never use)

*.cab

SD\*.cab

*.reg

Exproter\*.reg

*.xml

*.cer

*.mscr

At least this is the way it is in the script from May 4 23xxx build
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] stained-steel:
Closing time...

Continue...
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] xredjokerx:
Heres a little last thing for you people...

I made this cab because the XDA_UC and exporter doesnt back up these settings..

That is, "Keypress noise" and "Font size" settings..

my cab changes keypress noise to silent and font size to smallest (if that is what you so prefer, download it :) )

add it to your XDA UC and then you never have to change those again :D
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] nmcbe:
simple help with email accounts

Everyone on here seems to be quite advanced with this tool but if I could just get help doing a simple email account setup I would most greatly appreciate it. I have looked at NRG's sample xml in notepad and still can't figure out exactly how to set my accounts up using the xmp provisioning program. I have tried googling examples but to no avail. I am no computer genius compared to many of the people here and i'm sorry if that's annoying to some, but I would definitely appreciate someone's help with this task
[Touch Pro2, Tilt 2 Windows Mobile ROM Development] SacTilt:
It might help if you told us what kind of email accounts. IMAP? POP3? Exchange? or more specifically Gmail or Yahoo or?

Also, if you are just using a sample XML file and modifying that for your needs, then you don't need a program.