yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] JoeWilcox:
Keeping messages on the server and roaming

I'm using provisioning/email2 to create my accounts just fine. They are 99% there with the exception of the two options. #1 is to keep messages on the server and #2 is to get messages while roaming. Does anyone know what setting controls these?
[Windows Mobile Software Development] Noonski:
Did yiu try with an added space before the frontslash?

<parm name="SortOrder" datatype="integer" value="1" />
[Windows Mobile Software Development] lint:
Unfortunately, that didn't make a difference. Does SDConfig method of updating execute .reg files? I'm inclined to think we have a bug somewhere and may switch to a XDA_UC compatible rom otherwise.

Appreciate any other ideas.

Thanks
[Windows Mobile Software Development] RoryB:
I had some xml files that never worked in SDAutorun. That is one of the reasons I converted to using MortScript. One of the others being not having a program installed that only runs at hard reset and no other time.
[Windows Mobile Software Development] lint:
Thanks for the feedback. I've just started diving into the whole customization idea and until now, it's been an awesome experience. I'm curious...is Mortscript the best way to go as far as compatibility is concerned with future XDA-member developed ROMs are concerned? I, personally, think Noonski's XDA_UC concept is pretty elegant and simple esp. from a newly flashed OS POV.
[Windows Mobile Software Development] RoryB:
The nice thing about mortscript is that you can install it and then run scripts without the ROM even having User Customization of any kind installed. You just have to create a script to do the work.
[Windows Mobile Software Development] ptitrusse:
hi

if it's any use to anybody, I've finally found why I couldn't get my wifi settings back: I had to edit the xml file which Rapiconfig got me in order to put it the network key which is stored as a bunch of *****... :)

still can't get gprs settings to work though
[Windows Mobile Software Development] madnish30:
Hey guys.

I'm the newest entrant to UC.

Just trying to get the hang of it.

LOCK:Enabled
CAB:\Storage Card\Cabs\CallFirewall_V_1_4.CAB
CAB:\Storage Card\Cabs\changeScreen_inst.CAB
CAB:\Storage Card\Cabs\Fabliv HTC Diamond Action Screen VGA v2 EN.cab
CAB:\Storage Card\Cabs\GPS_Location_v1.0.cab
CAB:\Storage Card\Cabs\nitrogen-1.1-wm5.cab
CAB:\Storage Card\Cabs\PocketLiTE_1.0.1_English(US)VGA.cab
CAB:\Storage Card\Cabs\SensorScroll-0_7.CAB
CAB:\Storage Card\Cabs\TouchResponse_v0_3_1.CAB
LOCK:Disabled
RST:Reset

Guys i just created this UC File under the name of "SDConfig" and placed it in root directory of Storage SD.

Then i reset and as i think it should have started Installing the Cabs ( I placed all these cabs in the Cabs folder in SD ). It did not :(

I wonder where i went wrong or what i did wrong please help.

I made this Code using SDConfig Builder.
[Windows Mobile Software Development] Noonski:
Did you reset or Hard Reset?
[Windows Mobile Software Development] madnish30:
Sir after placing this file(SDConfig which is a notepad file and opens as a word file on Device) on SD card I did a hard reset but nothing happened just the normal boot took place.

Please help.

Thanks.
[Windows Mobile Software Development] xdasn:
See the first post:

I think this woul be the right way:

CAB: \Storage Card\Cabs\GPS_Location_v1.0.cab
[Windows Mobile Software Development] madnish30:
I did this only.( the space between )

Could you please confirm that it should be a text document which opens uusing notepad on PC and Word on PPC.

Thanks,
[Windows Mobile Software Development] KewlRobD:
I was looking at the thread for your ROM and it appears that there are some special requirments for doing UC on it.

See here for more info

I think your problem may be the Lock and RST commands. It explicitly says you cannot use those
[Windows Mobile Software Development] madnish30:
Thanks budy.

I guess i will change to another ROM and then get started with UC.

Thanks :)
[Windows Mobile Software Development] KewlRobD:
I can Recomend the NRG Rom's. Many will agree they are top notch and I have never had any issue using UC on them. Good luck.
[Windows Mobile Software Development] blast0id:
is it possible to use UC to kill a running task so that you can install say a phone canvas?

also, would it be possible to use UC to start sashimi from the storage card and have sashimi do the automatic installation and restoration of your files/settings?
[Windows Mobile Software Development] Noonski:
Hmm only if the rom also supports Mortscript.

You could add mortscript into the SDConfig.txt and make it:

Kill("cprog.exe")

But since you are guaranteed that the phone will reset anyway at the end of customization, i don't see why you wouldn't be able to reskin the phone canvas.
[Windows Mobile Software Development] someperson:
some applications such as g-alarm 2.3 and Google maps launch immediately after CAB installation as part of the installation process for further installation preferences e.g deletion of language files that you don't need in g-alarm, or activating the today screen plug-in etc.

I can install them with UC but I will not be able to set the aforementioned preferences since UC won't display the settings screens usually displayed with normal manual CAB installation for similar applications.

1- Any available workarounds?

2- UC doesn't work with Finger keyboard 2.1. will give timeout since it lauches configuration - also as part of installation -, any suggestions?

Thanks in advance.
[Windows Mobile Software Development] rpachecoh:
Yes, you can, same solution for both. I've configured UC like this:

LOCK:Enabled
HIDE:Disabled
CAB: \Storage Card\UC Raphael\Cabs\cleanRAMv1.93.cab
CAB: \Storage Card\UC Raphael\Cabs\RaphKbdControl_GSM.cab
CAB: \Storage Card\UC Raphael\Cabs\Resco_Bubbles.cab
CAB: \Storage Card\UC Raphael\Cabs\TomTom_Navigator_7.910.cab
CAB: \Storage Card\UC Raphael\Cabs\FreeOTFE4PDA_5_10.cab
CAB: \Storage Card\UC Raphael\Cabs\Cyberon_Voice_Commander_2.5.2_909141_ESP_trial.cab
CAB: \Storage Card\UC Raphael\Cabs\RescoExplorer_P_V7.05_Cracked-rUnLiu.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\UC Raphael\Cabs\Max Manila 2.5 - v2.7 Main (beta).cab
CAB: \Storage Card\UC Raphael\Cabs\Teclado_iMMc_1.23.cab
LOCK:Enabled
HIDE:Disabled
XML: \Storage Card\UC Raphael\XML\create_connection.xml
XML: \Storage Card\UC Raphael\XML\create_mail_accounts_DM.xml
XML: \Storage Card\UC Raphael\XML\owner_info.xml
XML: \Storage Card\UC Raphael\XML\configure_speeddial.xml
XML: \Storage Card\UC Raphael\XML\MarketPlace_Region_Switch.xml
XML: \Storage Card\UC Raphael\XML\sms_recipients_fix.reg.xml
LOCK:Disabled
RST: Reset

Take care of the section for MaxManila and iMMc
[Windows Mobile Software Development] someperson:
Thanks rpachecoh

forgot to mention in my previous post that I'm using the method you mentioned but to no avail

currently the UC of my device is doing it for around 30 minutes and unable to finish!

my SDConfig.txt

LOCK:Enabled
CAB: \Storage Card\Store\WM 6.5\Sys Tools\NeoS2007_Driverpack_3.cab
CAB: \Storage Card\Store\WM 6.5\Sys Tools\registrymui_p.arm.cab
CAB: \Storage Card\Store\WM 6.5\Sys Tools\HD Tweak 0.5.4_English.cab
CAB: \Storage Card\Store\WM 6.5\Sys Tools\SPBBackup2.arm.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Store\WM 6.5\Arabization\TA_MOBiDIV_416_AR_Eng.cab
CAB: \Storage Card\Store\WM 6.5\Arabization\1-TSD_Hijri Calendar_P4_NOV27.cab
CAB: \Storage Card\Store\WM 6.5\Arabization\2-TSD_PrayerTimes_P4_NOV27.cab
CAB: \Storage Card\Store\WM 6.5\Arabization\3-TSD_Dictionary_P7_NOV27.cab
CAB: \Storage Card\Store\WM 6.5\Arabization\4-TSD_MOBiDIV_Quran_P15_WM6.1_JAN10.cab
CAB: \Storage Card\Store\WM 6.5\Apps\galarm-VGA_2.3.cab
CAB: \Storage Card\Store\WM 6.5\Apps\GoogleMaps.cab
CAB: \Storage Card\Store\WM 6.5\Sys Tools\RescoExplorer_PocketLand.ARM.cab
CAB: \Storage Card\Store\WM 6.5\Sys Tools\FingerKeyb-2.1-WVGA_2_.cab
HIDE:Disabled
RST: Reset
[Windows Mobile Software Development] rpachecoh:
Sorry, someperson, I don't see anything weird in your SDConfig.txt

In fact, my User Customization does not go on until I configure FingerKeyboard or any other cab that requires user interaction. Are you sure all the cabs that come before FingerKeyboard are installed properly?
[Windows Mobile Software Development] someperson:
Resco Explorer would give me a box to choose language but I won't be able to press O.K for English

g-alarm would install O.K but without displaying the usual screen for setting the today plug-in and deleting the languages other than the one you select.
[Windows Mobile Software Development] TheTimetraveler:
would love to get something that works better, but it isn't my decision, is it?

Or does EnergyRom Photon2 already support that better xda_UC?

Right now I use the basic UC.
[Windows Mobile Software Development] rjh1:
still looking for these settings..

Hi Guys:

I am still looking for these settings, does anyone have info on them?

1) Calendar settings (set reminder times to 0) <---FOUND! Thanks to mccune!

2) how to auto setup my bluetooth device <---FOUND! had to use reg editer to extract data, BUT still need to give permission to pair up!

3) setup my stock tab with my stocks in it <---FOUND! They are stored in

\Application Data\HTC\YGo

There are 2 databases, ygoservice.db and ygoservice_sr.db

4) change tab order <---FOUND! Thanks to FWT!

I have been looking for several months now for the answers...

Thanks, Rick
[Windows Mobile Software Development] mccune:
Can only help your about the first problem I hope.

Set you reminder to the desired value and exit Calendar.

Use an regsitry editor to export the following key:

HKLM\Software\Microsoft\Reminder\

View the exported value with Notepad++ or something like that. Now you can see the value of the reminder. You could try to convert it from REG to XML to include it in your UC configuration ;)
[Windows Mobile Software Development] rjh1:
Thanks... That helped out so much! I found that I was doing Binary conversion wrong, maybe now I can get my bluetooth working because it uses binary too...

Thanks again,

Rick;)
[Windows Mobile Software Development] mccune:
You're welcome... Have this tweak also in my TouchPro2 ROM. It works very nice ;)
[Windows Mobile Software Development] fwt:
Hi,

as far as i know for Q4 take a look into:

HKLM\Software\HTC\Manila\Configuration\

backup / export all Subkeys (0 ... 12 in my case)

For Q3 i did a export of the complete Registry befor and right after editing the Stocks Tab and compared them with windiff => no relevant changes found, so it has to be stored as a file.

But i can't determine which one :(

reagrds

fwt
[Windows Mobile Software Development] rjh1:
That worked great! thanks FWT!

Rick
[Windows Mobile Software Development] dXsL:
Example sdconfig.txt, xcopyce.txt, provisioning.xml

Studying to be a cook, and now digging into UC.

after a few hours reading on the forum, and an answer from Sleuth, I created the following files (used with EnergyROM_28011_Leo_06.Jan.2010_StandardM2.5)

It's a collection of what I found in several threads, and I hope it can serve as a nice example :)

[EDIT] one "minor" glitch... US does not like empty lines :) in fact, as soon as it finds an empty line, it quits :D. Found this out while testing with another ROM this afternoon. remedy: remove all empty lines. ?not sure if this also applies to xcopyse.txt and .xml files. [/EDIT]

sdconfig.txt:

[SIZE="1"]# sdconfig.txt
# pre: sdconfig.txt, xcopyce.txt and provisioning .xml file(s) in root of storage card, CABs in \_cabs on storage card
# 07jan2010 dXsL@hotmail.com File creation
# 08jan2010 dXsL@hotmail.com Added provisioning, Interactive install

# Lock device (needed for install)
LOCK:Enabled

# Unattended install of programs on device
CAB: \Storage Card\_Cabs\BsB Tweaks 1.6.cab
CAB: \Storage Card\_Cabs\DivXPlayer_PP_093.CAB
CAB: \Storage Card\_Cabs\MyStopWatch 2.0.cab
CAB: \Storage Card\_Cabs\regedit.Mrln_ARM.cab
CAB: \Storage Card\_Cabs\SkypeMobile.CAB
CAB: \Storage Card\_Cabs\TorchButton_v2.3.cab
CAB: \Storage Card\_Cabs\WM Live_PPC.ARM.CAB
CAB: \Storage Card\_Cabs\xdaShutdown 1.01 - WVGA.cab
CAB: \Storage Card\_Cabs\MarkAllReadInbox.CAB

# Interactive install of programs on device
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\_Cabs\Opera_Mobile_10_WM_beta_2.cab
HIDE:Disabled
LOCK:Enabled

# Install Tweaks on device
CAB: \Storage Card\_Cabs\Touch X button icon in messaging.cab
CAB: \Storage Card\_Cabs\Touch X Change Reply All to Reply in Email.cab
CAB: \Storage Card\_Cabs\Touch_X_Left_softkey_as_camera.cab

# Copy xcopyce to device, and execute (needs xcopyce.txt in root of storage card)
CPY1:\Storage Card\_Cabs\xcopyce.exe
CPY2:\Temp\xcopyce.exe
EXEC:\Temp\xcopyce.exe

# Configure device (execute one or more .xml files, e.g. to set registry keys)
XML: \Storage Card\MyProvisioning.xml

# Unlock device
LOCK:Disabled

# Reset device
RST: Reset
[/SIZE]

xcopyce.txt:

[SIZE="1"]# xcopyce.txt
# 08jan2010 File creation

# Disable EnergyROM boot sound
"\Storage Card\_Cabs\bootuphtc.wav" \Windows\bootuphtc.wav

[/SIZE]

myprovisioning.xml:

[SIZE="1"]still debugging, uploading clean version later ;)[/SIZE]
[Windows Mobile Software Development] dXsL:
5 short questions about UC

Q1. I read that spaces at the end of a line are not allowed.

what about an empty line? my script failed; still debugging but I think because of an empty line in my sdconfig.txt

Q2. can an UNinstall be automated? fx when Opera 9.7 is explicitly installed by the chef, after the cook (e.g., EnergyROM does that). I would like to user Opera 10, after I uninstall Opera 9.7 :) So it IS uninstallable via the settings menu.

Q3. how many characters are allowed as argument to CAB: command

Q4. is there an extra restriction in the CAB: argument? spaces are allowed in it I noticed. But how many DOTs are allowed? I keep having troubling installing \Storage Card\_Cabs\pocket.rar.v3.80.cab (4 DOTs)

Q5. I noticed sdconfigbuilder v0.6 produces sdconfig files where CAB: is NOT followed by a space. Is there a rememdy (other than manual edit of the file)

[EDIT] ad Q4... the file pocket.rar.v3.80.cab is actually MIA from my SD. And so are 12 more. I copy 113 files to my SD in a folder, check the contents while the SD still is in my laptop (Sandisk micro SD reader). I put the card in the phone, get it to run sdconfig again, fails on pocket.rar, I check the contents of the SD again, and from the 113 files there are only 100 left ?????????????????????+

ANYONE at all have a clue how this is possible?? I redid it 3 times, with the same result. No AV on my device installed that could "eat" files. [/EDIT]

TIA!
[Windows Mobile Software Development] dXsL:
Thank you Bill :(

sdconfig.txt consistently failed and I finally found out WHY.

A .cab file resides on my harddisk, is copied to my SD card. so far so good.

I insert the SD card in Leo, and still the file is there.

Via settings/reset device I force a reconfiguration, including rereading of sdconfig.txt. Then, it fails "power.rar...." is missing.

I insert the SD card in my laptop, the file is indeed missing. I run total commander comparing my _Cabs folder on harddisk and SD card, and 13 files are missing from the SD card.

when I open Properties of these 13 files on my harddisk, it reveals this:

just below Attributes (which usually is in the bottom of the General tab), there is "Security: This file came from another computer and might be blocked to help protect this computer". to the right is an "Unblock" button.

Click "Unblock" and the next time you open properties, the warning is gone.

*** it seems that Windows Mobile while booting protects itself from these files by DELETING them from the SD card ***

????????? (using Win7 x64 on my laptop)
[Windows Mobile Software Development] rjh1:
Hi dXsL

my guess for your vanishing cab files is that your device is set to delete them after install, you can change this setting in advanced config, you can also make the files "READ-ONLY" so they cant be deleted on the phone...

BTW: blank lines does not affect my files

Rick
[Windows Mobile Software Development] dXsL:
tnx! i'll try the read-only option.

I cannot change the advanced options, since i'm running sdconfig right after a flash (I flash different ROMs about 2-3 times a day).

[EDIT] solved it...

@rick: you're totally right. cabs were deleted after install. i tried several versions of sdconfig.txt until I had a clean "boot+config", programs were installed, and those cabs were missing from the SD card. kind of annoying though, that that is a default setting.....

I'll try the read-only option now.

the reason why i got the error, is that the line with pocket.rar existed... ahum... twice. so yes, the second time it could not find the cab and config crashed.

[/EDIT]
[Windows Mobile Software Development] dXsL:
funny... just tested that, blank lines DO affect mine... possibly our ROM builders used difference versions of UC (now testing on Miri 28205 1.0, released 08jan2010).
[Windows Mobile Software Development] mattanur:
Will u pl elaborate how to create a cab to install only to Storage card using WinCe Cab Manager?
[Windows Mobile Software Development] ganxq:
xiexie!!!!!!!!!!!!!!!!!!!!!!!
[Windows Mobile Software Development] sschrupp:
Dear lord I thought I was going crazy! Something wouldn't install right so I'd have to try and reflash. But then a file would be missing, which means I'd have to reflash, but then.... ARGH.

So now I know what's happening and I'm NOT losing my mind! Thanks!
[Windows Mobile Software Development] agibby5:
I finally got up to date and learned UC and I gotta say, for the few hours it took me to get working... it will definitely pay off in the long run by saving time after rom updates.
[Windows Mobile Software Development] somemorestuff:
I too tried this and it didn't work (was trying to move the "Bing.lnk" that's marked read-only and system). After cabbing it up separate "copy" and "delete" fileops and running I get "unsuccessful". (I built the xml on a working "move" xml file)

I think it's because the definition of "ForceDelete" doesn't appear to have anything to do with attributes (it sounds more like a lock override if another program has the file open for editing):

I also tried using this parameter with a move:

But got the same error (perhaps I screwed up the code...):

<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE17%\Programs\GPS" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Bing.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
<parm name="RemoveAttributes" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

This is just spitballing, but maybe we don't have the "Manager Role" when installing from a CAB? I'll try running directly from SDAutoConfig later.

I like the clean Mortscript example, but that only works if Mortscript is installed. I don't want to bank on that if I don't have to (i.e. stock roms, etc).

Also, I tried testing these fileops xml files (even working ones) with SASHIMI, but it doesn't seem to do anything (no errors, nothing)??? Am I missing something??? (I think it would be easier to test with SASHIMI rather than cabbing with SDConfig Builder each time).

Any ideas on the code or the testing? :confused:

FYI - currently I'm running Energy.HERMAN.23529.Sense.2.5_MaxManila.16.Feb.2010.rar (and yes, it has mortscript installed, and I know SASHIMI installs it too - I'm in the alpha phase of my re-install script here ---> just testing everything :D)
[Windows Mobile Software Development] RoryB:
The RemoveAttributes is operating on the file in the location the original is moved or copied to. I do not know why it is not working. Could try

<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE17%\Programs\Internet" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Bing.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
<parm name="RemoveAttributes" />
</characteristic>
</characteristic>
<characteristic type="%CE17%\Programs\GPS" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Bing.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

The idea being copy it to its current location to try to apply RemoveAttributes, then try moving it to where you want. Not sure this would work either, but it is just a stab in the dark.
[Windows Mobile Software Development] somemorestuff:
Hmm, thanks I don't think any right-minded file op would allow you to copy or move to and from the same location, but I see where you're going with it.

Maybe I'm being naive here, but there must be a way to do it since the bing.cab is uninstallable (do you by chance know where the uninstall xml file is usually? Maybe that would give me a clue...)

I'll hack on it once more before I resign myself to MortScript (I've got the same problem with rilphone.dll I think).

Thanks!
[Windows Mobile Software Development] RoryB:
Another option is to edit the cab with a program like wincecabmanager to have the shortcut created where you want it.
[Windows Mobile Software Development] somemorestuff:
True, but I'm modifying the already installed Bing that came in the ROM (Energy Rom's have it cooked in). Still haven't gotten to testing this yet, trying to straighten out the mythical text messages that get sent to everybody a bunch of times after restoring them using PIM backup! I guess I really should go ahead and delete some of that stuff...
[Windows Mobile Software Development] chathar:
Kindly add my ROM as SDAutoRUN enabled:

ROM Title: ATHAR ROM FOR ELF/ELFIN

URL: http://xdaforums.com/showthread.php?t=634936

OFFICIAL WEBSITE: http://htc.c4cupid.com
[Windows Mobile Software Development] Outloook:
Hi all,

I am trying to make xml file which deletes Pictures & Videos.lnk from one folder. I use this syntax (usualy without any problem)...

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

<characteristic type="\Windows\Start Menu\Programy\Media\Pictures & Videos.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

</characteristic>
</wap-provisioningdoc>

...and noticed, that it probably have problem with reading "&". How should i write it?

Thanks for help, I am stucked about 3 hours :/
[Windows Mobile Software Development] agitate:
I'm not exactly sure how UC XML files work (so I may be missing something), but for XML, according to http://www.w3.org/TR/xhtml1/#C_12, you need to use the entity reference:

&

So you would have:

<characteristic type="\Windows\Start Menu\Programy\Media\Pictures & Videos.lnk" translation="install">
[Windows Mobile Software Development] DaveShaw:
Do & as &

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

<characteristic type="\Windows\Start Menu\Programy\Media\Pictures [COLOR="Red"]&[/COLOR] Videos.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

</characteristic>
</wap-provisioningdoc>

It's an XML thing ;).

Dave
[Windows Mobile Software Development] chathar:
Hi there, can anybody please tell me, what would be the syntax of provxml file to change a file attribute like readonly, system, hidden etc?