yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] chipsxj:
I removed the xml tag.

tried it

I removed the space at the end of the param lines between quotes and forward slash.

tried it

put the xml tag back.

tried it

Still fails everytime

maybe I am building it wrong.

I used the rapiconfig with this by stan23 http://xdaforums.com/showpost.php?p=1899755&postcount=17

take the output in the rapiconfig and copy it into notepad2 and save it as xxxxxxx.xml

then run the xml and i see all of the text in a browser.

Then I run "cabarc n myxxxxxxxxtry.cab filename.xml

then copy to device and execute on device

then it fails.

sound right?

Thanks again

EDIT: i missed the true recursive...will try that now.

EDIT2: that did not do it either.....tried every combo still did not work.

EDIT3: the xml does not have to be named _setup.xml or _setup.cab for this to work does it?
[Windows Mobile Software Development] jeffreycentex:
How to setup Email accounts:

Sleuth:

Here is a config for how to setup a provisioning file for ActiveSync:

<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Connection">
<parm name="Server" value="exchangeserveraddresshere"/>
<parm name="AllowSSLOption" value="1"/>
<parm name="User" value="exchangeusernamehere"/>
<parm name="Domain" value="exchangedomainname"/>
<parm name="Password" value="password or remove this line to be prompted"/>
<parm name="SavePassword" value="1"/>
</characteristic>
<characteristic type="Settings">
<parm name="PeakStartTime" value="0800"/>
<parm name="PeakEndTime" value="1800"/>
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Tasks">
<parm name="Enabled" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

For an email account (like GMAIL), please see the following:

<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{84088d54-13cf-43c2-a512-6aff8d76e9c3}">
<parm name="SERVICENAME" value="GMail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="TypeinYourName" />
<parm name="REPLYADDR" value="[EMAIL="emailaddress@gmail.com"]emailaddress@gmail.com[/EMAIL]" />
<parm name="AUTHNAME" value="[EMAIL="emailaddress@gmail.com"]emailaddress@gmail.com[/EMAIL]" />
<parm name="AUTHSECRET" value="password or leave blank to be prompted - I type in a wrong one here" />
<parm name="DOMAIN" value="" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="LINGER" value="240" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
<parm name="SMTPALTDOMAIN" value="" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

I built a cab file (renaming it to _setup.xml and running cabarc) to set this up. Note that you WILL get an error if your run the Exchange provisioning on a device that already has an exchange account configured.
[Windows Mobile Software Development] jeffreycentex:
AFAIK, it has to be _setup.xml

Try this one...

You only need to include the Base64 values - the Telephone, Email, etc are in the Base64 data.
[Windows Mobile Software Development] chipsxj:
Thanks......that did it! Has to be named _setup.xml for it to work.

So you can only have 1 xml file in the SDConfig.txt file, right?
[Windows Mobile Software Development] jeffreycentex:
Not as far as I know...

AT&T has many provxml files in their config.

However, if you leave it as a CAB, don't worry about it.. I like the CAB as it is more portable.

Also, once you learn the format for CABWIZ, it is much easier than trying to get the CPY commands to work. I've built CABs to create shortcuts, install ringtones and alert tones, even copy over my PhoneWeaver and MobiBook settings..
[Windows Mobile Software Development] ghettofreeryder:
Add my rom to UC capable roms

http://forum.ppcgeeks.com/showthread.php?t=19661
[Windows Mobile Software Development] elosogrande7076:
Here is the xml file that allowed me to get the 2 different emails....i was able to get three different email accounts to work. Thanks for all your help and also to Stan23 for the links u suggested, that was the final steps allowing me to get the multiple accounts to work. Also, thanks to jeffreycentex for the help with the xml gmail structure. Also, i couldnt upload the xml file so i had to change it to a txt file.
[Windows Mobile Software Development] stan23:
It's only used for querying the device, see my second code box here
[Windows Mobile Software Development] benoldcrap:
couple of questions:

I like to change the left soft key on my home screen to run Nilisco flashlight. I've been able to change the operation of the key successfully, but I can't seem to get the text of the button to change to "Flashlight."

here's the section in question:

<characteristic type="HKCU\Software\Microsoft\Today\Keys" translation="filesystem" />

<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">

<parm name="Open" datatype="string" value="\Program Files\Nilisco\Flashlight\flashlight.mscr" />

</characteristic>

<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">

<parm name="(Default)" datatype="string" value="Flashlight" />

</characteristic>

</characteristic>

That last part:

<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">

<parm name="(Default)" datatype="string" value="Flashlight" />

</characteristic>

</characteristic>

...just seems to add a new registry string instead of changing the "Calendar" value of the string that's already there. Any ideas?

Also...I saw this was asked already, but I didn't see an answer. Are there any commands for creating new folders, and then moving (not copying) files into those new folders? I like to organize my Programs folder, and it would be sweet to have that automated.

Thanks in advance!
[Windows Mobile Software Development] Red49er:
So if I want to setup an email account, do I use the SAME guid as your code, or do I use GUID-GEN to create unique ones?
[Windows Mobile Software Development] elosogrande7076:
Thats a good question, to be safe use GUID-GEN to create a new one.....i know that i had to create different ones to get my mulitple emails to work.
[Windows Mobile Software Development] Sleuth255:
Ahhh... <lightbulb>I just connected the dots.</lightbulb>
[Windows Mobile Software Development] Sleuth255:
You want to change the default parameter instead of creating a parameter named "(Default)". There's a way to do this but I can't recall the exact syntax off the top of my head.

Try:

<parm datatype="string" value="Flashlight" />

or

<parm name="" datatype="string" value="Flashlight" /> (most likely candidate here btw)
[Windows Mobile Software Development] elgreek84:
great great program. one thing, I read through, but no answer so far:

Has anyone out there figure out how to do CPY1: /path/folder/ to CPY2:/path ? without individual files?
[Windows Mobile Software Development] stan23:
try

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112">
<parm name="Default" value="Flashlight" datatype="string"/>
<parm name="Open" value="\Program Files\Nilisco\Flashlight\flashlight.mscr" datatype="string"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

it works for me :)

You don't need the filesystem translation unless you have a backslack \ in your parameter name (and then you have to escape it like that: abc\\cde), that how I understood the MSDN library.
[Windows Mobile Software Development] elgreek84:
Also, does anyone know how to copy file that are hidden, like .dll system files. that are hidden by default? (get does not exist error)
[Windows Mobile Software Development] yerp:
please help....this was great while it lasted

hi all,

i have run into an interesting problem....i successfully set up a bare-bones SDConfig.txt and used it on roughly 3-4 times when flashing/hard-resetting my mogul.....i originally had 2 copy commands that failed and would error out, no biggie, all cabs were installed.....i've since removed those copy lines and now when u tried to flash a new rom last night, UC errors out right away....it complains about not being able to find a cab file that is in the exact place it complains about. also, i've noticed that at some point UC renamed my folders on my SD card....well, i shouldn't say renamed, rather, changed them to all CAPS. here is my SDConfig.txt:

LOCK: Enabled
CAB: \Storage Card\INSTALLS\CABS\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\INSTALLS\CABS\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\INSTALLS\CABS\FlashVideoBundle.cab
CAB: \Storage Card\INSTALLS\CABS\opera_wm5_ppc_865.cab
CAB: \Storage Card\INSTALLS\CABS\PocketCM-0.20b.cab
CAB: \Storage Card\INSTALLS\CABS\S2U2-0.99p-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2V-0.32-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2P-0.17-WM5.cab
LOCK: Disabled
RST: Reset

old version that errored on theme copies, but got the rest done:

LOCK: Enabled
CAB: \Storage Card\installs\cabs\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\installs\cabs\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\installs\cabs\FlashVideoBundle.cab
CAB: \Storage Card\installs\cabs\opera_wm5_ppc_865.cab
CAB: \Storage Card\installs\cabs\PocketCM-0.20b.cab
CAB: \Storage Card\installs\cabs\S2U2-0.99p-WM5.cab
CAB: \Storage Card\installs\cabs\S2V-0.32-WM5.cab
CAB: \Storage Card\installs\cabs\S2P-0.17-WM5.cab
CPY1:\Storage Card\installs\themes\black.tsk
CPY2:\Windows\
black.tsk
CPY1:\Storage Card\installs\themes\volvo.tsk
CPY2:\Windows\
volvo.tsk
LOCK: Disabled
RST: Reset

thanks,

yerp
[Windows Mobile Software Development] dalvarez7:
The copy command didn't work because you didn't specify the file again in the CPY2 line.

It should look like this.

CPY1:\Storage Card\installs\themes\volvo.tsk

CPY2:\Windows\volvo.tsk
[Windows Mobile Software Development] Sleuth255:
SDAutoRun errors out if there are spaces/tabs after filenames. It doesn't change case on directories though :confused: It does set cabs it finds to RO so autorun won't delete them.

If you can't figure it out, post your SDConfig.txt file along with which cab errored out so I can take a look at it.
[Windows Mobile Software Development] elgreek84:
sleuth, any word on copying folders. Also, how do you copy over invisible files, such as .dll, .lnks etc...?
[Windows Mobile Software Development] Red49er:
I checked, and for whatever reason, I had several cabs which sdautorun didn't change to RO. I did it myself, and its working like a charm now.

p.s., Thanks for updating the front page with the proper cpy1/2 syntax, file copying now works on my vogue.
[Windows Mobile Software Development] bandersnatch:
This Works????

Dan says just find the exe on the storage card and click it and go. Will you retain your license or need to reenter? This is amazing stuff. I'm almost tempted to give it a shot. If someone could dumb it down a little further, I think I might be able to do it. The xml provisioning is where I get really hung up. I was hanging on until then. I think my SDconfig file will actually work. Creating a cab file is going to be way out of my league. It seems possible to just hammer out a notepad txt with the appropriate info, and rename it xml? I could do that if I could figure out what to put in it. Just basic stuff like owner info would be a fantastic step. I thought I might try a custsk thing, but I haven't specified what tsk yet. Let me know if I look good so far.

Slueth, this is great stuff, and you are a very patient man.
[Windows Mobile Software Development] Red49er:
Make sure you use notepad and save it as plain text. It looks like you have some funny end of line characters after a couple of your cab statements.
[Windows Mobile Software Development] bandersnatch:
Don't see it.

I don't see any end of line characters, and I don't know what you mean by plain text. I am saving it as a txt document. the only other options are encoding as ansi, unicode, unicode big endian, and UTF-8. I am running Vista.
[Windows Mobile Software Development] benoldcrap:
Okay sorry guys, I need help with a few more things here (I'm sure I'll come up with more later, but I'm getting close to finished now).

I was trying to turn the dial tones off. I went through some reg keys, and found one that worked, but when I throw it in my xml file, it does nothing.

This is what I got:

<!-- *** Dial Tones Off *** -->

<characteristic type="Registry">

<characteristic type="HKCU\ControlPanel\Sounds\Keypress" translation="filesystem">

<parm name="BeepMode" datatype="integer" value="0"/>

</characteristic>

</characteristic>

I also was having white space errors all over the place when trying to map the buttons.

This is an example of what the reg->xml covertor spits out. I know that it's wrong, but I dont know why:

<characteristic type="Registry">

<characteristic type="HKLM\Software\Microsoft\Shell\Keys" translation="filesystem">

</characteristic>

<characteristic type="HKLM\Software\Microsoft\Shell\Keys\40C7" translation="filesystem">

<parm name="WndCls" datatype="string" value=""/>

<parm name="BtnWnd" datatype="integer" value="0"/>

<parm name="Flags" datatype="integer" value="0"/>

<parm name="ResetCmd" datatype="string" value="\\Windows\AppButtons\Voice Speed Dial.lnk\"/>

<parm name="Icon" datatype="string" value="\windows\sddialer.exe, 0"/>

<parm name="Name" datatype="string" value="Button 5"/>

</characteristic>

AND finally (for now at least :) )...I was able to get my HTC Home plugin to do all of my customizations except for adding my favorite contacts. Does anybody have any idea where those are kept, and how to automate thier customization?? (btw...I have already transfered my pim.vol file. I'm specifically looking for how HTC Home inserts them into the favorites tab.)

Thanks again for all the help and for this program!..it's been a great cure for boredom at work :)
[Windows Mobile Software Development] Red49er:
If the quotes around the parm names (wndcls etc) are present when you browse the registry, you need to use the &quot& (not exactly sure what it is, but thats close). Thats what gave me whitespace errors before.

edit: its &quot

edit2: (from Sleuth) its "

I missed the semicolon myself and it drove me nuts trying to figure it out initially....
[Windows Mobile Software Development] elgreek84:
I have a question, maybe someone can help me out, if not I'll let you know when I get around to doing it:

I exported a bunch of registry settings, for HTC Home (to set the progarms in teh quicklauncher as well as contacts)

what I'm wondering is: if I import the registry for these settings in my userprovision.xml file before I get a chance to sync my device, will it be all screwed up? has anyone done this? what else are you guys doing out there?

Also, what is pim.vol for, I've seen a few of you that copy that over, what are the benefits of that?
[Windows Mobile Software Development] Don Vincenzo:
I have a quick question regarding modifying cabs using WinCE CAB Manager. I'm modifying some of my cabs so that by default they'll install to a storage card location (so that I can still have them install using UC), and whilst in the cab manager I was wondering if it was possible to modify the cab to include a serial key.

As an example, one of the cabs is SPB Traveller. I have my serial key for it, but was wondering if I could include it now to save me having to find the program after it's installed and manually include the key.

Thanks!
[Windows Mobile Software Development] Chainfire:
I'm still having some trouble configuring everything but I've given up for now. So far it changes reconfiguring my device after flash from a 3 hour to a 5 minute operation, that's good enough for me (in other words, not going to spend another 3 hours trying to fix it up better).

Just wanted to share a trick, don't know if it's been mentioned here before.

If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)

- Run the EXE on your computer to start the install

- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT

- Go to \Windows\AppMgr\Installs on your device

- Copy the CAB from there to wherever you keep your SDConfig CABs

- Cancel installation

- Voila

That's how I got all the Resco CABs, TomTom, etc.
[Windows Mobile Software Development] taiseer999:
I like your trick and to add that cabs are also found in PC @ C:\Program Files\Microsoft ActiveSync\
[Windows Mobile Software Development] Sleuth255:
@bandersnatch: Your SDConfig.txt file looks great other than the fact that there's tabs at the end of each line before the newline character. You should be able to see these in notepad if you run windows; they look like small rectangles after the filenames.
[Windows Mobile Software Development] elgreek84:
Oh man great tip!!! I was *foolishly* looking for an exe to cab coverter. Thank goodness, saves me time having to load this stuff from computer. You got any other tips? What did you do about contacts? is your wap provisioning super long?
[Windows Mobile Software Development] AllTheWay:
Chainfire...

You are a plethora of information.
[Windows Mobile Software Development] juju-35:
Re: cabs from exe and more questions

Hello,

Hello,

in fact you do not need to connect your device. Just click the exe and activesync (or Windows Mobile Device Center in Vista) will tell you that the programm will install on your next device connection. Then all cabs are extracted and copied, waiting to be copied and installed to your device.

In Vista it took me a while to find out the cabs ar all copied to the /windows/windowsmobile/name_of_your_cab/ folder. Just cut the cab and paste into your install directory before reconnecting your device and it works....

In XP as reported by some cabs are copied to the activeSync directory.

Now onto my situation, appreciate any tips (sorry if some issues are basic. Still a beginner although learning!) for issues I am facing with my configuration:

1- How do you move files around. Sleuth gives an example to copy a file, but if I want to move links around my start menu (for example move a link from Programms to settings/system), I need a command to move a file or delete a file (and copy from SD card)

2- Have some people use Mortron scripts to acheive simialr results? Is there a good way to launch the mortronScript only after Flashing a ROM (or a Hardware reset)?

3- WHat is easiest way to capture all the registry changes for your device cusotmization (like changing some programs options, regional settings, HTC home customization, Kaiser Tweak stuff,...)? Alex suggested to me to export all registry to reg file after initial install, then to apply all changes/settings, then export again all regiustry to reg file, make a comparison, keep change keys, use reg2xml....Is that the best way? Anything easier?

Thanks for all your tips and UC, it makes flashing even more fun!

Juju
[Windows Mobile Software Development] elgreek84:
Regarding:

1 - I would also like this to be updated in the first page, I'm still not clear on how to copy, and still have heard no words as far as copying the whole directory.

I'm running into the situation where certain files don't know their extensions (pim.vol shows as just pim) or (.lnk files, .dll etc...)

3- For this I have been using Resco Explorer registry add in to export HTC Home Contacts, Program settings, as well as background, today screen order, and a fwe others as well as e-mail.

However, I have kept them as .reg files and once the SDAutorrun is done and resets, then I manually import them back in (just by clicking on them) and reset once more. The whole processes takes about 10 minutes, it's not so bad.

I would love it if everything was automated, however when I tried to convert reg2xml and putting it in usercustomizatoin.xml things didn't work out so well, so I figured i'd jsut do thatpart manually.

QUOTE=juju-35;1986857]Hello,

1- How do you move files around. Sleuth gives an example to copy a file, but if I want to move links around my start menu (for example move a link from Programms to settings/system), I need a command to move a file or delete a file (and copy from SD card)

3- WHat is easiest way to capture all the registry changes for your device cusotmization (like changing some programs options, regional settings, HTC home customization, Kaiser Tweak stuff,...)? Alex suggested to me to export all registry to reg file after initial install, then to apply all changes/settings, then export again all regiustry to reg file, make a comparison, keep change keys, use reg2xml....Is that the best way? Anything easier?

Thanks for all your tips and UC, it makes flashing even more fun!

Juju[/QUOTE]
[Windows Mobile Software Development] AllTheWay:
Thank you for posting this. I was looking for where Vista put the .cab files.
[Windows Mobile Software Development] Chainfire:
Yes I read that too, I also knew they were stored on the PC but I thought they were deleted there as soon as they transferred to your device. Well whatever, both ways work, whatever you like to use :)

It seems the only way to do this is the CPY1 / CPY2 command. This annoyed the hell out of me so I wrote a small program that moves all my Start Menu entries, splash screens, license files, etc, mkdir, move, copy, delete stuff for me. Problem there is the stupid EXEC command doesn't find it, so I have to run it manually after hard-reset, but hey, I can live with that. I first tried to do it using provider xml, which I'm usually quite fond of (FileOperation type should be able to do all these things) but for some reason it didn't work and it took me an hour to make, so I wrote that program in 5 minutes instead.

I think that's pretty much the only way to do it, to be honest.
[Windows Mobile Software Development] juju-35:
Already posted in Alex ROM thread! :D

Use Google search :)

Just joking, could not resist, I usually got those answers myself!

Seriously, glad I can help. It took me a while ot find out because the search on vista is dsiabled by default on the /windows directorya nd coudl never figure out that is where Vista would put them!

Need answers to my other questions though! Any help?

Juju
[Windows Mobile Software Development] juju-35:
Yes, doesn't CPY1 only copies, not move files anyway?

Thanks for the tips. Seems like a script like MortScript may be the solution for me, as it may take me hours to get back into C/C++. Have not done those for ages!

Any comment on starting the exe from the SDConfig? I was actually wondering the same thing, I ocudl start the script once programmed. THe advantage of a script is you can more easily edit it as you cnage your menus,... no need to compile each time.

Wish more senior members on this thread could spend a few minutes helping us (in turn we will help respond basic questions to future beginners!)...

Thks again,

Juju