yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] jrinco11:
hmmm, it was something to do with my email settings -- I went ahead and did entry by entry, and it got caught on the email stuff haha. I went ahead and just put the info in manually on my phone and then ran the RunConfig tool and got the good settings and now it works great

btw, anyone have good resources on where to find registry settings and other xml provision-ary stuff to be able to script other things? (such as phone and device volume, ring tone, ring type, default font size, among other things)
[Windows Mobile Software Development] mousio:
about EXEC

My observation is that you can put as many spaces and quotes as you want, but that only the first two "words" are taken: the executable and one parameter, and quotes have no influence at all; the rest is simply discarded :eek:

So if a line naively reads

EXEC:[COLOR="DarkGreen"]\aaa\bbb "ccc ddd" "eee\fff ggg"[/COLOR]

then only \aaa\bbb "ccc will be used :rolleyes: and \aaa\bbb needs to be a valid and existing executable (no spaces). Hth!

Btw: AutoRun displays a line "Running xxx...", where xxx is the part after the last backslash (if any) in your EXEC line, so in the example above it would show the meaningless "Running fff ggg"...", but of course we can take advantage of this "feature" and use this to show our own, custom texts (e.g. "Running mousio's setup...") ;)
[Windows Mobile Software Development] vzoli:
Can you help me to write an xml to set up mms-gprs net-gprs conettion settings and email and mms-server settings?
[Windows Mobile Software Development] kingbear2:
I knew it would work!

HKCU\Control Panel\Accesibility or something like that should be the default font size reg key. Device volume I don't know. Ring tone is in HKCU\ControlPanel\Sounds\RingTone0. Ring type will require you to configure a profile XML and copy it to the device. I spent a lot of time figuring this out. It's quite complicated (or maybe not just I thought it was cuz I wasted so much time). It might just be worth it to manually set it to "Ring and Vibrate" and set the volume for the profile etc. I can tell you that it's definitely not a registry edit.
[Windows Mobile Software Development] D1ab70:
Hey Slueth, I searched through this thread to see if uc supports sdconfig.txt on microdrive,for Atnena and didnt find anything.Is this possible or will there be support to do this? I asked my rom chefs and they suggested to ask you for this.Currently im using AP 4 Platinum (uc compliant) on my athena.
[Windows Mobile Software Development] jrinco11:
yah, I found this registry and file monitor (it takes snapshots, then compares them) and am in the process of finding all the keys and settings for different items. I would think that I'm not the only one who'd like a comprehensive list of reg keys, and other settings, that can be used for this UC -- perhaps that's what the wiki may be used for?

I've already got a few down, such as ringer type (vibrate, ring, both, etc), ringer volume, ring tone, system volume, text size, etc etc -- it'd be nice to have a place here we can see all that people have collected -- any suggestions? (and I don't necessarily mean another thread, where we'll have to search through PAGES of posts to find them all lol)
[Windows Mobile Software Development] kingbear2:
Beware that some of those reg keys are only temps and will be replaced when you change the profile. I know for sure that ring type and ring volume are like that and you need to edit the profile xml file.
[Windows Mobile Software Development] jrinco11:
when you say they'll be replaced when you change the profile, what's "profile" mean? (still a bit of a n00b here), and what is the 'profile xml file'? (thanks lol)
[Windows Mobile Software Development] kingbear2:
Smartphone\Application Data\Profiles is where you will find the profile XML's.
[Windows Mobile Software Development] chrisdk:
I've put an sdconfig.txt on my storage card which looks like this:

LOCK:Enabled

CFG: \MicroDrive\MDConfig.txt

and then built MDConfig on the MicroDrive
[Windows Mobile Software Development] D1ab70:
ahh so anywhere it says sdconfig replace with mdconfig and it works the same? cool so uc does work on a md.
[Windows Mobile Software Development] chrisdk:
AIUI, sdconfig will only run from the SD card - all my script does is run another script from the MD.
[Windows Mobile Software Development] D1ab70:
ohh ok I see, I wanted to run the script without a storage card, I shouldve said that sorry.I was wondering if slueth will add support if the config file is on a md if i dont have a storage card.
[Windows Mobile Software Development] chrisdk:
If I understand the process correctly, there's a registry setting (AutoRunCFG - see post 25 in this thread for details) that tells the device where to run customisation from. So I think you were right in the first place - this setting needs to be cooked into the ROM.
[Windows Mobile Software Development] D1ab70:
if thats the case my rom chefs need to cook that in,and if some1 wants to run custimizations on their sd you can simply put an mdconfig on your d and tell it to run custimizations on the sd, after a hr stuff stays on the micro so this would actually work bettef! im gonna try a test and if it work ill let the ap team know ,thanks bro.
[Windows Mobile Software Development] lennysh:
My device has both a SD slot, and CF slot. I made a UC rom (located here), and currently use SDConfig.txt on my SD Card to install my apps from my CF Card. Can I use CFConfig on my CF Card instead?
[Windows Mobile Software Development] anubis.genix:
is there a way to get specific files copied from one folder to another using uc? if not, this will be my feature request then :)

don't have the time to read through the whole topic :(
[Windows Mobile Software Development] l3v5y:
You can copy specific files using this:

CPY1:Sourcefilepath.fileextension
CPY2:Resultantfilepath.fileextension
[Windows Mobile Software Development] digitallsin:
any way to enter a serial?

Hi I was wondering if there is a way to enter a serial number in the cab or through User Customization, just so we don't have to renter the information every time we re-install the program

sorry if i didn't make my self clear...
[Windows Mobile Software Development] l3v5y:
That depends on where the data is stored.

If the serial number is stored as a registry entry, you can use an xml file to create it. If it is stored as a file, you can use CPY1 and CPY2...
[Windows Mobile Software Development] DR400:
Could you elaborate a bit more on that, please ?

For example, I'd like to copy allBlack.tsk from my SD Card to \windows folder.

I've understood that \windows should look like %CE2% but what about \Storage Card\Cabs folder ?

Thx for your help !
[Windows Mobile Software Development] l3v5y:
With the CPY Commands, it's probably best to just put the full paths down. the %CE2% is more for xml files...

CPY1:\Storage Card\Cabs\allBlack.tsk
CPY2:\Windows\allBlack.tsk

should do if the tsk is in "\Storage Card\Cabs\"
[Windows Mobile Software Development] DR400:
ok thank you.

Is there a DEL(ete) command ?
[Windows Mobile Software Development] l3v5y:
No. To delete a file, you will need to use an xml file. Look at the first few posts of this thread for more info on xmls and the usage of them.
[Windows Mobile Software Development] DR400:
ok thank you. I should have missed something because, to be honnest, I did not go through the all 61 pages but for sure I red the first page at least but not carefully enough. thanks a lot for your help.
[Windows Mobile Software Development] l3v5y:
It should be under "File Operation CSPs". I can find a link with more detail if wanted.
[Windows Mobile Software Development] mousio:
Regarding screen alignment via UC: is it possible to apply calibration data (HKLM\Hardware\DeviceMap\Touch\CalibrationData) without resetting the device?

I just cannot get it to work without a reset, but the manual screen alignment procedure does work without resetting, hence my question...
[Windows Mobile Software Development] l3v5y:
I'd guess that the manual screen calibration program forces the shell to notice the changes, where as changing the entries does not get recognised until the shell restarts.
[Windows Mobile Software Development] Ameet:
hey sleuth.. m trying to build a uc rom for elfin but there's some problem.. i had delete autorun, checkautorun, custsk from my rom and now i copied back these files from the shipped dump.. although the custom gets flashed and starts without any problems but it doesnt run the autorun proggy.. when i checked the registry, it showed me the config file is in extended rom (which i dont have) do u have a oem package with all these files so i can cook it in my rom?
[Windows Mobile Software Development] l3v5y:
I have an OEM Pack that has all of them in, and has the correct registry settings for putting the files into "\Windows".

Edit the config.txt with the CusTSK line, and it should work...
[Windows Mobile Software Development] Ameet:
hey brother.. thanks a million for taking out time.. i'm so sorry, couldnt post last night.. i managed to get the UC running in my rom.. copied back the custsk, autorun and checkautorun from my shipped rom dump and edited a few rgu entries to run the sdautorun from rom (initially it was directed from my extrom) now my rom is UC capable and it is so so so good.. thnks to sleuth, flashing is so convenient now.. i can go on forever.. the customisations run just like my shipped rom now..

damn sleuth.. he rocks :cool: :D he's got me into cooking for every lil change in packages i want everyday :D

also wanted to share this info.. i found a nice lil proggy on ppcgeeks.. PERSONAL OEMIZER.. with this you can set your owm oem settings right in cooking.. including all the tideous mail accounts setups

i'll pm sleuth for including my rom in his first post
[Windows Mobile Software Development] mousio:
In my SDConfig for AutoRun I execute a MortScript, but after about 3 minutes it stops waiting for the script to finish and AutoRun simply continues (resetting the device!)...

I would very much like to keep my MortScript as it is, but then how can I avoid this problem?
[Windows Mobile Software Development] l3v5y:
I'm not sure about how mortscript works, but could you put the EXEC: line at the end, and remove the "RST:Reset" line and make the mortscript restart the device when it's done?
[Windows Mobile Software Development] Ameet:
i want to make my rom show a release notes file after it is flashed and runs for first time.. tried to create a png image and gave a command in sdconfig.txt "EXEC: MSPIMG \Windows\RN.png" but nothing happened (tried this method coz, i'm not a programmer so this is the easiet i could think of :D) any ideas, how this can be done? i have removed notes so cant make a pwi or txt file too.. any suggestion would be appreciated

also i want to get rid of windows media player and replace it by coreplayer.. any ideas how to go about it?
[Windows Mobile Software Development] mousio:
I would guess this problem is an issue with AutoRun, not MortScript? :confused:

Good thinking, but there is just one important line inbetween, for provisioning (XML: ), and I need it to run after the script finishes...

I might figure out something else, though; thanks!

And I did: the script takes between 3 and 6 minutes to run, so I added a second EXEC: line to call a "waiter" script, which just does nothing but wait for the first script to finish :D
[Windows Mobile Software Development] Dandarebr:
I created my SD config.txt but no CPY command that copies files to the device is working. Coping from SD to SD works, but copying to \Windows for example doesn`t work. Here is my config.txt

LOCK:Enabled

CAB: \Storage Card\Install\S2U2-1.00-WM5.cab

CAB: \Storage Card\Install\SkypeForPocketPCUnsigned.cab

CAB: \Storage Card\Install\tcpmp.pocketpc.0.72RC1.cab

CAB: \Storage Card\Install\TCPMPflvplugin-v0.4.2.cab

CAB: \Storage Card\Install\p12cse161arm.cab

CAB: \Storage Card\Install\TodayAgenda_PPC.ARMV4.CAB

CAB: \Storage Card\Install\ROUTE 66 N7.CAB

CPY1:\Storage Card\Backup\PIM.VOL

CPY2:\PIM.VOL

CPY1:\Storage Card\Install\Copiar\My Ringtones

CPY2:\My Documents\My Ringtones

CPY1:\Storage Card\Install\Copiar\S2U2\lang.ini

CPY2:\Program Files\S2U2\lang.ini

CPY1:\Storage Card\Install\Copiar\S2U2\gfx\

CPY2:\Program Files\S2U2\gfx\

CPY1:\Storage Card\Install\Copiar\ROUTE66N7.exe

CPY2:\Storage Card\Route66\ROUTE66N7.exe

CAB: \Storage Card\Install\Destinator6\Main.CAB

CAB: \Storage Card\Install\Destinator6\English.cab

CAB: \Storage Card\Install\Destinator6\PortugueseBR.cab

CAB: \Storage Card\Install\SpbPocketPlus.CAB

CPY1:\Storage Card\Install\Brasil\

CPY2:\Storage Card\DestinatorApps\Brasil\

CPY1:\Storage Card\Install\Copiar\Icones\GPS

CPY2:\Storage Card\GPS

CAB: \Storage Card\Install\SpbPhoneSuite.cab

LOCK:Disabled

RST: Reset

Not even the Copy of the PIM.VOL is working:

CPY1:\Storage Card\Backup\PIM.VOL

CPY2:\PIM.VOL

BTW: I tried the comand:

CPY1:\Storage Card\Install\Copiar\Icones\GPS

CPY2:\Storage Card\GPS

to see if it would copy a whole directory and the answer is NO. And I have tried with the "\" to. Looks like the only way is to copy every file from the directory.
[Windows Mobile Software Development] l3v5y:
That may mean that pim.vol has been created already and so you can't overwrite it...

Copying to windows should work as that is where it is normally used in official ROMs (copy a *.tsk from the extROM into \windows so it can be used as a theme). So long as the file doesn't already exist, you should be able to overight it though...

Quite a few of the commands using CPY you have try to copy directories, which won't work...
[Windows Mobile Software Development] Dandarebr:
I'm using Dutty Cooked Rom (hybrid from apr 29th)

So it looks like this rom create the PIN.VOL before starting the SDAutorun.exe. This would change from ROM to ROM? I saw that some people were able to copy the PIN.VOL

About the CPY of directories I tried just to see if it would work. Tried with and w/o the "/" in the end, and none worked. :-(
[Windows Mobile Software Development] pdagenius:
Comment out lines?

Is there a way to "Comment" out lines in a SDConfig.txt file without causing the file to crash when it is run?
[Windows Mobile Software Development] Dandarebr:
Anyone knows where is in the registry the information about:

- Regional Settings

- The Registry that "unlocks" the HTC home position so it can be placed in the botom of the screen.

Thanks
[Windows Mobile Software Development] ToniSC:
Bluetooth devices

Hi

I love "User Compiland", with this is very fast change the ROM. Anybody knows how to configure bluetooth devices associated (hands free, pc, ..)? How can I extract this infomration from my device?

I search a and I try to compare the registry, but, I obtains a lot of keys changed.

Thanks a lot.

Toni
[Windows Mobile Software Development] btate0121:
this is an awesome thread... VERY useful... bookmarked! i must say... i LOVE THIS SITE. there's always some GREAT information here.. this is the 3rd HTC device i've successfully hacked and customized.... not to mention all of the ones i've done for friends. you guys are great!
[Windows Mobile Software Development] BigBadWolf77:
Testing

I searched the thread and maybe i missed it, so with the high probability of getting flamed:

Can I manually run this auto updater to test the sdconfig.txt files and supporting .xml files that I am writing. i cannot seem to get the sdautorun in the windows director to run. I am currently flashing the rom during testing, and needless to say that is very time consuming. Would a Hard Reset accomplish this?

Big Bad
[Windows Mobile Software Development] l3v5y:
A Hard Reset will work, but if you have a registry editor, look under "HKLM\COMM" and there will be two reg entries called "AutoRunFlag" and "SDAutoRunFlag" delete both of those keys and run it again.
[Windows Mobile Software Development] uzziah0:
I've read through a lot of this, but not all.

I am using a 256MB card to flsh my Axim, and then I load my apps onto my 2 GB card. I install everything to main memory or the SD Card.

Can I still use this to reload after the flash?

How do I get it to work with switching the SD cards?

(I heard some people had problems flashing their device if there is a bunch of other stuff on their memory card, that is why I am using the smaller card for flashing. I have a bunch of other stuff, besides the installed apps on the SD card.)

Thanks
[Windows Mobile Software Development] lennysh:
Put all the UC stuff on the 2gig card. When flashing is done, remove the small card with the rom(s) on it, and insert the 2gig card. Then hard reset. Problem solved.
[Windows Mobile Software Development] uzziah0:
Thanks, I was hoping it would be this simple.

Now I'll have to figure this out, and get the UC stuff set before I install beta 7.
[Windows Mobile Software Development] mousio:
Attached a little mortscript file I used for testing...
[Windows Mobile Software Development] stoker:
Thanks l3v5y's and mousio

my .xml work!!! :)

I use SDConfig Builder v0.7
[Windows Mobile Software Development] l3v5y:
I think the reason is you need the "Characteristic type="Registry" earlier...

<wap-provisioningdoc>
<!-- Owner Preferences -->
<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\Owner">
<parm name="Name" value="Sleuth 255" datatype="string"/>
<!-- Owner value is SZ_BINARY: 320 Unicode characters (640 bytes). XML "Binary" datatype processes this as Base64-->
<parm name="Owner" value="SwBlAaSwDyuuIIgvrRRvAHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==" datatype="binary"/>
</characteristic>
<!-- *** BackLight preferences*** -->
<characteristic type="HKCU\ControlPanel\BackLight" translation="filesystem">
<parm name="ACTimeout" datatype="integer" value="300"/>
<parm name="BatteryTimeout" datatype="integer" value="120"/>
<parm name="BrightNess" datatype="integer" value="5"/>
<parm name="ACBrightness" datatype="integer" value="5"/>>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] mousio:
Stoker must have missed this post :D
[Windows Mobile Software Development] hlouie:
First I would like to say "Great mod tool", simple and easy.

Question, how would I delete a registry key for ClearType Text so I can turn it off by default?

ON

[HKEY_LOCAL_MACHINE\System\GDI\CLEARTYPE]

OFF

There is no registry key information.

Thank-you
[Windows Mobile Software Development] stan23:
that should delete the whole registry key:

<wap-provisioningdoc>
<characteristic type="Registry">
<!-- NOcharacteristic -> delete -->
<nocharacteristic type="HKLM\System\GDI\CLEARTYPE" />
</characteristic>
</wap-provisioningdoc>

reference:

http://msdn.microsoft.com/en-us/library/bb737303.aspx
[Windows Mobile Software Development] DrWatson2005:
XML to set Regional settings and HW keyboard to Norwegian

Just wanted to share this, this will set correct settings in Regional Settings and set the Hardware keyboard to Norwegian (HW part, thanks raiisak)

<wap-provisioningdoc>

<characteristic type="Registry">

<!-- Add Norwegian Hardware Keyboard -->

<characteristic type="HKLM\HARDWARE\DEVICEMAP\KEYBD">

<parm name="CurLang" value="1044" datatype="integer"/>

</characteristic>

<!-- Norwegian Locale -->

<characteristic type="HKLM\nls">

<parm name="DefaultOCP" value="850" datatype="integer"/>

<parm name="DefaultACP" value="1252" datatype="integer"/>

<parm name="DefaultLCID" value="1044" datatype="integer"/>

<parm name="SystemLCID" value="1033" datatype="integer"/>

<parm name="LegacyLocaleMode" value="1" datatype="integer"/>

</characteristic>

<characteristic type="HKLM\nls\overrides">

<parm name="IDate" value="1" datatype="integer"/>

<parm name="SDate" value="." datatype="string"/>

<parm name="SSDte" value="dd.MM.yy" datatype="string"/>

<parm name="ITMPN" value="9" datatype="integer"/>

<parm name="ITLZr" value="1" datatype="integer"/>

<parm name="ITime" value="1" datatype="integer"/>

<parm name="STFmt" value="HH:mm:ss" datatype="string"/>

<parm name="LCID" value="1044" datatype="integer"/>

<parm name="STime" value=":" datatype="string"/>

<parm name="SLDte" value="dddd, dd MMM yyyy" datatype="string"/>

</characteristic>

</characteristic>
[Windows Mobile Software Development] pr5owner:
can i use # or ! to comment out lines in my SD config? i go thru so many roms that sometimes im too lazy to rewrite the line and i want to just comment it out.
[Windows Mobile Software Development] pr5owner:
thats weird, i did a search in this thread for "comment" but didnt come up with your post. (i posted above for the same thing)
[Windows Mobile Software Development] l3v5y:
I don't think you can comment things out... You could give it a try though...
[Windows Mobile Software Development] mousio:
Just make sure there is no colon on the comment line and it should be skipped (works for me)

From the SDAutoRun thread for ROM chefs:
[Windows Mobile Software Development] l3v5y:
That's how SDAutoRun parses the text! I completely forgot about that...
[Windows Mobile Software Development] Sleuth255:
nice deduction mousio ;) That was a hidden intent behind the parse logic. At the time, with most roms using sdautorun v1.0, it would have created confusion so I didn't mention it.
[Windows Mobile Software Development] Ameet:
hi l3v5y.. if we dont use colons to comment then how to insert the comment in the txt file? i mean is it possible to insert comments in config.txt file cooked in the rom?

why i'm asking this is, since lot of people use my rom, i dont want to include any bmp files showing my signature which pops up at first system start.. instead if i use this comment function then i can include some write up about each version and that will pop up at first flash which will be a cool idea to include ur signature in the rom others re using :)
[Windows Mobile Software Development] l3v5y:
This comment only works in the SDConfig.txt, as it parses the text file.

If A line doesn't include a ":" the SDAutoRun ignores that line.

It wouldn't work with the built in config file :(

However, you could put a "SHOW:\Windows\writeup.bmp" line at the top, and it would show whatever was in that bmp file during the cutomization. (Max dimensions would be 268px high x 240px wide for a QVGA device in portrait...)
[Windows Mobile Software Development] Ameet:
hmm.. last time i tried this with a jpg image.. didnt know it only works with bmp files.. this time i'll try.. any ideas for making autorun run again for testing? hate to hard reset every time i wanna test a petty change in sdconfig.txt
[Windows Mobile Software Development] l3v5y:
In the registry, under HKLM\COMM, you need to delete the "AutoRunFlag" string, and the "SDAutoRunFlag" string...
[Windows Mobile Software Development] Ameet:
nope.. confirming that the show command doesnt work, atleast not in my luck :(

here's my txt file :(
[Windows Mobile Software Development] pedefede:
I got the same error, when trying to exec my mortscript (for copying folders) from \Storage Card

But not, if i tried to exec a script form a different path (like /testfolder)

The problem seems to be, that EXEC: doesnt work with paths that have

spaces

included !! (like "/storage card")....

(And you kinda NEED to exec from storage card, after a hardreset ...)

(Btw... is there a exec command in xml? So you could start the mortscript from XML instead?)