[Touch Diamond, MDA Compact IV ROM Development] laser21:
Im having exactly the same problems, I also would love to configure my wifi.

I found the following, but didnt try it, since Im not too experienced with cab making.

Here is what I did to create a cab that will build mail settings:

1)create a text file for the provisioning of the account. Name the text file _setup.xml

Here is the provisioning document that I used for IMAP. (note the characteristic type is a GUID that I made up) You need to edit this doc for youir server/user settings.

<wap-provisioningdoc>

<characteristic type="EMAIL2">

<characteristic type="{12984356-1211-3753-6011-103170112174}">

<parm name="SERVICENAME" value="Account Name"/>

<parm name="SERVICETYPE" value="IMAP4"/>

<parm name="INSERVER" value="inboundmail.yourdomain.com"/>

<parm name="OUTSERVER" value="outboundmail.yourdomain.com"/>

<parm name="NAME" value="yourname" />

<parm name="AUTHNAME" value="yourmailloginname"/>

<parm name="AUTHSECRET" value="password"/>

<parm name="DOMAIN" value=""/>

<parm name="REPLYADDR" value="yourmailname@yourdomain.com"/>

<parm name="LINGER" value="15" />

<parm name="RETRIEVE" value="2048" />

<parm name="KEEPMAX" value="300" />

<parm name="DWNDAY" value="3" />

<!-- "DWNDAY" value="3": retrieve messages only retrieved on inbox within last 3 days-->

<!-- "KEEPMAX" value="25": max of 25 email will be retieved -->

<!-- "RETRIEVE" value="2048": only 2k of each email will retrieved at the begin, aftherwards automatic download of the email

(it's also possibe to set retrieving to: header only) -->

</characteristic>

</characteristic>

</wap-provisioningdoc>

2) you then need to create the cab file using _setup.xml.

You need to have makecab.exe from the wm5 sdk. If you don't have it...google to find it.

Here is the command...

makecab /D COMPRESS=OFF _setup.xml mail.cab

I turned off compression....from what I read PPC does not support it.

3) Move the cab using Windows explorer or Memory cards. The MS docs state that Active Sync should not be used.

4) run the cab.

If you need POP3, google wap-provisioningdoc and pop3...you'll fine more examples.

Once again...thanks to Pof for pointing me in the right direction.

WIFI

Okay, so after fiddling about all day with various sample xml codes from MSDN, I was finally able to create a CAB to configure my WIFI connection to my home router (including WPA passkey), so that I can just run the CAB every time I flash / hard-reset.

STEP 1. Open Notepad and copy the code below to it

<wap-provisioningdoc>

<characteristic type="CM_WiFiEntries">

<characteristic type="SSID: REPLACE_WITH_YOUR_SSID">

<parm name="DestID" value="Destination GUID: SEE NOTE 1 BELOW"/>

</characteristic>

</characteristic>

<characteristic type="Wi-Fi">

<characteristic type="CONNECTION TYPE: SEE NOTE 2 BELOW">

<characteristic type="SSID: REPLACE_WITH_YOUR_SSID">

<parm name="DestId" value="GUID: SEE NOTE 1 BELOW"/>

<parm name="Encryption" value="SEE NOTE 3 BELOW"/>

<parm name="Authentication" value="SEE NOTE 4 BELOW"/>

<parm name="NetworkKey" value="REPLACE WITH YOUR NETWORK KEY, SEE NOTE 5"/>

</characteristic>

</characteristic>

</characteristic>

</wap-provisioningdoc>STEP 2. Replace the parameters in the sample code depending on the connection you want to configure:

SSID: Self-explanatory

Note 1

Destination GUID

For a connection to "The Internet", use this GUID

{436EF144-B4FB-4863-A041-8F905A62C572}

For a connection to "Work", use this GUID

{A1182988-0D73-439e-87AD-2A5B369F808B}

Note 2

Connection Type

"access-point" for infrastructure connection

"ad-hoc" for computer-to-computer

Note 3

Encryption

0 = WEP

1 = No encryption

4 = TKIP

Note 4

Authentication

0 = Open authentication mode

1 = Shared authentication mode

3 = Specifies Wi-Fi Protected Access (WPA) authentication

4 = Specifies WPA-PSK authentication

5 = Specifies WPA-NONE

Note 5

Network Key

Put your WPA or WEP network key here, just as you would enter in the settings screen. However, make sure that the key does not contain either the ",< or > characters, since this will screw up the XML code.

STEP 3. Save the Notepad file as .provxml.xml

Choose "ALL FILES" in the "SAVE AS TYPE" box and "UNICODE" in the "ENCODING" dialog box

STEP 4. Open a command-line window, go to the folder where you saved the xml file and type:

makecab /D COMPRESS=OFF .provxml.xml wifi.cab

STEP 5. Copy the CAB file to your device and run it. You should now see your Wifi connection under the settings Wi-Fi control Panel

You will have to manually check the "Hidden Network" box if your router is hiding the SSID (I have not figured out the parameter to do this automatically yet)

Voilá! :)

Note: If you use WEP, you need some additional lines of code to specify things like the KeyIndex. See these pages for more info:

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

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

By way of example, below is a sample code for an access-point connection connection to the internet, using WPA-PSK authentication.

<wap-provisioningdoc>

<characteristic type="CM_WiFiEntries">

<characteristic type="My_SSID">

<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>

</characteristic>

</characteristic>

<characteristic type="Wi-Fi">

<characteristic type="access-point">

<characteristic type="My_SSID">

<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>

<parm name="Encryption" value="4"/>

<parm name="Authentication" value="4"/>

<parm name="NetworkKey" value="My_Network_Key"/>

</characteristic>

</characteristic>

</characteristic>

</wap-provisioningdoc>I hope this works for you. Let me know if you have any problems / questions.