[Windows Mobile Software Development] TheTimetraveler:
Struggling to get XML working

Hi there!

I recently discovered UC and like it very much. However I don't get it 100% working ...

I tried everything I could and now I run out of Ideas ... it's been already more then ten hours so I would be very grateful if you could help me.

First Thing is the SDConfig.txt (I think this is clean):

LOCK:Enabled
CAB: \Storage Card\Cabs\3D_Mines.cab
CAB: \Storage Card\Cabs\Advanced Notifications (Ace10134).cab
CAB: \Storage Card\Cabs\AssassinsCreed_WVGA.CAB
CAB: \Storage Card\Cabs\Caver_0.9.1.cab
CAB: \Storage Card\Cabs\conquest.cab
CAB: \Storage Card\Cabs\GCzII_20091114_1900_0235_35.cab
CAB: \Storage Card\Cabs\gwatch_0.6.4.cab
CAB: \Storage Card\Cabs\htc_NetworkPlugin_1_0_30468_1.CAB
CAB: \Storage Card\Cabs\new_GermanKeyboardFix(TP2GSM).cab
CAB: \Storage Card\Cabs\SkypeMobile.CAB
CAB: \Storage Card\Cabs\SONIC.CAB
CAB: \Storage Card\Cabs\tomtom7.915.cab
CAB: \Storage Card\Cabs\RegLogger.v1.6.PPC.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\PrinceOfPersia_wvga.cab
CAB: \Storage Card\Cabs\galarm-VGA_2.3.cab
HIDE:Disabled
LOCK:Enabled
CAB: \Storage Card\Cabs\galarm-german-male.cab
XML: \Storage Card\Cabs\Files.xml
XML: \Storage Card\Cabs\Settings.xml
LOCK:Disabled
RST: Reset

My problems are in the xml files. I tried very many combinations and made about 30 Hardresets ... :(

Problem is most times, that the xml is valid, and I'm almost certain, that they have correct syntax, but it will be not executed. I tried to isolate the problem, and cut some parts out, but I don't see a pattern.

Sometimes it works all or nothing. (However cabs work always)

Now I split up the configuration and the file operations in two files. And I got at least the registry settings to work after a lot of trying.

The funny thing is, when I pack it into a cab with cabarc and run it on the device, it works at any combination (Both files together in one as well as 2 separate cabs).

I even packed the very same "Files.xml" (renamed to _setup.xml) into a cab and it installs on the device without any problem, while the Files.xml got not loaded by UC.

This is very frustrating and I run out of ideas ... :(

of cause I could just include the cab I made into the SDConfig.txt, but I would like to use the xml file for easier editing .... and I don't want to just capitulate after the many hours I already wasted ...

Thank you in Advance for your help!

my Files.xml:

<wap-provisioningdoc>

<!-- Ringtone -->

<characteristic type="FileOperation">
<characteristic type="%CE5%\My Ringtones" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Kakkoi.mp3" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Storage Card\cabs\Kakkoi.mp3" translation="install" />
</characteristic>
</characteristic>
</characteristic>

<!-- Move Start Menu items -->

<characteristic type="%CE11%\Utilities" translation="install">
<characteristic type="MakeDir" />
<characteristic type="RegLogger.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\RegLogger.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="%CE11%\GPS" translation="install">
<characteristic type="MakeDir" />
<characteristic type="TomTom Navigator.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\TomTom Navigator.lnk" translation="install" />
</characteristic>
</characteristic>
<characteristic type="GCzII.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\GCzII.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="MakeDir" />
<characteristic type="G-Watch.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\G-Watch.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="%CE11%\Games" translation="install">
<characteristic type="MakeDir" />
<characteristic type="SONIC.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\SONIC.lnk" translation="install" />
</characteristic>
</characteristic>
<characteristic type="Assassins Creed.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\Assassins Creed Mobile.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="%CE11%\Internet" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Skype.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE11%\Skype.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

</characteristic>
</wap-provisioningdoc>

note: I had this code (or very similar) already working in the course of isolating the problem but changed it again to add my registry setup which failed so far, and cant reproduce it working now.

Unless it is necessary I'd like to keep the "Settings.xml" due to privacy issues (It is working anyway)

Regards, Timetraveler

PS: I renamed the attached "Files.xml" to "Files.xml.txt" due to upload restrictions