yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] bnycastro:
For customizing Owner Name:

I made a Text File named: Vincent Benedict Py Castro.txt

Wrote my name inside and saved it as unicode with .txt as extension

How do I do the next step?

sorry I really don't know the first thing about hex and unicode...

Did I convert it correctly:

Here is the registry export

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\FontLink]

[HKEY_LOCAL_MACHINE\Software\Microsoft\FontLink\SystemLink]
"Tahoma"="\\Windows\\sunfon.ac3,SC_Song"
"Courier New"="\\Windows\\sunfon.ac3,SC_Song"
"Arial"="\\Windows\\sunfon.ac3,SC_Song"
"Times New Roman"="\\Windows\\sunfon.ac3,SC_Song"

Here is the param code I wrote:

<!-- Chinese Font Fix -->
<characteristic type="HKLM\Software\Microsoft\FontLink">
<parm name="Default" value="0" datatype="integer"/>
<noparm name="Default"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\FontLink\SystemLink">
<parm name="Tahoma" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Courier New" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Arial" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Times New Roman" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
</characteristic>
[Windows Mobile Software Development] bnycastro:
Also for the CPY1 and CPY2 commands can we copy whole directories?
[Windows Mobile Software Development] dan1967:
CPY1&CPY2 works fine in my case. I use it to restore contacts from Storage Card backup of pim.vol.

CPY1:\Storage Card\PIM.VOL

CPY2:\PIM.VOL

with this exact syntax. I've edited/corrected the wiki page also.

I also attach a nice tool to convert .reg and .rgu files to xml
[Windows Mobile Software Development] Noonski:
Euhm, eeuuuuuuh.

You mean thios F&*în works.

Man this is goind to be a heavy weekend with UC Compliancy.

Great thread. Finally it arives.

I'll be integrating it into my ELF Rom's
[Windows Mobile Software Development] zyncmaster:
WOW! This is cool stuff... Noonski, i hope you can make a working prototype to showcase what's being discussed here for our Elf... :)
[Windows Mobile Software Development] Sleuth255:
UC should work on any device.
[Windows Mobile Software Development] Laurentius26:
Hi,

I've made a sdconfig.txt today and added my favorit apps.

It works great :D

Thanks Sleuth,

Leo :)
[Windows Mobile Software Development] Sleuth255:
Nice tool! Now how about a little RAPI connection that moves the cabs and SDConfig.txt onto the device or maybe something as simple as using activesync manager to do on the next sync.

RAPI would be the coolest though because you could pre-load from the existing \Storage Card\SDConfig.txt file as well.
[Windows Mobile Software Development] elgreek84:
is it easy to do this? what program did you use? does it overwrite files? thank you in advance.
[Windows Mobile Software Development] cmylxgo:
I use WinCE Cab manager. You drag the files you want to have copied and tell it what folders to copy it. Then you save the .cab file and copy to your phone and it will overwrite and even created directories for you.
[Windows Mobile Software Development] Alex_electro:
File : \Storage not found....Issue Solved ?

Hi i wish to know if somebody had any luck to use EXEC fonction ... All the other thing work just fine CAB ect But i always have a file not found error for the autorun.exe i try to execute it seam that it don't recognize the ''storage Card'' because of the space between Storage and Card. As i change to ''Storage_Card'' or StorageCard'' it give me a file not found but with the full Path that does'nt exist i.e. ''File\ Storage_Card\Cabs\iGO_My_Way_2006_Plus\2577\autorun.exe does not exist''.....So may be it a way to make a partition on the storage card named ''Storage_Card'' to run the software that need to run on SD card....

Thanks .

Alex
[Windows Mobile Software Development] l3v5y:
I think the "file" is unnecessary... "Storage Card" works fine for me.

Try something like this:

exec:\Storage Card\Cabs\iGO_My_Way_2006_Plus\2577\autorun.exe

and make sure the "iGO_My_Way_2006_Plus" is written as that, rather than with spaces.
[Windows Mobile Software Development] Alex_electro:
I have this as you state...

Thank's for the quick repply. I have this written like this already . I'll try to post a copy of my config.txt to show may be i'm missing a little someting. Always same result so my las try was to manually put the autorun.exe file in RO let's see...

Again Thanks
[Windows Mobile Software Development] l3v5y:
Does the rest of this work? Try removing the exec command, and testing it. Then try replacing the "RST: reset" line with the exec:... line and see if that works.
[Windows Mobile Software Development] Sleuth255:
I've never tried to call autorun from an autorun EXEC: statement before.... that may cause issues. I concur with putting it as the last statement.
[Windows Mobile Software Development] Alex_electro:
Yip all the rest work very fine...

Yes all the rest work very fine don't work better if i put on RO.

I'll try to put this statement at the end of my config....

Thank for helping me Guy's
[Windows Mobile Software Development] Alex_electro:
I think that i should let the....

I think that i should let the RST Statement to close de config state...Am'i Wrongso i put it at the end and try with a space before Storage card i.e.''\Storage Card'' tot ''\ Storage Card'' and it became the'' not thrusted or signed''....windows, if i delete de \ on 6 caractere it say '' : Storage does not exist''.... to follow
[Windows Mobile Software Development] ph03n1x:
could u guys help me out with these two xml files? i don't know why but i cant get them to work correctly is it my syntax or something else?

update: i think i may have found the problem didnt check word wrap :T

update 2: ownersprov works not ucsetup
[Windows Mobile Software Development] kannaguchio:
So far I've not been able to successfully import several settings via UC. Any help/info is appreciated.

Cleartype:

I doesn't seem to work. If I disable Cleartype and then run a cab with the xml, cleartype isn't enabled. The same procedure worked with the backlight so I don't see why it wouldn't work here.

Notifications:

I can't seem to get these to install successfully. Maybe it's because each entry has a guid? I'm sure that I had no syntax errors.

Camera Settings:

The entries are clear enough, and while they write successfully the changes illicit no effect on the settings in the camera. I had saved settings from the HKLM\Software\HTC\Camera. Well, most didn't, I should say. The settings for large video resolutions and 19fps capture worked fine.

Clock Settings:

HKLM\Software\Microsoft\Clock

Like the camera settings, the reg entries there install fine and look alright, but only the alarms changed. I can't get the timezone or the taskbar clock to change.
[Windows Mobile Software Development] l3v5y:
Try making a cab with just one operation in it. Test the _setup.xml first by loading it in IE.
[Windows Mobile Software Development] kannaguchio:
Yeah, buddy, that's what I've been doing. Outside of the Notifications, everything else loaded fine but just wouldn't have any effect. They're all settings I can live without so it's not big deal, really.

One additional question on this front that may be pertinent in general: how can I edit a multiple string value? In my case I want to add the DNS servers into the registry but I have no clue of the proper syntax for that kind of value.

Edit:

I'm a dunce. I complete forgot about AutoInstall! Not that I want it to replace UC; on the contrary, I prefer UC because I like just having to edit txt files without worrying about having my provisioning file in a cab or anything.

Anyway, I have another problem. I used the EXEC command to call up the AutoRun.exe of Auto Install, but when it does it gives an error message about \Storage not being a valid path or something, like the EXEC command is not able to parse spaces. It's a drag to have to hard reset everytime I want to test something, as well. Is there a way to make AutoRun execute outside of a hard reset?
[Windows Mobile Software Development] l3v5y:
I don't think there are command line options but I may be wrong.
[Windows Mobile Software Development] logger:
Finally got to test UC after loading a new ROM today. Worked really well after a few hiccups of my own making.

Is it normal to expect the CABs to be deleted once UC is complete? I read the posts back on 11/3/08 but did not understand what was correct behaviour. In any case all of the cabs mentioned in my SDConfig.txt were deleted at some point. Is the correct way to prevent this to manually set each one to RO?
[Windows Mobile Software Development] drkbg:
Is it possible to autoconfig WiFi using UserCustomization?

on page 2 of this thread there is a trick with RapiConfig. But on my device it doesn't output any information... of course I have one wifi network configured.

can anyone show me an example how it is done?
[Windows Mobile Software Development] l3v5y:
You can manually gather the WiFi information from the registry (I can remember where it is, but I can find it...) and then use the RGU to XML tool in the first post to create the basic xml data...
[Windows Mobile Software Development] drkbg:
and where is it ;) any clue?
[Windows Mobile Software Development] Sleuth255:
No, SDAutorun does that itself. Check your registry under HKLM/comm and tell me if there is a value called "SDAutoRunVersion" there.

Also, please post your SDConfig.txt file so I can take a look at it.
[Windows Mobile Software Development] Sleuth255:
What device are you using? On a Kaiser, Cleartype is enabled on the next reset by simply adding the key as shown in my example.
[Windows Mobile Software Development] Sleuth255:
run AutoRun.exe with a RUN parameter to make it work.
[Windows Mobile Software Development] logger:
There is a value called "SDAutoRunVersion" there. (2.0).

Here is my SDConfig.txt

[I]LOCK: Enabled
Cab: \Storage Card\CABS\AdobeReaderLE_20.cab
Cab: \Storage Card\CABS\BatteryStatus.0.05.CAB
Cab: \Storage Card\CABS\GoogleMaps_compressed.CAB
Cab: \Storage Card\CABS\KaiserTweak-nikagl-0208-1950.cab
Cab: \Storage Card\CABS\Pocket_Mechanic_Setup_WM6.2577.CAB
Cab: \Storage Card\CABS\SkypeForPocketPC.CAB
Cab: \Storage Card\CABS\SplashID.CAB
XML: \Storage Card\Cabs\AllFourEmailAccsTedProv.xml
XML: \Storage Card\Cabs\MakeDIRTedProv.xml
CPY1:\Storage Card\Cabs\TaskMgr.exe
CPY2:\Program Files\DotFred\TaskMgr.exe
CPY1:\Storage Card\Cabs\Registry editor.lnk
CPY2:\Windows\Start Menu\Programs\Utilities\Registry editor.lnk
LOCK:Disabled
RST: Reset[/I]

Probably not related, but I renamed my 2577 folder so it would not install TomTom which required a reboot and was tripping the processup. All in the above script ran and installed fine. Just that the CABs got deleted.
[Windows Mobile Software Development] Sleuth255:
SDAutoRun.exe should have already made the referenced cabs RO. You can check this with a file manager. There have been reports that some autorun programs ignore the RO settings.

I'm also assuming that no file not found errors were thrown during UC, let me know if this isn't the case.

I'm attaching a program named "SDConfigtest.exe" which does everything SDAutorun does but execute autorun. Go into HKLM/comm and set SDAutoRunFlag to a 0 then tap this applicaton to run. Nothing will appear to happen. Now go check two things:

Were the cabs referenced by your SDConfig.txt file set to RO?

Is there a file named SDConfig.txt in /windows that's identical to the one on your SD card?

Finally, what device do you have?
[Windows Mobile Software Development] logger:
Hi and Thanks.

No Errors reports during UC.

No none of the CABS got set to RO after running "SDConfigtest.exe". and I did as you said and set SDAutoRunFlag to a 0

Yes, there a file named SDConfig.txt in /windows that's identical to the one on my SD card. I can tell this because I modded the SDConfig.txt file about an hour ago and those changes are in the /windows version now.

My device is a Kaiser (TyTNII).

Oh and finally it is NOT an issue cos I see that I can manually set the files to RO and they will stay. But I am happy to help out if I can. Thanks for the great time saving utility BTW.
[Windows Mobile Software Development] Sleuth255:
Thanks for the information. Now try this: take the SDConfig.txt file that was created in /windows, move it to your SD card to overwrite your original, then re-run SDConfigTest.exe. Are the files set to RO now?

What's unusual about your problem is that I have a Kaiser too and the SDConfigTest.exe program I sent you correctly mods my CAB files to RO.

One other thing to check:

is HKLM\Security\Policies\Policies\0000101a set to a 1?
[Windows Mobile Software Development] DvTonder:
Bepe has included a CusTSK in his latest 0.65 rom for Polaris however this also seems to not work - same issue, seems to change during UC but does not.
[Windows Mobile Software Development] kannaguchio:
Argh, this is frustrating. Now my file operation CSPs no longer install. I keep getting the installed unsuccessful error. I've even tried the following operation, copied and pasted from the first post which worked before but no longer does, even after a hard reset. I'm using a Sprint Mogul and no2chem's build 5059 ROM.

Could someone please look at the following example I tested from the first post and offer an explanation? :confused::(
[Windows Mobile Software Development] l3v5y:
Try installing this cab (it's just a cab of your xml) and see if it has any effect.
[Windows Mobile Software Development] kannaguchio:
That's a no go. Doesn't install just like the test.cab I created doesn't install. I wouldn't be so annoyed if it wasn't so random and mysterious.
[Windows Mobile Software Development] Sleuth255:
That code assumes that sp timesync.lnk exists in \windows\Start Menu\Programs\. Did you have a cab statement that installed sp timesync? If so, make sure you installed it prior to running this xml.
[Windows Mobile Software Development] l3v5y:
Just looking back, my SDAutoRun (I'm using a slightly old signed version) also deletes my files, and doesn't set them to read only. If I manually set them to read only its fine. This isn't such a big deal as I have a batch file that copies all the cabs I want each time I upgrade, but it might get a bit annoying...
[Windows Mobile Software Development] kannaguchio:
You know, on one, and only ONE, of my operations I had a trailing "\" following the name of a folder I was creating. That incorrect syntax bombed out the entire process. Let this be a lesson!

I thank all of you guys for the help.
[Windows Mobile Software Development] l3v5y:
Is there any way to make SDAutoRun ignore a line if the cab can't be found? That's been my only problem (caused by SDAutoRun deleting my cab one time through and then crashing when it can't find the cab).
[Windows Mobile Software Development] Noonski:
Well if SDUatorun could change the registry keys

KKCR\cabfile\Shell\Open\Command

to

@=wceload.exe "%1" /nodelete

Nobody would need to mind deleted cabs because they were not set to read only.

I always cook this into rom using first autorun part in a cab.
[Windows Mobile Software Development] l3v5y:
I think I'll be using that! Thanks...
[Windows Mobile Software Development] Sleuth255:
I sure wish I could understand why SDAutoRun doesn't change cabs to RO on some devices..... I can't make it fail to do this on mine. Can somebody who is having this issue tell me what attributes are set? On mine, only Archive is checked and SDAutoRun correctly sets the RO flag. Maybe the System attribute prevents this?
[Windows Mobile Software Development] l3v5y:
With no attributes set at all, it fails to mark as read only on my prophet.
[Windows Mobile Software Development] Sleuth255:
Eureka! Found the RO problem!

CR&P! the RO problem's solution has been staring me in the face!

the key word in SDConfig.txt must be "CAB:" not "Cab:". SDAutoRun doesn't process the statement unless its in uppercase. Logger even demonstrates this in his example...
[Windows Mobile Software Development] l3v5y:
CAb doesn't work either! Now I know that, it's time to change SDConfig!

That explains why some of my cabs where refusing to get replaced by my batch file...
[Windows Mobile Software Development] Alex_electro:
Hi guys wath about spce in EXEC commande line....

Finalement did'nt read any solution about the EXEC command line with space in issue. And I think that the SDautorun is Hard coded to look for Storage Card with a space so may be it's not possible to run .EXE app from Storage Card with SDautorun. If any devloppement i'll let you know.
[Windows Mobile Software Development] Sleuth255:
EXEC: does work on Kaisers for the storage card:

EXEC:\Storage Card\Cabs\CusTSK.exe SleuthDarkSE.tsk

There shouldn't be a space after the EXEC: command. Post 1 of the ROM Chef's thread includes the Kaiser AutoRun.exe.

... apparently that version also doesn't care about case on CAB: commands either :rolleyes:
[Windows Mobile Software Development] logger:
Thanks Sleuth55. Capitalised the word CAB, Set the SDAutoRunFlad to 0, Ran your SDConfigTest.exe and I can confirm all the referenced files were toggled to RO. So all is good now. Well done tracking that down.

LOCK:Enabled
CAB: \Storage Card\CABS\AdobeReaderLE_20.cab
CAB: \Storage Card\CABS\BatteryStatus.0.05.CAB
CAB: \Storage Card\CABS\GoogleMaps_compressed.CAB
CAB: \Storage Card\CABS\KaiserTweak-nikagl-0208-1950.cab
CAB: \Storage Card\CABS\Pocket_Mechanic_Setup_WM6.2577.CAB
CAB: \Storage Card\CABS\SkypeForPocketPC.CAB
CAB: \Storage Card\CABS\SplashID.CAB
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\CABS\RvBCrS_HTC_Streaming_Media.cab
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\AllFourEmailAccsTedProv.xml
XML: \Storage Card\Cabs\MakeDIRTedProv.xml
CPY1:\Storage Card\Cabs\TaskMgr.exe
CPY2:\Program Files\DotFred\TaskMgr.exe
LOCK:Disabled
RST: Reset
[Windows Mobile Software Development] Alex_electro:
Hi Sleuth...

Hi Sleuth i wish that i did'nt make you losing time by my mistake.

From the beginning i forgot to tell you that i'm having a titan with the DCD 3.0.1 Rom So i was having the same issue with the previous version...

I was thinking that the autoinstaller taht is using was the kaiser one ported to titan. May be i should ask him for more info about this...

I like more passing time to customize than toying with my device it's may be the reason why i passed probably about 20 X times to customize than all the time that i could take to manually launch that file everytime that i flash my phone héhé
[Windows Mobile Software Development] Sleuth255:
Isn't that the truth! :rolleyes: It's sure nice to see it in action when flashing a new ROM tho....
[Windows Mobile Software Development] Noonski:
I'm going to test custtsk from Storage Card again on my ELF

Saves me doing copy2 for the theme first.

And otherwise i'll just try with the Kaiser custtsk.
[Windows Mobile Software Development] Alex_electro:
Agree... But try to explain it to your girl friend.... With voice commander she was just seeing me talking to my device so .....

Sorry for the out of topic...

As i learn more about the version of autoinstaller embeded in the DCD Kitchen i'll let you know ( just to stay a little in the topic of this thread)...

And if my expressions seam a little weird remember to forgive to the French Canadian Frog HéHé
[Windows Mobile Software Development] Alex_electro:
- 03-12-08	updated UC Compatibility to 2.0 version (Beta - it autofixes SDConfig.txt

- 03-12-08	reverted to official method of kicking off UC at 1st boot

- 03-12-08	replaced AutoRun.exe with version from UC thread in case of compatibility issues

Found on DCD Change log so i'm not sure to well understand all this (for the compatibility).... May be it could help you...
[Windows Mobile Software Development] pdagenius:
XML files help

Please can someone post a working copy of a XML file they are successfully using with SDConfig.txt so I can compare it to my non working one.:)

I am religously following the advice in Post#3 but to no avail. My method:

Extracted keys using CERegistryEditor - this works

Use rgu-2-xml program to translate the REG keys to XML which I then paste together into another XML file.

There is only 1 wap-provisioningdoc statement at the top and end of the file.

The nesting of the file looks fine in IE.

The resulting XML file does appear to run on a hard reset of the phone but nothing is loaded.:mad:

Many thanks.
[Windows Mobile Software Development] l3v5y:
To test it, create a CAB with the xml in and see if it makes any difference.

This works as a really basic example:

<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Creates a reg entry under HKLM\Software\UC\Test -->
<characteristic type="HKLM\Software\UC\Test">
<parm name="IsThisHere" value="1" datatype="integer"/>
<noparm name="Default"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

If you post your xml, I can try and work out what's not working. (Remove any personal info like passwords though...).
[Windows Mobile Software Development] Sleuth255:
my example may have been not so good from a specifics standpoint.... I was only trying to demo syntax. I forgot that cusTSK itself has issues finding themes on the storage card. :o
[Windows Mobile Software Development] l3v5y:
Found it!

http://msdn2.microsoft.com/en-us/library/aa455986.aspx

use this:

<wap-provisioningdoc>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="Network Name"/>
</characteristic>
</characteristic>

from http://msdn2.microsoft.com/en-us/library/aa456210.aspx for the XML tags.

</wap-provisioningdoc>
[Windows Mobile Software Development] pdagenius:
Thank you. Your example works a treat. Now to work out what I am doing wrong.
[Windows Mobile Software Development] pdagenius:
Help with XML files ....

I have got further but not cracked it...

I have a XML file which runs. I suspect my problem lies somewhere with the Owner info I am trying to put in the XML file. I have ended up using RapiConfig (see post) which seems to work and I have what I believe is the correct Base64 string.

There is something still wrong with the XML though as it will not load any of the info when I do a hard reset. However when I convert exactly the same XML file to a Cab file and run it from the phone everything works! I do not understand.

Looking at the XML in the Cab file it has been rearranged and there is a header. Does anyone know if this is significant? Other ideas on how to debug this would be gratefully received.
[Windows Mobile Software Development] pdagenius:
My settings will also load correctly using the Cab file when run from the SDConfig.txt file. Could it be a feature of the phone?
[Windows Mobile Software Development] l3v5y:
If the CAB file works, is there much point in trying to get XMLs to work?
[Windows Mobile Software Development] Red49er:
Sorry for the off-topic question, but how do you find that stuff in the MSDN library? I tried searching to no avail...been looking for where some settings are stored in registry and noone seems to know (USB-to-PC Advanced Network Functionality)
[Windows Mobile Software Development] Sleuth255:
If you could attach both your XML file and your SDConfig.txt file I may be able to help you.
[Windows Mobile Software Development] l3v5y:
I use a combination of: google searches, links from other MSDN topics and ocasionaly i go through visual studios help...
[Windows Mobile Software Development] pdagenius:
Have attached a zip file of my files and included my cab conversion of the xml in case that shows up anything else. Registration codes for software have been removed but otherwise all is as I have it. Thanks for your interest.
[Windows Mobile Software Development] Sleuth255:
Thanks! On your device, is there a value in HKLM/comm called SDAutoRunVersion?

Also, try pulling the "translation = filesystem" parameters. This may be why its working in a cab but not as a provisioning xml file.

If there's no SDAutoRunVersion value, try using the attached SDConfig.txt instead of yours.