yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] schick79:
provxml and xml files

Hello all,

What is the difference between a .xml and .provxml file? I had previously created .provxml files that worked with sdconfig to re-create my three e-mail accounts after flashing.

Where do these files have to go in the XDA_UC folder, what kind of files do they have to be, what kind of encoding do the files have to be (if it matters), and is there anything else I'm missing regarding getting this to work?

Thanks in advance!
[Windows Mobile Apps and Games] blast0id:
SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")
DIA = RegRead("HKLM", "System\StorageManager\Profiles\MoviNand", "Folder")
OMN = RegRead("HKLM", "System\StorageManager\Profiles\INAND", "Folder")

If (DirExists( "\" & SDF ))
SD_FOLDER = "\" & SDF
ElseIf(DirExists( "\" & DIA ))
SD_FOLDER = "\" & DIA
ElseIf(DirExists( "\" & OMN ))
SD_FOLDER = "\" & OMN
Endif

XDAUC_FOLDER = SD_FOLDER & "\XDA_UC"

If ( DirExists( XDAUC_FOLDER & "\Root" ) )
XCopy( XDAUC_FOLDER & "\Root\*.*", "", TRUE, TRUE )
Else
SleepMessage( 5, "Nothing to copy... goodbye!", "Oopsie!" )
EndIf
If ( FileExists( "\Windows\Start Menu\Programs\Tools\X Button Settings.lnk" )=TRUE )
Rename( "\Windows\Start Menu\Programs\Tools\X Button Settings.lnk" "\Windows\Start Menu\Programs\Tools\AMeBaSettings.lnk", TRUE )
Else
SleepMessage( 5, "Nothing to rename/move... goodbye!", "Oopsie!" )
EndIf

Exit

just repeat the rename function for each file you want to "move" you don't actually have to rename it, keeping the same name will actually move it, this eliminates the need to COPY then DELETE you can do it in once command instead of two...

exacterry! so much better/easier than sdconfig.txt!
[Windows Mobile Apps and Games] colossus_r:
sdconfig is gone ???

@NRG

Now that sdconfig.txt is not suported in the new roms how do i copy files and dirs from sd to main memory (\Programs Files) ??

is the only issue that i have with full after flash customize in your new 28may gtx rom

Thanks
[Windows Mobile Apps and Games] blast0id:
dude, seriously? did you not see the post just before yours? also, you can use my mod which is in my signature... either way, will accomplish what you want...
[Windows Mobile Apps and Games] colossus_r:
Hi benjammin

Thanks for the reply....

I did read your previus post but now just realise that i can make a plain text file rename it myfile.mscr and run it or place it in the XDA_UC folder for automatic run.

I was using the sdconfig file for all this copy operations so a felt a litle out of my league !!!!

I search and found a Mortscript manual and now i have fix my copy problems

Anyway Thanks

colossus
[Windows Mobile Apps and Games] hx4700 Killer:
Set Exchange Email Folders to Sync

This is my first attempt to offer some simple work on this forum.

I have always found it frustrating that I had to manually add the email folders I wanted to be synced once the email account was provisioned.

Having used Makisu to make a provisioning XML to create my exchange account, I posted on another forum regarding syncing email folders and Telder was kind enough to give me a copy of his provisioning XML for adding folders to be synced.

Unfortunately you must have performed the initial sync before the folders to be synced can be tagged as such.

Attached you will find some files that can be copied in to the XDA_UC folder on your storage card. The zip file contains a mortscript that goes in XDA_UC and a subfolder called PostExchangeSync that contains an EXE and a SAMPLE XML file to guide you on how to set the folders to sync. If you already have your own then toss this one and use it. The XML file name can be anything as the mortscript will process ANY xml file in that folder.

This is the order/method of execution of the mortscript that XDA UC will launch automatically:

1. Run the EXE in the PostExchangeSync subfolder that will check to see if synchronization has begun and ended (meaning a full sync cycle has completed).

2. If no Sync cycle has happened then open activesync and click the left soft button (I just added a minimize of activesync so no one presses the stop button thus hanging this process.

3. If the sync process is running, or after step 2 starts it then it will wait for the sync to end by looping and re-running the EXE to check on the sync status.

4. Once the sync process completes it will then process ANY XML file in the PostExchangeSync folder regardless of its name.

5. Finally it will process ANY mortscript in the PostExchangeSync folder that it finds. (I added this because I am using keepmytones to restore ringtones and wrote a mortscript to drive it but it won't work until the contacts are synced and I needed to guarantee order of execution.)

The EXE I wrote parses the following file:

\Windows\ActiveSync\CtrlLog0.txt (the activesync log file) looking for two lines.

First is the line for the start of syncing which will contain "SyncBegin", mine looks like this:

2010-05-29 22:43:37.0000	SyncBegin	<sync xmlns="http://schemas.microsoft.com/as/2004/core" type="interactive"/>

Then it looks for the end sync which will contain "SyncEnd", mine looks like this:

2010-05-29 22:43:54.0000	SyncEnd	<sync xmlns="http://schemas.microsoft.com/as/2004/core" type="interactive"/>

So this might very well mean this will only be regional to english Roms. If your text is different for your language in your log file then you can always PM it to me and the region code and I can add regional values as time permits.

Caviats:

I have ONLY tested this with an exchange account on an English ROM(specifically Energy 21905 from May 28th). I don't know what the log file looks like for say hotmail or another service, it may be the same it may not. Telder did test it for me and it worked for him as well so hopefully some will find it usefull.
[Windows Mobile Apps and Games] blast0id:
I would consider SDConfig a much more antiquated and difficult solution than writing a mortscript! =)
[Windows Mobile Apps and Games] Cpt.Curry:
Very useful is there anyway to install the apps onto the sd card.
[Windows Mobile Apps and Games] blast0id:
check out the first link in my sig...
[Windows Mobile Apps and Games] Birger:
I have problems for the XDA_UC

I put some cabs in the XDA_UC dir, they install fine on the main memory.

I put some cabs in the XDA_UC\Storage, in the XDA_UC\Manual and they all don't install.

I use The GTX 23569 of 28 mai.

What's wrong?
[Windows Mobile Apps and Games] blast0id:
I replied to your post in the other thread 'Energy' XDA_UC Mod (link is first one in my sig)
[Windows Mobile Apps and Games] Samip430:
The copy function isn't working for me.

I have \Storage Card\XDA_UC\Copy2Root\pim.vol and \Storage Card\XDA_UC\Copy2Root\Program Files\Lumos\settings.txt but neither of those files copied over.
[Windows Mobile Apps and Games] hx4700 Killer:
Which Rom? Make a sig per the rules.

Energy Roms have a CUSTOM XDA UC mortscript that ONLY copies from a sense folder to windows. I made my own mortscript to do a recursive copy of all the folders I wanted in copy2root
[Windows Mobile Apps and Games] Samip430:
Ya, i'm running EnergyROM. can you upload this mortscript please?
[Windows Mobile Apps and Games] hx4700 Killer:
I will just cut & paste the code. I got this from the original cooked in xda_uc.mscr in the windows folder and just changed to the path I wanted:

#######################################################################
# Disable Manila and Copy over User files #
#############################################################################
SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")

If (DirExists( "\" & SDF & "\XDA_UC\CopyToRoot" ))
XCopy( "\" & SDF & "\XDA_UC\CopyToRoot\*.*", "\", TRUE, TRUE )
RegWriteDword("HKLM","\Software\Microsoft\Today\Items\HTC Sense","Enabled","0")
RedrawToday
Sleep("3000")
RegWriteDword("HKLM","\Software\Microsoft\Today\Items\HTC Sense","Enabled","1")
RedrawToday
Else
Sleep("5000")
Endif

Just cut & paste that in to notepad and MAKE SURE when you save it you name it ****.MSCR and change the "Save as type:" to All files: *.* or it will end up being ****.MSCR.TXT and mortscript wont know what to do with that.

Also, order of execution is from oldest file date to newest so if you want a specific execution order then copy your scripts in to the XDA_UC folder one at a time in the order you want them executed.

The path it is copying from as evidenced by the code above is XDA_UC\CopyToRoot if you want to retain the old copy2root name then change it in the code above. I used a new path name in case that was brought back in to Energy's XDA_UC.
[Windows Mobile Apps and Games] serfer222:
I just started thread for new app that supports some XDA_UC features

http://xdaforums.com/showthread.php?t=709557

I want to hear your feedback.
[Windows Mobile Apps and Games] coolsac32:
sub error in xda_uc.mscr

i keep getting a error in the XDA_UC.mscr

please help. it keeps sayin:

"Sub must not be in control structure

line 546

(\windows\startup\xda_uc.mscr):

Sub installxdasfiles (pathXDAS)"

i dont know how to get it working
[Windows Mobile Apps and Games] leepriestenator:
My XDA_UC config takes care of 98% of my system restoration after a hard reset. I'm having trouble automating just a few more things.

* Sense 2.5 Internet Time

Enable - Get time from Internet &

Enable - Get time while Roaming

* Microsoft Myphone

Input ID & Password through a registry entry or any other method if available.
[Windows Mobile Apps and Games] hx4700 Killer:
Command Line Backup/Restore of RingTones for XDA_UC

Today I am posting a utility I wrote to backup/restore custom ringtones that is specifically intended to work with XDA_UC.

It can be run manually but my intent was for restoring tones with XDA_UC in a silent, ZERO user interaction mode. I had been using keepmytones but was dissapointed in the need for .net 3.5 framework and the lack of command line interaction caused me to write my own.

I have nearly 300 contacts and about 30 custom ringtones on my phone and it takes a few seconds to execute either a backup or restore.

This is a VERY simple, low overhead, no UI tool. Attached you will find a zip file. Decompress it and put the folder "RingToneSave" in the XDA_UC folder on your memory stick. It will work from anywhere however if you want the included shortcuts and mortscript to work out of the box you will need to place it there.

Included are two shortcuts one for backing up and one for restoring. The difference in the shortcuts is the restore adds a command line parameter "restore".

To use this with XDA_UC you will of course need to have your PIM data (specifically contacts) restored/synchronized or you will suffer through an error message for each failed contact restore. Simply place the mortscript where it can be executed AFTER PIM data is restored. (XDA_UC order of execution is by file date. Oldest to newest.)

When you run a backup a TXT file will be created in the folder the code is executing from called "SavedRingTones.txt". This is a flat file with the contact info from the "FileAs" field in the PIM database and from the "RingTone" field in the database. One contact per line delimitted by this "<^>". So if you have that string of characters in a contact name you may have a problem ;).

Of course a backup will have to be run FIRST to generate the file or a restore will not work (DUH).

It should work in ANY rom with at least the 2.0 framework. It should also work with any language as it is storing the exact contents of the Pim DB but the restore argument will need to be in english.

I hope others will find this usefull.

I am editting to add that there is NO user message/interaction or any visual ANYTHING unless there is an error. You will get the busy cursor for a few seconds and it will run. As I said, designed for NO user interaction for XDA_UC.
[Windows Mobile Apps and Games] nrfitchett4:
ok, maybe someone can help me with my final bit of xda_UC.

What I am trying to do is move whole folders around my start menu. I have no trouble moving programs into folders using mortscript, but how can I move a whole folder like office mobile or some other program folders into my sorted apps/multimedia etc???

Is there a command in mortscript that will move a whole directory?

I've tried Move, MvDir, MoveDir all to no luck.
[Windows Mobile Apps and Games] RoryB:
I believe you can use move or xcopy to get the contents to the new folder and deltree to remove the old folder. Move and xcopy needs the include subdirectories flag if the are any.

It may give you problems if files have read only or system attributes.
[Windows Mobile Apps and Games] b4u2:
I probably overlooked it...but would someone post an example of a script to create a shortcut to an app on the storage card (is post 351 what I am looking for?). That is about the only thing left that I really need to figure out. A lot of my apps are on my storage card and when I reflash I don't need to reinstall them I just need the links in the start menu so my custom icons will work. Thanks!

Will this work? CreateShortcut("\Windows\Startmenü\Test.lnk","\Storage\Test.exe")

So after I make all my shortcuts do I then make this .txt file a .mscr or an .ini to then put into the copy2root folder?
[Windows Mobile Apps and Games] serfer222:
with XDA_UC you can create shortcuts by using registry commands:

for example - create reg file and put it to XDA_UC folder. (edit it for your needs)

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]
"\\Windows\\Start Menu\\Programs\\GPS"="Makedir"
[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"\\Windows\\Start Menu\\Programs\\GPS\\SeaSGEE.lnk"="\\Windows\\SeaSGEE.exe"
"\\Windows\\Start Menu\\Programs\\GPS\\Clean GPS Data.lnk"="\\Windows\\CleanGPSData.exe"
"\\Windows\\Start Menu\\Programs\\GPS\\HTC GPS Tool.lnk"="\\Windows\\HTCGPSTool.exe"
"\\Windows\\Start Menu\\Programs\\PPCPimBackup.lnk"="\\Windows\\PPCPimBackup.exe"
"\\Windows\\Start Menu\\Programs\\FDC Task Manager.lnk"="\\Windows\\FS_TaskMgr.exe"

Or, if you have mscr that do all tings - just put it to XDA_UC folder.

By the way - you just gave me an idea - i will add new feature to my XDA_UC_NET application soon. =)
[Windows Mobile Apps and Games] b4u2:
LOL I knew I was good for something :) I will try the reg edit and see how well that works. I did write the mortscript and tried a sample out. It worked but I haven't fully tested it to try out my custom icons. I'm hping that using HCT 1.8.5 and JWMD icon changer and using the save theme option it will tie them back all back together for use in the quicklinks. I found a Mortscript someone wrote to create shortcuts. I haven't used it yet.

Edit: I ran my script I wrote and it "basically" worked. I also tried running the shortcut creator but it gives an error 'Sub' without 'EndSub' Line 14 (\Storage Card\shortcut creator.mscr): sub create

Question:

If I make this line "\\Windows\\Start Menu\\Programs\\Tools\\PPCPimBackup.lnk"="\\Windows\\PPCPimBackup.exe"

Does it matter if PPCPimBackup.exe is on the storage card when written like this?

I made a test reg file but how exactly do I test it? I only have Total Commander and note sure how to just run the 1 reg file.
[Windows Mobile Apps and Games] Fif23:
oops wrong post
[Windows Mobile Apps and Games] 10507:
I am running EnergyROM HCT 1.8.5 latest version. I would like to use XDA_UC to silently and automatically install all my CABs to Storage Card, ubt I am not sure where to place those CABs in XDA_UC folder. Can someone please direct?

Thank you very much,

10507
[Windows Mobile Apps and Games] hx4700 Killer:
Energy remove the feature from his xda_uc. Benjaminz posted a script that would do it and i have reposted it on the main energy forums. if your installer asks post install questions it does not work properly for that.
[Windows Mobile Apps and Games] avs777:
Slow to import reg files

When I run XDA_UC on my device it takes about 45 minutes to import reg file.

Importing same file from Registry Editor takes just a second.

Everything else with XDA_UC runs very quickly.

Did anyone else experience this?
[Windows Mobile Apps and Games] ammarhm:
Registerd SPB and XDA_UC

Hi all

Just wondering, I have several SPB programs like SPB mobile moniter, SPB time etc that I register with serials, the problem is that everytime i flash a new ROM i need to install my programs again, using XDA_UC i am able to install the programs automatically, but has anyone tried to use XDA_UC to register SPB programs automatically with their serial no or maybe if anyone knows which registry setting to back up for the file to be registered automatically? I looked in the register of my phone but did not find any key with the registration code

Appreciate any help
[Windows Mobile Apps and Games] edujl:
email accounts

Hi all

Maybe it was already asked here, and believe me I have looked for it :) but how do I use the XDA_UC with my email accounts? It bothers me whenever I flash a new Rom to create all the email accounts from crap.... it's lots of work and maybe I could use XDA-UC ;)

Thanks

Edu
[Windows Mobile Apps and Games] hx4700 Killer:
Have a look here, it tells you how to make a provxml to configure email clients:

http://dotnetideasblog.blogspot.com/2009/11/provisioning-windows-mobile-devices.html

I would recommend getting the sashimi tools to make you a provxml file though it makes it easy.
[Windows Mobile Apps and Games] Noonski:
There's indeed nothing in there that kills the radio.

But it could be that radio is disabled by default then enabled to start at second boot by an OEM .provxml file (as radio in most cases is not needed at first boot during Autorun's)

I also found this behaviour when i still had RunCC included it messed with the radio status.
[Windows Mobile Apps and Games] bga7x:
Thank you for your reply!! im still messing with it this the first rom i tried using this so its a learning process

thanks again!!

you can check my rom here!

http://www.modaco.com/content/i910-specific-omnia-rom-discussion/290345/bgill55-cf03-roms-6-5-v1-4-1-6-5-m2d-v1-4/
[Windows Mobile Apps and Games] jimmydu3:
Anybody know how to make xda_uc go straight into installing stuff, rather than waiting for me to click "ok"
[Windows Mobile Apps and Games] Noonski:
I might add that as a function For Version 1.1

At least if Someone is aware enough of the disclaimer, then it won't matter if it is suppressed.
[Windows Mobile Apps and Games] jimmydu3:
Thanks, I ended up just commenting out a bit and it works great.

;Sleep("25000")

; If (method = 2 )

; If (RegRead( "HKLM", "Comm", "BootCount" ) eq 2)

; While( ProcExists ( "Welcome.exe" ))

; sleep( 300 )

; endwhile

; BigMessage("XDA_UC will silently install available personal installations and tweaks. Please do not report any errors to the MortScript Forum but to the XDA_UC User & Cook thread or the thread of the Rom you have just Flashed. Adding user created or your own scripts can do serious damage to your device, only use installations from a trusted or confirmed source, but the responsibility and Choice to use these, is always your own. Press OK to continue.", "XDA_UC Customization")

; Else

; EndIf

; Else

; If (RegRead( "HKLM", "Comm", "BootCount" ) eq 1)

; While( ProcExists ( "Welcome.exe" ))

; sleep( 300 )

; endwhile

; BigMessage("XDA_UC will silently install available personal installations and tweaks. Please do not report any errors to the MortScript Forum but to the XDA_UC User & Cook thread or the thread of the Rom you have just Flashed. Adding user created or your own scripts can do serious damage to your device, only use installations from a trusted or confirmed source, but the responsibility and Choice to use these, is always your own. Press OK to continue.", "XDA_UC Customization")

; Else

; EndIf

; EndIf
[Windows Mobile Apps and Games] ai6908:
Or make it a sleep msg, by that way it just popup and go away...

SleepMessage("2", "XDA_UC will silently install available personal installations and tweaks.", "Customization", TRUE)
[Windows Mobile Apps and Games] Noonski:
I though this was a User to User question? ;)

Editing out the warning is possible. But it is supposed to stay there.

(Read the Other Development thread why).

What I meant is that the code will stay there, but it will check on the User configuration side for a "warnings.not" file in de XDA_UC folder and if present suppress the Dialog's.
[Windows Mobile Apps and Games] blazingwolf:
Any one having issues with provxml? I have one for my exchange account but dotFred task manager refuses to see it. :confused:

Other then that all seems to be working fine and fast. :)
[Windows Mobile Apps and Games] RoryB:
I'll state the first thing that comes to mind.

Is your provxml filename.provxml or filename.xml?

I think task manager needs it to be xml not provxml.
[Windows Mobile Apps and Games] blazingwolf:
You would be correct. Changed it to xml and it sees it. Thanks.
[Windows Mobile Apps and Games] 4D3:
can i just ask, when using this, does this copy the contents of the folder into the folder specified?

e.g.

i have a folder: Storage Card\Test

and it contains these files:

1.png

2.png

3.png

4.png

and i want to copy 1.png & 2.png to the windows dir, 3.png 7 4.png to program files

what entry would i make?

thanks for your help

MG
[Windows Mobile Apps and Games] Noonski:
I didn't ad a Copy File as that would be more easily done with Mortscript.

But i'll look into it for in future updates.

For now you would need to make an Extra folder and Reg entry to get what you need.

The DirCopy will copy entire Directories.

ATM i'm a bit pressed for time (Working on my new Website and being a Social guy to)

But i'm almost finished testing all the extra additions for extra storage and File Copy should make the next 1.1 Update.
[Windows Mobile Apps and Games] Noonski:
Please find attached a Sample Provisioning .xml file for setting up multiple mail accounts during UC.

Just replace the needed information with your account details.

If you need a third or forth etc....

You will need to copy a new block into the xml file.

<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
<parm name="SERVICENAME" value="Mail Account Name 1" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="pop.yourmailhost.com" />
<parm name="OUTSERVER" value="smtp.yourgsmprovidersmtp.com" />
<parm name="NAME" value="My Name" />
<parm name="AUTHNAME" value="UserName" />
<parm name="AUTHSECRET" value="PassWord" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="MyEmail@MyProvider.com" />
<parm name="LINGER" value="120" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="0" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="UserName" />
<parm name="SMTPALTPASSWORD" value="PassWord" />
<parm name="SMTPALTDOMAIN" value="smtp.yourmailhost.com" />
</characteristic>

But add a new GUID into the Type part.

So

<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">

Becomes

<characteristic type="{df15c080-c2fe-11de-8a39-0800200c9a66}">

For a new additional account.

You can generate new GUID's online at http://www.famkruithof.net/uuid/uuidgen
[Windows Mobile Apps and Games] Anthrax79:
I don't have the "Storage Card" option so I am wondering if I can create the XDA_UC directory in "My Storage" instead of "Storage Card"...

I must not know how to make the search work. I tried searching on "My Storage" but just got all the hits for "Storage" and none of them really answered my question.

Thanks!!
[Windows Mobile Apps and Games] Noonski:
As mentioned a few posts back i'm working on it ;)
[Windows Mobile Apps and Games] Noonski:
Updated Post two with a few more compatible Roms.

If you know more, give a holler.
[Windows Mobile Apps and Games] jfizz88:
reg files

so ive made my XDA_UC and SD folders on my sd card root folder, seperatred all my cabs. but now i want to know how do i make necessary UC instructions to install registry files when i load a new rom. i have some sliding .wav files i have to install in the hklm root of my fone and the windows folder but i dont know how to make xda_uc do that for me auto. is it the sdconfig.txt i have to make?:confused: