yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] kingbear2:
File Operations errors

I'm curious if there is a way to set up the SDAutoRun that even if it encounters an error in the File Operations part of the XML file, that it will continue anyway. For example if I ask it to move Calculator.lnk from \Start Menu\Accessories to \Start Menu, and let's just say it was moved already, I want the XML to skip over that and at least do everything else.

Is there a way to do this? Thank you very much.
[Windows Mobile Software Development] evilged:
For those who want to set up their sync to exchange server use the xml here:

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

edit it with your server settings.

You can import the folder hierarchy (sub folder sync) but only after the first sync use RAPI to export your setting using

<wap-provisioningdoc>

<characteristic type="Sync">

<characteristic-query type="FolderHierarchy" recursive="true"/>

</characteristic>

</wap-provisioningdoc>

But you have to remove the parm name="FolderType" lines from the output to get it to work.

<characteristic-query type="Calendar" recursive="true"/> works

<characteristic-query type="Mail" recursive="true"/> doesn't unless you remove most values except EmailAgeFilter.

I'm working through <characteristic-query type="Settings" recursive="true"/> to find working useful values.

Hope this information is useful to someone, I have searched and don't think this has been posted before, probably obvious to more advanced xml provision guys but it kept me busy for the morning :-)

Thanks for all the hard work on UC guys nearly got a perfect UC install.

G
[Windows Mobile Software Development] l3v5y:
SDConfig.txt cannot be unicode, the result of rapiconfig can be. RapiConfig to generate an XML file should be fine.
[Windows Mobile Software Development] kingbear2:
Apparantly the XML file listed in SDConfig.txt that you feed to SDAutoRun.exe cannot be unicode either because it does not work. I tried it.
[Windows Mobile Software Development] kingbear2:
I use this code:

<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Connection">
<parm name="Domain" value="domain"/>
<parm name="Server" value="server"/>
<parm name="User" value="username"/>
<parm name="SavePassword" value="1" />
</characteristic>
<characteristic type="Mail">
<parm name="EmailAgeFilter" value="5"/>
<parm name="Enabled" value="1"/>
<parm name="MailBodyTruncation" value="5120"/>
<parm name="MailFileAttachments" value="0"/>
</characteristic>
<characteristic type="Calendar">
<parm name="CalendarAgeFilter" value="0"/>
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

EMAILAGEFILTER set to 5 makes it download a month worth of e-mails. MAILBODYTRUNCATION sets it to download 5K of each e-mail. CALENDARAGEFILTER set to 0 means it downloads everything in the calendar. You have to enable Tasks manually afterwards.
[Windows Mobile Software Development] mrnamster:
I can't seem to get my XML right.

I used that RGU-to-XML tool and SDAutoRun installs it but the registry settings are not applied.

I was able to make it work by doing just ONE single registry entry using the same format but why can't I do all my entries using the format as instructed?

I've attached my provisioning xml file, which was renamed from .provxml to .xml to .txt, would one of you geniuses please take a look at it and help me out?

Thanks!
[Windows Mobile Software Development] kingbear2:
I've searched through your file and could find no apparant errors, although I'm far from an expert. I spent days (literally) getting my registry edits and file operations working properly. I would say you should try what I did. Have only 10 entries at a time in the XML file and keep trying to isolate the specific line that is the problem. To help save some time you can set the SDConfig file not to reset or do anything else. And I'm sure you already know that you need to delete the regkey under HKLM\Comm which will prevent SDAutoRun from running twice after every time your run it.
[Windows Mobile Software Development] mrnamster:
Thanks for the advice!

I will try that out and find this bugger!

Cheers!
[Windows Mobile Software Development] mrnamster:
Turns out the following lines would not load into the registry:

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Wei Enterprises\nueLED" translation="filesystem">
<parm name="S8_1" datatype="integer" value="4294967294"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Resco\Explorer\Options" translation="filesystem">
<parm name="StrippedListCol" datatype="integer" value="4294967295"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Would someone please point me in the right direction?

Thanks!
[Windows Mobile Software Development] DaveShaw:
You are trying to enter the max value of an unsigned 32 bit integer. Is the [URL="http://en.wikipedia.org/wiki/Integer_(computer_science)]interger type[/URL] you are using 32 bit signed int, by any chance?

If so try using a value no bigger than +2,147,483,647.

Ta,

Dave
[Windows Mobile Software Development] mrnamster:
Sorry, I don't understand.

It seems that the numeric value was shown in DEC but in HEX it is "FFFFFFFE" (for the nueLED software).

That XML tool must have translated it into DEC. Would this work if I tried using the HEX value in my XML?
[Windows Mobile Software Development] DaveShaw:
I'm not sure, you could give it a try for nothing :D

I might need to test this later.

Dave
[Windows Mobile Software Development] mrnamster:
Didn't work using the HEX value.

:confused:

Thanks for trying.

:o

EDIT: I tried using the DEC value "65534" which gave me the HEX value of "FFFE"

This got me closer but is still incorrect, "FFFFFFFE" is the correct value.

Other than that my XML is running great! Thanks everyone!
[Windows Mobile Software Development] stan23:
0xFFFF.FFFE is 4294967294 in unsigned represenstation, but -2 in signed representation. (true for 32 bit integers)

use "-2" in your XML file.
[Windows Mobile Software Development] mrnamster:
Thanks, it works!

Looks like RGU-2-XML could use a lil tune up since it is not fully compatible with UC (unsigned DEC values, quotation marks, binary values, etc), but it does help a LOT!

BTW Sleuth255, you might want to update the link for RGU-2-XML v2 in your first post to the new version here.

Thanks again, stan23, for the info on Rapiconfig! I wasn't sure how to use it at first since there was no ReadMe instructions but I figured it out.

(For other users who are wondering how to use RapiConfig, this worked for me: run the .bat file on your PC with the PPC connected via USB with the green ActiveSync icon. The program will query the entries in the input file and post the binary values in the output file.)

Anyways, keep it flowing!

Cheers!
[Windows Mobile Software Development] rallaster:
OWWWIIIIEEEE!!!! my head just exploded :eek: too much info too fast! I have read the thread and get the initial SDConfig.txt to install Cabs... but the xml side of it with the settings customization gave me a migraine... I'll look at it again tomorrow after some good painkillers with a fresh mind and see if i want to go as far as the settings cust.
[Windows Mobile Software Development] mrnamster:
I haven't seen it mentioned but SDautorun.exe can be run on non-UC ROMs.

All I do is run a copy of SDautorun.exe v2.0 (which I have on my storage card) from file explorer. Make sure that HKLM\Comm\"SDAutoRunFlag" is set to 0 or it will not initialize.
[Windows Mobile Software Development] studentjunk:
I have been using UC for a few weeks now, and was wondering if there was a way of setting up custom ring tones. I was able to change the default ringtone, but now I would like to set up different tones so I know who is calling without looking.

In addition, I haven't figured out how to change the today screen background. I have been able to change the theme, but not the today screen.

Please advise.
[Windows Mobile Software Development] datapusher:
The today screen background involves executing custsk if I am not mistaken. it is covered pretty well in this thread. There is also a reg setting to go along with it as well. Do a search in this thread, you'll find it.

As for custome ringtones, I would like to know that as well. i am also interested in if you can set your notifications up. i know that they use GUID or something like that so I have stayed away from it but if anyone knows if it is possibloe and what the rundown ids I would love to hear about it.
[Windows Mobile Software Development] studentjunk:
Thanks. I did figure out hwo to set up my notifications. I use rapiconfig and Ceregeditor. Save registry, make some changes to your notifications, and then compare the new registry to the saved registry. rapiconfig can then be used to find the xml settings to edit your provisioning file. the details have been described previously in the thread.
[Windows Mobile Software Development] mrnamster:
Wouldn't PIMPPCBackup restore custom ringtones like this? I use it to restore all my contacts and it restores their images as well. Very handy app, would be nice if restore commands could be used in conjunction with SDAutoRun.
[Windows Mobile Software Development] studentjunk:
I us PIMPPCBackup but don't use it for contacts because it makes duplicates when I sync with outlook. I need outlook because my wife frequently updates contacts on the desktop machine. I have also had problems in the past with voice tags when using PIMPPCBackup, but I haven't tried lately to see if the new version/ROM fixes that.
[Windows Mobile Software Development] mrnamster:
If anybody is interested I have created a UC Starter's Pack

found here.

I put a lot of work into getting my sdconfig and provisioning files straight and I just thought I'd share my work to help others get started, as others have helped me. Enjoy!
[Windows Mobile Software Development] dockular:
I realize that you want the app to both reside on Storage Card and run from the card as well, but don't you think you went through a lot of trouble just for that? When a user runs a cab and chooses to install the program to the storage card, that program still runs from device memory for a reason. If a program is treating your SD card like its ram (constantly reading / writing) then your SD card will wear out, not to mention performance will come to a stand-still. SD cards aren't nearly as fast as the device memory.

Anyway, why not just go into WinCE CAB and do this?

seems a lot faster than the route you went through!
[Windows Mobile Software Development] datapusher:
haha

don't think i would have tried that first? of course I did. It still installs to device not storage card when i do the method outlined by you.

Trust me, I exhaust the easy solutions before I make things more complicated.

But thanks for answering my query about whether to install application data to the device or the storage card.
[Windows Mobile Software Development] kingbear2:
I just wanted to mention that not all ROM's come with AutoRun.exe in the \Windows directory, which I'm pretty sure you need in addition to SDAutoRun.exe on the storage card.
[Windows Mobile Software Development] mrnamster:
Yes you're right, I forgot about that. I'm assuming that with AutoRun.exe, found in the first post of the developer's thread, copied to the \windows dir would do the trick?
[Windows Mobile Software Development] kingbear2:
You are Correct.
[Windows Mobile Software Development] studentjunk:
Did you figure out out the notifications stuff? If not let me know and I'll give you or point you to the specific instructions.

As far as custom ringtones, I am working on a mortscript to do this. Of course I won't be able to add it to my autorun file because I am syncing my contacts with outlook. So I am looking at tying it to either soft resets or syncing. I haven't figured it all out. When I do I will post a link here to it on the mortscript board.
[Windows Mobile Software Development] mrnamster:
Nice! I'm going to update my post then. Thanks!
[Windows Mobile Software Development] jrinco11:
hey ya'll, so I'm having issues with my xml not being ran at the end of my SDConfig.txt -- I've converted teh xml into a cab and ran it seperately, and it works fine, and all the cabs in sdconfig are getting installed correctly (both the ones that require input, and those that don't), but once the device resets, and boots back up, i notice that nothing in the xml has been performed .... (and my xml file is indeed in that location and spelled correctly)

any suggestions?

LOCK:Enabled
CAB: \Storage Card\Cabs\Tiltkeyboardfix.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\GoogleMaps_compressed.CAB
CAB: \Storage Card\Cabs\RACtrlCE.cab
CAB: \Storage Card\Cabs\palringo.CAB
CAB: \Storage Card\Cabs\SPWM5CallRec.cab
CAB: \Storage Card\Cabs\PocketBreeze5_4_1_WM5.cab
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\jrin_provisioning.xml
LOCK:Disabled
RST: Reset
[Windows Mobile Software Development] kingbear2:
I would say make sure the XML file is encoded in ANSI. That seemed to be the issue I was having. I may be wrong though. Also, you may want to post the XML file here so we can take a look at it.

Finally, you should make a new SDConfig.txt with a new XML file and no reboot at the end, and put 10 registry entries at a time from the original XML into the new XML and see when it stops working and you will know which entry is causing it. I did that too. It's a pain but it works.
[Windows Mobile Software Development] jrinco11:
yep, it's ansi (i'm using notepad++ and it shows as being ansi). Also, I'm thinking the xml entries are okay, cause like I said, when I convert it to cab using "MAKECAB.EXE", and run it on my Tilt, everything gets done correctly. I spose it couldn't hurt to try it anyway, huh!

for some reason, the page won't load when I try to add an attachment, so here' a link to my xml:

http://www.jrin.net/quickshare/2008_4-30-xml/jrin_provisioning_temp.xml
[Windows Mobile Software Development] chrisdk:
Has anyone got authenticated SMTP working? I can set up my email accounts without any problems, but if I include the any of the following lines, the XML won't work:

<parm name="OUTPORTNBR" value="2525"/>

<parm name="OUTAUTHNAME" value="zz999999"/>

<parm name="OUTAUTHSECRET" value="zzzzzzzzz"/>
[Windows Mobile Software Development] jrinco11:
are you sure those are actual EMAIL2 characteristics? none of those appear on http://msdn.microsoft.com/en-us/library/bb737579.aspx

I got mine setup with gmail, which requires authentication just fine -- if you need to specify particular ports, just add it to the end of the server names (I forgot what the secure port numbers are for imap and smtp, so the ones below may not be correct lol), ie:

<parm name="INSERVER" value="imap.gmail.com:995" />
<parm name="OUTSERVER" value="smtp.gmail.com:465" />
<parm name="AUTHREQUIRED" value="1" />

here are my settings for gmail:

<characteristic type="EMAIL2">
<characteristic type="{51b0bb91-42ba-4edd-83e7-cff0cf939d39}">
<parm name="SERVICENAME" value="gmail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="8128000B" value="1" />
<parm name="812C000B" value="1" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="James Rintamaki" />
<parm name="AUTHNAME" value="<login name goes here>" />
<parm name="REPLYADDR" value="<reply email address goes here>" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="5" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
</characteristic>
</characteristic>

and here are the explicit characteristics I think you should be using instead of the ones you listed:

SMTPALTAUTHNAME
[Optional] Display name associated with the user's alternative SMTP e-mail account; only valid if SMTPALTENABLED is True.

SMTPALTPASSWORD
[Optional] Password for the alternative SMTP account; only valid if SMTPALTENABLED is True.

OUTSERVER
[Required] The name of the messaging service's outgoing e-mail server.

and then just append ":###" (ie, smtp.gmail.com:465), to the end of your smtp server name instead of trying to make a port characteristic
[Windows Mobile Software Development] Sleuth255:
with repetitve pressing of the "%" key (or choose any key that's not in your name). For example: my name is Sleuth 255 (that's 10 characters with the space). I would then press the "%" key 310 times.

All the "%" key is doing is placing in a replacable hex code that's not likely to be in your name.

You may wish to go the RapiConfig route instead. It actually turns your real Owner information back into XML based registry text. Stan23's post on this (RapiConfig dl link included) is here

edit: the other registry conversion you did looks essentially correct to me. The "noparam" command is supposed to delete the default value btw leaving just a blank key as you were looking for. In practice however, I find that this doesn't always work and the value is left behind. Usually this isn't an issue as in the case of the CLEARTYPE key.
[Windows Mobile Software Development] bnycastro:
Thanks Slueth

Um do you know how to copy whole directories from SD to device using SDConfig.txt would like to copy over Skins during UC?
[Windows Mobile Software Development] doedoe:
CPY1: \MyStart\Dir\

CPY2: \Dest\Dir
[Windows Mobile Software Development] bnycastro:
thanks doedoe
[Windows Mobile Software Development] doedoe:
On device Config.txt builder

Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:

LOCK: Enable

LOCK: Disable

HIDE: Enable

HIDE: Disable

RST: Reset

EXEC: application /args - Grabs custom application name and args

SHOW: custom.bmp - Grabs the location of the image to display

Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.
[Windows Mobile Software Development] remlle:
any way to use these tools to also set the registration, key and serial info up when it installs the program?
[Windows Mobile Software Development] blazingwolf:
DoeDoe, that's smoking. I would love to have something like that. It would make things so much nicer. Thanks for the hard work. :)
[Windows Mobile Software Development] Noonski:
I tested the Copy Command and it works like a charm.

So in your Case you should test the Hide commands.

LOCK:Enabled

CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab

LOCK:Disabled

HIDE:Enabled

CAB: \Storage Card\Cabs\USER_INPUT_NEEDED.cab

HIDE:Disabled

LOCK:Enabled

XML: \Storage Card\Cabs\device_settings.xml

CPY1:\Storage Card\Cabs\PIM.VOL

CPY2:\PIM.VOL

LOCK:Disabled

RST: Reset

Can these Commands be added to your first Posts Sleuth?
[Windows Mobile Software Development] corys00:
Running V2 of Mr.Jcarter's 6.1 Rom for my HTC Vogue. Running the SDConfigBuilder.exe file gives me this error

This is after a clean install. The program is located in "My Documents" on the device itself. Any suggestions would be appreciated. Thanks
[Windows Mobile Software Development] booda:
For many programs, you can use provisioning XML for this, ie:

<!--Registration info stored in registry-->

<characteristic type="Registry">
<characteristic type="HKCU\Software\Ilium Software\NewsBreak" translation="filesystem">
<parm name="RegKey" datatype="string" value="your-license-key" />
<parm name="RegName" datatype="string" value="your-registration-name" />
</characteristic>
</characteristic>

<!--Registration info stored in a file-->

<characteristic type="FileOperation">
<characteristic type="\Application Data\CorePlayer" translation="install">
<characteristic type="MakeDir" />
<characteristic type="config.xml" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Storage Card\Customization\CorePlayer\config.xml" translation="install"/>
</characteristic>
</characteristic>
</characteristic>
</characteristic>

Obviously you would need to do some hunting around to determine where/how your programs store their registration info, back up any necessary files (like Coreplayer's config.xml), etc.

If you're referring to this, it's intended for desktop Windows only. I don't think doedoe has released the on-device version yet (which looks great, btw!).
[Windows Mobile Software Development] remlle:
Im an idiot and can not figure out how to integrate this into a rom. Im using a kitchen for titan and dont know how to get this to invoke when hard reset. any help would be great Ide appreciate it.

Ide like to use either no2chems or dcds rom with this.
[Windows Mobile Software Development] corys00:
I was thinking the same thing but when I try from the desktop I get this.

Running Windows XP Service Pack 2 w/ Activesync 4.5
[Windows Mobile Software Development] booda:
Don't know what to tell you - it runs fine for me on Vista. Is the .net framework installed/up to date on your XP?
[Windows Mobile Software Development] Sleuth255:
damnit.... why the heck can't I make the CPY1, CPY2 commands work? My attempt returns \Storage Card\Cabs\device_settings.xml not found dialog box. I wonder if there's a bug in the Kaiser AutoRun.exe...

I'll be sure to add the CPY1 & 2 commands though. I'll just do a ymmv on them.
[Windows Mobile Software Development] Sleuth255:
I'm all over it. I have limited IM availability though. I'll PM you to set something up. There's a lot going on here ;)
[Windows Mobile Software Development] Sleuth255:
You need to be able to edit config.txt in the dump directory. It's not a package installation. Just use notepad. You may have to stop the build process just before tadzio's tools take over (since they work from the dump directory).
[Windows Mobile Software Development] corys00:
This was the issue... Thought Windows Update kept .Net updated but did a manual install of .Net 3.5 and it's working like a champ now. Thank you sir. :D
[Windows Mobile Software Development] Red49er:
I'm on a Sprint Vogue, and I can't get the CPY1, CPY2 commands to work either.
[Windows Mobile Software Development] dan1967:
It may be that storage card is only accessible later during the 1st boot process (autoconfig).

I know I tried to launch my first xml setting file from card once and it did not work.

I had to install something from ExtROM first (or windows) and than everything worked from storage card.

It may be this....
[Windows Mobile Software Development] chrisdk:
I got them from http://msdn.microsoft.com/en-us/library/bb737699.aspx?ref

However, your way works, which makes it much better! Many thanks.
[Windows Mobile Software Development] chrisdk:
The only other setting I need that I can't find is the one which enables "Use automatic send/receive schedule when roaming". Any ideas?
[Windows Mobile Software Development] jrinco11:
good question, I enabled that option on my phone and ran the "get binary from reg" tool, and it didnt' get anything new - seems like that may be somewhere else than the EMAIL2 type.... sorry man