yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] kockroach:
Thanks. And I managed to put something together after getting a download of MortScript. I think I set up everything the way I needed.
[Windows Mobile Software Development] irus:
i just tried the same thing and everthing worked but the send and receive button is grayed out but all my settings are there and my contacts are there and if i sync it to my computer i will get my emails automatically but i can't press send and recieve... any thoughts?
[Windows Mobile Software Development] RoryB:
Mine is not greyed out.

I did not use any of the Sync settings you get from Rapiconfig. Only the registry settings for activesync.
[Windows Mobile Software Development] irus:
ok i will try that. thanks
[Windows Mobile Software Development] irus:
nope it did not work its still grayed out :(

on the upside if i go to active sync and click sync i will work but its still grayed out in outlook
[Windows Mobile Software Development] kockroach:
I was just going to say that although I was able to get UC to setup my Microsoft Server, the "Menu\Tools\Manage Folders" option was greyed out. The only way I was able to get it to be active again was to delete the server settings, and input them again by hand and re-sync. I found that it was greyed out because it was saying that it was only syncing through the PC, but when syncing through GPRS the option is available.

Anyone know what registry setting would control GPRS vs PC synchronization?
[Windows Mobile Software Development] RoryB:
I have noticed various options are greyed out when my phone is syncing with exchange or my pop mail account over GPRS or PC. Don't know if that helps any.

In HKCU\Software\Microsoft\ActiveSync\Partners there are partners (different GUID numbers) for each partnership. Exchange Server, and up to two PCs.
[Windows Mobile Software Development] irus:
my guess is there is other reg settings some where or another file. i have a test tomorrow so i won't have time until Thursday night to look at it. however even through it is grayed out i still get mail even if i don't hit the sync button in active sync. it just gets pushed to me like normal
[Windows Mobile Software Development] kockroach:
I was finally able to figure out my two files. I got them both working now. It was some of the "parm name" entries that should have been removed.
[Windows Mobile Software Development] irus:
what are the parm names that were removed
[Windows Mobile Software Development] m.klinge:
So when i need to change a binary string and i know what i need to change it to i could simply write:

<parm name="Binary" value"00 01 0B 00" datatype="binary"

Assuming the binary values i want to be written are 00 01 0B 00?

//M
[Windows Mobile Software Development] kockroach:
I found that I can use the following, but if I add anything else under "Settings", then it will not work.

<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Connection">
<parm name="Server" value="xxxx"/>
<parm name="User" value="xxxx"/>
<parm name="Password" value="xxxx"/>
<parm name="SavePassword" value="1"/>
<parm name="Domain" value=""/>
<parm name="AllowSSLOption" value="1"/>
<parm name="UseSSL" value="1"/>
<parm name="EnableRNDIS" value="1"/>
</characteristic>
<characteristic type="Settings">
<parm name="PeakStartTime" value="0800"/>
<parm name="PeakEndTime" value="1800"/>
<parm name="PeakFrequency" value="-1"/>
<parm name="OffPeakFrequency" value="0"/>
<parm name="BodyTruncation" value="-1"/>
<parm name="SendMailItemsImmediately" value="1"/>
<parm name="MailBodyTruncation" value="-1"/>
<parm name="HTMLTruncation" value="-1"/>
<parm name="MIMETruncation" value="-1"/>
<parm name="SyncWhenRoaming" value="1"/>
<characteristic type="PeakDays">
<parm name="Sun" value="0"/>
<parm name="Mon" value="1"/>
<parm name="Tue" value="1"/>
<parm name="Wed" value="1"/>
<parm name="Thr" value="1"/>
<parm name="Fri" value="1"/>
<parm name="Sat" value="0"/>
</characteristic>
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1"/>
<parm name="CalendarAgeFilter" value="6"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1"/>
<parm name="EmailAgeFilter" value="5"/>
</characteristic>
<characteristic type="Tasks">
<parm name="Enabled" value="0"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Also, even when you pull out these settings using Rapiconfig, you cannot have certain ones under the "Mail", "Calendar", "Contacts" and "Tasks". Remove "SyncSwitchPurge". The "CalendarAgeFilter" and "EmailAgeFilter" can go in their respective spots or you can put them under "Settings". No duplicates as you will see in the export from Rapiconfig. I didn't test every other "parm name" under "Settings", but if I added anything more than what is above, it wouldn't work.

As for provisioning folders after the first sync, I was able to do it, but you can only have the "SyncEnabled" "parm name", like this:

<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="FolderHierarchy">
<characteristic type="xxxx">
<parm name="SyncEnabled" value="1"/>
</characteristic>
<characteristic type="Deleted Items">
<parm name="SyncEnabled" value="0"/>
</characteristic>
<characteristic type="Drafts">
<parm name="SyncEnabled" value="0"/>
</characteristic>
<characteristic type="xxxx">
<parm name="SyncEnabled" value="1"/>
</characteristic>
<characteristic type="xxxx">
<parm name="SyncEnabled" value="1"/>
</characteristic>
<characteristic type="Inbox">
<parm name="SyncEnabled" value="1"/>
</characteristic>
<characteristic type="xxxx">
<parm name="SyncEnabled" value="1"/>
</characteristic>
<characteristic type="Sent Items">
<parm name="SyncEnabled" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] RoryB:
Use commas instead of spaces.

<parm name="Binarydataname" value"00,01,0B,00" datatype="binary" />
[Windows Mobile Software Development] Radimus:
I just updated my backup/restore scripts in the thread in my signature
[Windows Mobile Software Development] m.klinge:
Ahh thx alot - and it dosnt matter how many set there are?

//M
[Windows Mobile Software Development] RoryB:
I do not think there is a limit.
[Windows Mobile Software Development] irus:
thanks i will try this later to day and report back.
[Windows Mobile Software Development] m.klinge:
So ive done som researching on how to incorporate the connection part in my xml - using CeRegEdit helped alot as ive almost gotten it to work by extracting the key that have changed and pointed em into the xml file (Though kinda in blinds when it comes to the binary code). But heres my problem in a nutshell:

After i HardResets the device everything seems fine, but im unable to connect to the internet. In order to get the connection right i would go to the setup where "Manage existing connections" are shown. When i press it i can see the name ive made in the xml show up as a file, so when i edit it, i can see that the "Select a modem" part isnt filled out and hence it thinks its a old school modem conection that would need a phone number.

The funny part is that if i now press back and therefore havnt made any change the device now correctly connects to the internet and now the drop down box shows "Cellular line (GPRS, 3G).

Wich registry part did i left out so that the device would "auto detect" the connection as a callular line?

Im kinda fumbling in the blind here i admit :)

//M
[Windows Mobile Software Development] irus:
ok so i tried the above settings and the exact opposite happen. I now have the send and recieve button but none of my settings are there and yes i did replace the xxxxx with my settings. so i added my old xml file which would import the settings but not send and recieve and no luck the send and recieve is grayed out :( so im not sure where to go from here.
[Windows Mobile Software Development] irus:
ok so i lied it does put the settings in there but i get an error synchronizing when i hit send/receive. also do you know what the parm name is for email address. i tried <parm name="Email" value="irus99@mail2web.com" datatype="string"/>
[Windows Mobile Software Development] kockroach:
The "Sync" option is if you are using a Microsoft Exchange Server. Otherwise, for POP3 or other accounts, you use "Email2". I don't use that, so I am not sure about differences.
[Windows Mobile Software Development] katsuya82:
I tried to install some cabs useing the LOCK:DISABLED option,

however the first thing that pops out is the reboot msg that's set up in the rom image. Shouldn't that reboot msg be pop out at the end of installation?

Another question,

One of the installation process has only "press ok to reboot" option. can it be bypassed?
[Windows Mobile Software Development] RoryB:
Use RapiConfg to gather your Email2 settings. I use these to set up my POP3 account without any registry settings.
[Windows Mobile Software Development] m.klinge:
So another question - how does the xml scrip handle spaces in the registry path? Like this:

HKCU\Comm\RasBook\3 Danmark

Its plain copy from CeRegistryEditor - but i dont think it handles it properly?

//M
[Windows Mobile Software Development] RoryB:
I use CeRegistryEditor to export to .reg file in UNICODE.

I use reg/rgu-2-provxml translator to convert to xml file.

This seems to get the correct format for me.
[Windows Mobile Software Development] m.klinge:
Ahh thx - ill try that right away :)

//M
[Windows Mobile Software Development] irus:
well its a push account so i assumed i use the "outlook email" but im not sure if its using microsoft exchange server, its mail2web that im using.
[Windows Mobile Software Development] kockroach:
If you're using RapiConfig put the following into the RapiConfigIn file:

<wap-provisioningdoc>
<characteristic-query type="EMAIL2" recursive="true"/>
</wap-provisioningdoc>
<wap-provisioningdoc>
<characteristic-query type="SYNC" recursive="true"/>
</wap-provisioningdoc>

This will pull out the "Sync" and "Email2" settings. You will then see which of the two you should use.
[Windows Mobile Software Development] irus:
I got it working like it was working in my old rom. it was the rom i was using but i just upgraded to natf's v4.5 and i am assuming that he kept most of the default files instead of mixing and matching like the rom i had before that. and now it all works and the few bugs that i had are also gone :D
[Windows Mobile Software Development] m.klinge:
I dont seem to be able to get my device to correct change the binary code via xml :(

Now ive tried your advice - but it dosnt change, its still the same old song :(

Anybody who has an idea on what im messing for the xml to config - ive pasted the code with the full binary pulled from CeRegistryEditor here :)

//M
[Windows Mobile Software Development] RoryB:
Another thing to try is when you use CeRegit to export the way I described before, also click the HEX format button when that choice comes up. Convert reg to xml. Then only grab the parts that are HEX (binary) and past those over the ones in your current xml.

It has been a while since I set up my xml and I think this is what I did, but forgot to tell you. My apologies.

UPDATE: I did some searching, I may have actually used RapiConfig to query the settings and used those results. Hope one of these helps.
[Windows Mobile Software Development] m.klinge:
Thx for your reply - however its not my binary thats wrong - its like the device dont even make the changes to the registry :(

//M
[Windows Mobile Software Development] RoryB:
Not even when you run as provxml through task manager?

Mine has never worked in SDAutoRun, but it does work the other way.
[Windows Mobile Software Development] jackls:
File provisioning not working?

Hi all,

for some reason I can not get my file provisionign xml to work

I am trying to move the shortcuts created by some of the installs and they are just not moving.

to test I have cut right down to the minimum, can any one see what I am doing wrong?

SDConfig.txt

: UC Setup SDConfig file
: test

LOCK:Enabled

CAB: \Storage Card\xUC\CABS\ESSENTIALS\HTC_TASKMANAGER_2_1_34563_100_ROMEOS.CAB
CAB: \Storage Card\xUC\CABS\ESSENTIALS\HTC_CONNECTION_SETUP_1_5_34564_2_888_AUTO.CAB
CAB: \Storage Card\xUC\CABS\ESSENTIALS\HTC_END_KEY_1_0_30736_1_hma4.CAB
CAB: \Storage Card\xUC\CABS\ESSENTIALS\MMS_5_0_31_25_888.CAB
CAB: \Storage Card\xUC\CABS\ESSENTIALS\SMSDRFIX_0_9_5_WM61.CAB

CAB: \Storage Card\xUC\CABS\M2D\HTC_Action_Screen2.CAB

CAB: \Storage Card\xUC\MyApps\KeePassPPC_WM6.CAB

:----- PROVISIONIG, REGISTRY personal info etc ----------------------
XML: \Storage Card\xUC\ShortCuts.xml

LOCK:Disabled
RST: Reset

provisiong xml file

<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="=%CE2%\Start Menu\Programs\Accessories" translation="install">
<characteristic type="MakeDir" />
<characteristic type="KeyPassPPC.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\KeyPassPPC.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] wgarrido:
Is there a way with UC to import a certificate?
[Windows Mobile Software Development] komani86:
I am trying to delete shortcuts and create some in the Start menu using UC, but I'm not sure if im doing something wrong here, it doesnt seem to work though.

(I use notepad and this guide incl post info)

<wap-provisioningdoc>
<characteristic type="FileOperation">

<!-- Move shortcuts in start menu-->

<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="MakeDir" />

<characteristic type="File Explorer.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value=":MSFEXPLORE" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<!-- DELETE shortcuts in start menu-->

<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="Delete" />

<characteristic type="Phone.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="ForceDelete" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Messaging.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="ForceDelete" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Contacts.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="ForceDelete" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Calendar.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="ForceDelete" translation="install"/>
</characteristic>
</characteristic>

</characteristic>
</wap-provisioningdoc>

Something is still going wrong though, it cant compile in IE, it says the endlabel doesnt match the begin label, but if im right its setup good this way?

I checked if I closed everything right I think I did... the following error occurs:

Eindlabel wap-provisioningdoc komt niet overeen met beginlabel characteristic. Fout bij het verwerken van bron file:///D:/!...

</wap-provisioningdoc>

--^
[Windows Mobile Software Development] RoryB:
Try changes I made

<wap-provisioningdoc>
<characteristic type="FileOperation">

<!-- Move shortcuts in start menu-->

<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="MakeDir" />

<characteristic type="File Explorer.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value=":MSFEXPLORE" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<!-- DELETE shortcuts in start menu-->

<characteristic type="\file\path\Phone.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

<characteristic type="\file\path\Messaging.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

<characteristic type="\file\path\Contacts.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

<characteristic type="\file\path\Calendar.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] wgarrido:
Is there any trick on getting registry imports to work and email settings?

I can't get it to do make the changes from the XML file. I have it import the settings for S2U2 and nothing. Also I have it set up to setup my exchange email and nothing. Can UC use a .reg file instead of using the XML for reg changes?

Thanks.

I figured it out, has some mismatched tags. I just need to get the cert imported now.
[Windows Mobile Software Development] komani86:
Thanks for the advice, but still gives exact same error..

"Eindlabel wap-provisioningdoc doesnt match with beginlabel characteristic. Error with processing source file:///D:/!...

</wap-provisioningdoc>

--^

"

I dont get what im doing wrong...

if( komani86 == true ) {

return false; // u got pwnt

}

:(
[Windows Mobile Software Development] RoryB:
I do not put the translation="install" in the parm strings. Also, I cannot get xml to work in UC so I run them afterwards using mortscript or taskmanager.
[Windows Mobile Software Development] Noonski:
I'm testing out the new HTC RunCC.exe to work with SDAutorun with some other.

I'm a big fan of Cooking Mort into roms along side with SDAutorun.

It's easier to test your Mort configuration script for registry entries anf file and link creation then with provxml files.
[Windows Mobile Software Development] komani86:
Hmm.. I tried running the XML with task manager and I get an error: 0x80070002

I guess something is off with my XML, might be the install things..

doesnt seem to work, get a 0x80070005 error now

I allready figured out the shortcuts manually though.. my regedits and email settings do install through SDconfig btw.

[EDIT]

Okay I got it working :)

I figured, that if i can NOT find the shortcut you want to MOVE it WILL generate an error...

<wap-provisioningdoc>
<characteristic type="FileOperation">

<!-- CREATE shortcuts in start menu-->
<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="MakeDir" />

<characteristic type="Camera.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\Camera.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="File Explorer.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\fexplore.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Shutdown.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\psShutXP_nosc.exe" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<!-- closing the file-->

</characteristic>
</wap-provisioningdoc>

The code above succesfully copies 4 icons for me, and i am going to try moving now.

Moving files works aswell and copying aswell as described in the first posts of this topic, but if the xml cant find the file it'll jump out and error out, so does anyone know if its possible to add an cmd when 'moving' that a file cant be found and go to next charastic?

Just a tip for people who didnt figure it out; split your actions in seperate xmls!

For example, deleting shortcuts, moving shortcuts, creating shortcuts. If there is an error then a 'part' of your changes will get lost, not everything :)

characteristic type="%CE11%\Resco Registry.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
</characteristic>

I use that to delete a file (its mentioned in a post earlier to work), but if I exec the XML it says it completed successfully, but the file I targetted isnt deleted.. odd.
[Windows Mobile Software Development] l3v5y:
There is an MS tool to convert a certificate into an XML file for provisioning, and there are also some XML tags for exchange mail.

is the exchange CSP

Some things on cer->cab
[Windows Mobile Software Development] wgarrido:
Sweet, thank you.
[Windows Mobile Software Development] RoryB:
You need to open and close the areas of WAP

<wap-provisioningdoc>

<!-- Owner Preferences -->
[COLOR=red]<characteristic type="registry">[/COLOR]
<characteristic type="HKCU\ControlPanel\Owner">
<parm name="Name" value="Cédric" datatype="string"/>
<!-- Owner value is SZ_BINARY: 320 Unicode characters (640 bytes). XML "Binary" datatype processes this as Base64-->
<parm name="Owner" value="//5DAOkAZAByAGkAYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==" datatype="binary"/>
</characteristic>
[COLOR=red]</characteristic>[/COLOR]

[COLOR=#ff0000]<characteristic type="file operation">[/COLOR]
<characteristic type="%CE2%\Start Menu\Programs" translation="install">
<characteristic type="MakeDir" />
<characteristic type="GPRS NoData.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Communications\GPRS NoData.lnk" translation="install"/>
</characteristic>
</characteristic>
</characteristic>

<characteristic type="%CE2%\Start Menu\Programs\Communications" translation="install">
<characteristic type="RemoveDir" />
</characteristic>

<characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
<characteristic type="MakeDir" />
<characteristic type="ChainReaction.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\ChainReaction.lnk" translation="install"/>
</characteristic>
<characteristic type="POP HD.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\POP HD.lnk" translation="install"/>
</characteristic>
</characteristic>
</characteristic>

[COLOR=red]</characteristic>[/COLOR]
</wap-provisioningdoc>
[Windows Mobile Software Development] ptitrusse:
I knew somehow it wasn't just a detail but that I had missed something important..

thanks a lot I'll try it out tomorrow.. i'll probably come back with a few more questions ;)

thanks again