yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] RoryB:
Follow up to delete folders

You can delete folders with file operation, but the folder has to be empty and no subfolders. So you could work backwards and delete files in subfolders and then delete subfolders and then delete main folder.

<characteristic type="\%CE2%\Start Menu\Programs\unwanted_folder" translation="install">

<characteristic type="RemoveDir" />

</characteristic>
[Windows Mobile Software Development] KwestJones:
Hard Reset After UC Finishes

I've searched high and wide and it may be that I just can't get the right search combination but nevertheless I couldn't find the answer....

I get a ROM that's not UC Compatible. I've tried the RunAutoRun.exe and also SASHIMI to initiate the UC Process. It seems to work great. Then it resets as you would expect it to do, however I get the message that the storage is being cleaned. please wait....or whatever the lingo is. You can imagine how frustrating this is (Not the fact that anyone would cook a ROM without UC Compatibility) but that once UC finishes by the time it reboots...I'm back to nothing.

Anyone know why this happens? Your help would be greatly appreciated.
[Windows Mobile Software Development] sirjohnfalstaff:
VPN?

Does someone know how I can create a VPN connection with UC? I did find some reg keys but somehow I doubt importing them will work. Also I cannot find how I can set the created email account to use the Work/VPN connection.

update: already found it -> querying with rapiconfig for CM_VPNEntries gets all the settings
[Windows Mobile Software Development] ianl8888:
After patiently reading through 103 pages of this thread (February 14, 2009) on the vexed question of how to edit a CAB file so it installs to the SD card from SDConfig.txt without user input, the results are not good:

1) the original page 1 statement from the then thread Moderator states categorically:

"One cannot install to the SD card automatically with SDConfig.txt" - paraphrased but an accurate summary. If true, it makes UC pretty useless

2) a few posts later he makes the contradictory statement that one can edit the CAB file in WinCE to make it do this - no detail or example is offered on how to edit

3) the matter rests until #490 on p49, when datapusher challenges this - ie. he states that WinCE will not do this in a direct manner, if at all. He offers an example

4) a reply is then seen on page 54, with screenshots of WinCE purporting to show how the edit is done

5) datapusher replies a few posts later, accurately stating that the method shown in the screenshots does not work. I have tried it and I agree with datapusher

So we seem to have reached the stage after more than 12 months and 103 posts, that UC is practically useless since CAB files cannot be edited to install on the SD card from SDConfig.txt without user input. Although Main storage is very limited, but we now have 16Gb cards

I hope this is not true, but if not, then HOW is it done, exactly ?
[Windows Mobile Software Development] ianl8888:
As an example of what I mean in the above post, I edited a simple CAB for an Australian Street Directory PDA program that I own.

UBD1.CAB has only ubd.exe - I wish to install this in Storage Card\Program Files\UBD - and a shortcut for \Windows\Programs\Start Menu. No registry entries or other bits and pieces.

Here is a screenshot of the WinCE edit:

hard-coded for install to Storage Card\programs\UBD

Installing normally (ie.not through SDConfig.txt) still brings the question brings the question "Device or Storage Card ?". If I choose "Device" (ie. against the hard-coding), it obligingly installs on Main Storage !!

So can anyone comment constructively, please ?
[Windows Mobile Software Development] RoryB:
I have done it with Microsoft Reader and Total Commander.

Not only did I change the default install directory, but I changed some of the hardpathed install locations. Also check the reg settings to make sure things are pointing in the right direction. I could not get it to work just pointing the default install directory.
[Windows Mobile Software Development] l3v5y:
On the second of those two dialogues (the one to the left) there is an option to let the user override the install directory. Select the oter of those two options.
[Windows Mobile Software Development] zikronix:
i want to use this product it looks nice...however...after dumping the rgistry changes between clean phone and prepped phone and remove all hex entries,

I still get errors with thw reg to xml conversion my xml has errors.

i pull up the area where it says it has errors and there is no error.

Is there a way just to import a reg keay with out having to create the convoluted xml...as im convinced the xml creator doesnt work propelry.
[Windows Mobile Software Development] ianl8888:
Yes, I'd tried that too, with no joy ... but I'll give it a try through SDConfig.txt to test this
[Windows Mobile Software Development] zikronix:
my xml file with the registry edits has no errors yet it doesnt install...it roughly a 125 key file
[Windows Mobile Software Development] l3v5y:
Try and split it down into smaller files and see if any of those doesn't work, then do it again with the files that don't work.
[Windows Mobile Software Development] skydancer11:
Did some searching and still Can't figure it out... :confused:

How can I create XML from connection profile?
[Windows Mobile Software Development] RoryB:
If I understand correctly. You need to use rapiconfig. See http://xdaforums.com/showpost.php?p=1899755&postcount=17 for some explanation and http://msdn.microsoft.com/en-us/library/ms889539.aspx for some of the posibilities.
[Windows Mobile Software Development] zikronix:
im so close with uc i can feel it...

i broke my xml down into 5 files...still all regkeys didnt parse...which doesnt make sense to me because sashimi....parses the whole thing properly.

either way. now my questions lies with xcopyce. for the life of me i cant get it to copy files from the memory card to the device.

the formatting is correct i use the cpy command in uc to move xcopyce and txt file from

\Storage Card\Cabs\Root\ to \Temp\

and that works then i execute in sdconfig \Temp\xcopyce.txt

and it throws and error.log inthe root of the sd card that says

cant find xcopyce.txt and its looking for it in \Storace Card\xcopyce.txt

so i put it there and retried it. it still didnt work...what am i doing wrong...

Also is there a way to delete registry keys with uc?
[Windows Mobile Software Development] RoryB:
You ARE very close.

Actually, you leave xcopyce.txt in the root of your sdcard.

I copy the xcopyce.exe to the root of the device and then in sdconfig.txt you exec the \xcopy.exe. This works for me.

Hopefully this helps.

I too have not been able to get xml files to work in sdautorun. I just run them later in task manager.

I use a file operation xml to delete \xcopyce.exe to keep my device memory clean.

I think you can remove registry values. Let me do some research. Found it here http://xdaforums.com/showpost.php?p=2485657&postcount=786

I found this to work for deleting folders in addition to his delete files. http://xdaforums.com/showpost.php?p=3304945&postcount=1024
[Windows Mobile Software Development] ryangruhn:
How would I make this work:

I've seen copy, delete code but nothing for "rename" Ideas?
[Windows Mobile Software Development] l3v5y:
I guess the easiest option would be to copy it, and then delete the original.
[Windows Mobile Software Development] The Whistler:
Space in EXEC commands - issue solved?

Hi,

sorry if it already has been answered, but I have found nothing using the search - is it somehow possible to include a space in an EXEC: command?

Two reasons why I need this:

1. I want to install PPCPimBackup.exe from my Storage Card, which can not be done by using CAB:

2. I need to run an .exe placed in \Windows\Start Menu after installation.

Thanks,

The Whistler
[Windows Mobile Software Development] ryangruhn:
What code would I use to delete the folder?
[Windows Mobile Software Development] garyfunk:
Remember, SEARCH is your friend.

http://xdaforums.com/showpost.php?p=3109893&postcount=928
[Windows Mobile Software Development] The Whistler:
Thank you, I must have missed this post...

I think I understand what to do, however, it did not work as expected.

Do you know why the following does not work:

LOCK:Disabled

HIDE:Enabled

CPY1:\Storage Card\UC\Cabs\PPCPimBackup.exe

CPY2:\Temp

EXEC:\Temp\PPCPimBackup.exe

RST: Reset

I get the error message "\Temp\PPCPimBackup.exe does not exist!"

Indeed, the \Temp folder does not contain the file, but it can be found in the path given in the CPY1:...

Is there anything wrong with my CPY: commands?

Thank you, The Whistler
[Windows Mobile Software Development] RoryB:
Tell the name of the file you want to copy it to. See bold text in your quote.
[Windows Mobile Software Development] k000:
Does this mean that exes on Storage Card can't be executed ? Or why would you copy to device ?
[Windows Mobile Software Development] l3v5y:
The EXEC command can't handle spaces in commands.
[Windows Mobile Software Development] lp_stealth:
Hey guys, I really want my phone to auto install all my cabs after a flash as it is just draining me to install them manually every time and have red ad reread the fort post but I am still lost. I have made my text file for the sd card but how do I auto run it I tried looking here \Windows\Startup\CheckAutorun.lnk but there is no checkautorun.ink what am I missing do I need a program first or what. Please help an idiot out.

Thanks, Ken
[Windows Mobile Software Development] DaveShaw:
Hi Ken,

You ROM needs to be UC Compatable, if the Chef didn't cook it in then you cant use this. The CAB's should auto install after a Hard Reset or a ROM flash.

Check out SASHIMI instead if your ROM isn't UC compliant.

Ta

Dave
[Windows Mobile Software Development] onurd:
RESCO Explorer and Backup Registration Info

Two questions:

Does anybody know where Resco Explorer and Backup save the user registration info? (registration key). I want to include it in my UC, so I don't have to enter my key every time I reflash my device, but none of the registry settings for resco (HKCU\Software\Resco) doesn't have a key that resembles a registration info. Any ideas?

How can I export my WIFI settings (SSID, WPA key etc)?
[Windows Mobile Software Development] chrisdk:
They're stored in a file called wmtrigger.dat, in the \Windows directory.
[Windows Mobile Software Development] The Whistler:
hi,

could somone please give me a hint why the following as part of my .xml does not work?

<characteristic type="FileOperation">

<characteristic type="%CE17%\GPS" translation="install">

<characteristic type="MakeDir" />

<characteristic type="CacheWolf.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="\Storage Card\Programme\CacheWolf\CacheWolf.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

</characteristic>

thank you!

the whistler
[Windows Mobile Software Development] garyfunk:
Download the uc.zip file in my signature and look at the wifi configuration files.
[Windows Mobile Software Development] lp_stealth:
OK well I am using Mighty rom and it says UC in the title. So what do I need to do make sure I have the text file in the root directory of my SD card and make sure my cabs are in the folder specified. That is where I am at now. So when I install the new mighty ROM will it automatically install or is there more to itthat Im missing?
[Windows Mobile Software Development] RoryB:
If you are trying to run it without flashing or hard resetting try this.

http://xdaforums.com/showpost.php?p=2985702&postcount=903
[Windows Mobile Software Development] kopster:
Is the CFG: command supported on a HTC Fuze?

I'm running NATF's v4.4S & Can't get CFG to run an external CFG file.

I've tried running here...

CFG: \Storage Card\SDConfig2.txt

...and copying it over with xcopyce and running here...

CFG: \SDConfig\SDConfig2.txt

...thinking that (like EXEC) spaces will screw it up.

Both attempts were unsuccessful.

Is this even supported?

Any ideas?

Thanks in advance for any help.
[Windows Mobile Software Development] metal450:
Sorry for the ::bump::...been trying to figure this one thing out for months...
[Windows Mobile Software Development] garyfunk:
I think that is stored in cemail.vol. Just backup and restore that file and you are all set.
[Windows Mobile Software Development] metal450:
Ah...I was kinda trying to avoid that as I wasn't sure if it would play nice with my email-provisioning XML...plus it seemed too silly that ONLY those settings weren't configurable via XML - I figured I must've been missing something :P
[Windows Mobile Software Development] garyfunk:
If you backup and restore cemail.vol, you are 90% done. Look at the samples in the UC.zip file in my signature. It's all there.
[Windows Mobile Software Development] metal450:
Yep, I've already checked it out :) If need be, then that's just what I'll do - somehow I just figured that having everything be "clean", and then just set the values I want set via XML (i.e. as opposed to copying & restoring databases) would be a nicer solution, especially since i got everything I need done that way (granted, it takes one activesync to put everything back on the phone...but again, that's automatic, and comes right out of my desktop's outlook - the master copy - anyway)
[Windows Mobile Software Development] techman28:
Can SDConfig or the provisioning xml copy whole folders from one place to another or would it have to be file by file instead of a whole folder at once?

Thanks
[Windows Mobile Software Development] RoryB:
Search this thread for xcopyce to copy whole folders.
[Windows Mobile Software Development] techman28:
Thanks, it worked great!
[Windows Mobile Software Development] tonio94:
Need help

Hi guys,

I'm trying to integrate UC to my current rom without success.

I copied the file SDAutorun.exe into my kitchen (once built, the file is in \Windows), I already had a autorun.exe but I even replaced it (just to be sure), I created the SDConfig.txt file in the Internal Storage and when I hard reset, the customization process seems to create a SDConfig.txt file in \Windows and use it instead of the one declared on the Internal Storage.

Any idea ?
[Windows Mobile Software Development] irus:
has anyone figured this out yet i would love this as i am hard resetting my device all the time. thanks
[Windows Mobile Software Development] reigndropz:
whats up guys. Anyone around to help me with what is probably a simple question for you guys concerning UC?

If so....I started today trying to work with UC for the first time. I successfully got it to install a slew of apps, and set up my email as well, which is awesome. When it comes to the tweaks though, its getting pretty confusing for me. For instance, I'm trying to have the start menu enlarged automatically as well as have specific shortcuts in the start menu too. Now my question is, do I have to export/delete the original shortcuts first before I implement with the xml file the new ones I want? if so, how rough is that?

Also, does <wap-provisioningdoc> and <\wap-provisioningdoc> have to be done between every action? or just at the beginning of the xml and the end?

ok here goes......

I'm trying to add shortcuts to my start menu......can anyone help me fix this?

<wap-provisioningdoc>

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="RemoveDir" />

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="MakeDir" />

<characteristic type="Battery Monitor.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="%CE2%\BatteryMonitor.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="MakeDir" />

<characteristic type="Camera.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="%CE2%\Camera.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="MakeDir" />

<characteristic type="File Explorer.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="%CE2%\fexplore.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="MakeDir" />

<characteristic type="PHM RegEdit.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="\Program Files\PHM Tools\regedit.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

<characteristic type="%CE2%\Start Menu\" translation="install">

<characteristic type="MakeDir" />

<characteristic type="psShutXP.lnk" translation="install">

<characteristic type="Shortcut">

<parm name="Source" value="Program Files\psShutXP\psShutXP.exe" translation="install"/>

</characteristic>

</characteristic>

</characteristic>

</wap-provisioningdoc>
[Windows Mobile Software Development] RoryB:
You only have to delete the original shortcuts you do not want in the start menu.

<wap-provisioningdoc> and <\wap-provisioningdoc> do not have to be done between every action.

You do have to tell wap-provisioning that you are doing file operations

To add shortcuts to start menu:

<wap-provisioningdoc>

<!-- Defines this group of code as file operations -->
<characteristic type="FileOperation">

<!-- Add shortcuts to Start Menu -->

<!-- Even though Start Menu already exists you pretend to create it -->
<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="MakeDir" />

<characteristic type="Battery Monitor.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\BatteryMonitor.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Camera.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\Camera.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="File Explorer.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\fexplore.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="PHM RegEdit.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Program Files\PHM Tools\regedit.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="psShutXP.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="Program Files\psShutXP\psShutXP.exe" translation="install"/>
</characteristic>
</characteristic>

<!-- Closes Start Menu related group -->
</characteristic>

<!-- closes file operation group -->
</characteristic>

<characteristic type="Registry">
<!-- This is where you can put registry settings -->
</characteristic>

</wap-provisioningdoc>
[Windows Mobile Software Development] m.klinge:
So im trying this out - I want to change the keyboard layout to fit the printed one on my kaiser :)

My code are as following:

<wap-provisioningdoc>

<!-- Keyboard layout -->

<characteristic type="HKLM\HARDWARE\DEVICEMAP\KEYBD">
<parm name="CurLang" value="1044" datatype="integer"/>
</characteristic>

</wap-provisioningdoc>

But nothing are changed in the settting - what am i doing wrong? IE shows the file correct - the value is taking direct from the value that i would normally change it to if i use RegEdit on the device - any clue on what im doing wrong? Btw a million thanks for a super cool how-to :)

Edit: Blah guess im kinda retard - seem i forgot the <characteristic type="Registry"> tag :)

Edit2: Oh well didnt help :(

//M
[Windows Mobile Software Development] reigndropz:
Thank you so much!!
[Windows Mobile Software Development] reigndropz:
Ahhh man. It's still not working. The email sets up fine but nothing else. I've deleted what I thought are unnecessary <\charateristics>'s

Here's my complete xml.

<wap-provisioningdoc>
<characteristic type="EMAIL2" recursive="true">
<characteristic type="{6E1145C4-F35F-0EC9-182D-F73C2DCBEFD7}">
<parm name="SERVICENAME" value="Gmail"/>
<parm name="SERVICETYPE" value="IMAP4"/>
<parm name="INSERVER" value="imap.gmail.com"/>
<parm name="AUTHNAME" value="blahblahblueblue"/>
<parm name="AUTHSECRET" value="aaaaaaaaaaaaaa"/>
<parm name="DOMAIN" value=""/>
<parm name="OUTSERVER" value="smtp.gmail.com"/>
<parm name="REPLYADDR" value="blahblahblublue@blah.com"/>
<parm name="SMTPALTAUTHNAME" value="blahblahblublue@blah.com"/>
<parm name="SMTPALTDOMAIN" value=""/>
<parm name="NAME" value=""/>
<parm name="LINGER" value="15"/>
<parm name="RETRIEVE" value="51200"/>
<parm name="KEEPMAX" value="4294967295"/>
<parm name="DWNDAY" value="3"/>
<parm name="FORMAT" value="2"/>
<parm name="AUTHREQUIRED" value="1"/>
</characteristic>
</characteristic>

<characteristic type="FileOperation">

<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="RemoveDir" />
</characteristic>
</characteristic>

<characteristic type="%CE2%\Start Menu\" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>

<characteristic type="Battery Monitor.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\BatteryMonitor.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Camera.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\Camera.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="File Explorer.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\fexplore.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="PHM RegEdit.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Program Files\PHM Tools\regedit.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="psShutXP.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="Program Files\psShutXP\psShutXP.exe" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Registry">
<characteristic type="HKLM\Software\HTC\EnlargeMenu">
<parm name="Enable" datatype="integer" value="1"/>
</characteristic>
</characteristic>

</characteristic>

</wap-provisioningdoc>

Anything look not right?