JoelC
1st June 2007, 11:35 AM
Hi all,
I've used a Wizard ROM kitchen to build a (WM6) ROM the way I like it - it installs fine, then customises my Today theme and personal registry settings from the Extended ROM... all well and good.
One niggling problem though... I would love to restore my WiFi settings from a hard reset.
I can configure the setup manually with no problem; I use WEP (KeyIndex 1), key not provided automatically, do not use 802.11x authentication... my SSID is hidden, but I don't mind going into the connection dialog after the hard reset and checking the "this is a hidden network" box - that's the least of the problems (as you will see)...
I am aware that I need to use XML to do this, and have tried it using Cuccureddu's tips from this thread http://forum.xda-developers.com/showthread.php?p=1227587 (using provxml) and also tried from _setup.xml in a CAB file: I've not tried this from the ExtRom yet, as whenever I run the CAB using File Explorer (with no WiFi network info set up) I receive an error saying "Installation of wifi.cab was unsuccessful".
I've tried this with Wifi enabled and Wifi disabled, btw...
How I did it:
- Created a file in Notepad with all my settings, as follows - I went to the MSDN pages as mentioned in cuccureddu's post, as my network uses WEP:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="MySSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MySSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="NetworkKey" value="myNetworkKey"/>
<parm name="KeyIndex" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
OK? For Parameters "KeyProvided" and "Use8021x" the MSDN pages say to use Boolean operators, so I've tried it with "true" and "false", then with "1" and "0"...
Made the cab in the following ways:
1. As stated in the linked post, using .provxml.xml and the MakeCab.exe from Windows XP (with .provxml.xml saved as UTF-8, then Unicode - as another post indicated it should be saved as UTF-8(?!?)).
2. As above, saving .provxml.xml both as UTF-8 and then Unicode, but using the MakeCab.exe from the WM5 SDK.
3. Then tried adding the XML to one of my registry settings cabs using WinCE Cab Mgr (v2.0); put it in the Provisioning XML (post). The CAB ran as usual, injected the registry keys that were there before but did nada to the WiFi settings.
4. Then renamed the .provxml.xml to wifi_setup.xml and tried both Makecabs (again, tried saving the XML as UTF-8 and then as Unicode) as follows:
Makecab.exe /D COMPRESS=OFF wifi_setup.xml wifi.cab
... in the hope that this would inject the XML as _setup.xml...
Note: I transferred the file in all above cases over ActiveSync to my Storage Card, which is where it was run from.
5. Finally, I redid the file as per cuccureddu's instructions (saved as Unicode), Makecabbed it using WM5 SDK Makecab exactly per instructions, then ZIPPED the CAB and Activesynced it to my Storage Card. Ran it. "Installation of wifi.cab was unsuccessful".
Hmmm...
So, I'm a little stuck... does anybody have any ideas, or want further info?
TIA for any help you can give...
Joel
I've used a Wizard ROM kitchen to build a (WM6) ROM the way I like it - it installs fine, then customises my Today theme and personal registry settings from the Extended ROM... all well and good.
One niggling problem though... I would love to restore my WiFi settings from a hard reset.
I can configure the setup manually with no problem; I use WEP (KeyIndex 1), key not provided automatically, do not use 802.11x authentication... my SSID is hidden, but I don't mind going into the connection dialog after the hard reset and checking the "this is a hidden network" box - that's the least of the problems (as you will see)...
I am aware that I need to use XML to do this, and have tried it using Cuccureddu's tips from this thread http://forum.xda-developers.com/showthread.php?p=1227587 (using provxml) and also tried from _setup.xml in a CAB file: I've not tried this from the ExtRom yet, as whenever I run the CAB using File Explorer (with no WiFi network info set up) I receive an error saying "Installation of wifi.cab was unsuccessful".
I've tried this with Wifi enabled and Wifi disabled, btw...
How I did it:
- Created a file in Notepad with all my settings, as follows - I went to the MSDN pages as mentioned in cuccureddu's post, as my network uses WEP:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="MySSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MySSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="NetworkKey" value="myNetworkKey"/>
<parm name="KeyIndex" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
OK? For Parameters "KeyProvided" and "Use8021x" the MSDN pages say to use Boolean operators, so I've tried it with "true" and "false", then with "1" and "0"...
Made the cab in the following ways:
1. As stated in the linked post, using .provxml.xml and the MakeCab.exe from Windows XP (with .provxml.xml saved as UTF-8, then Unicode - as another post indicated it should be saved as UTF-8(?!?)).
2. As above, saving .provxml.xml both as UTF-8 and then Unicode, but using the MakeCab.exe from the WM5 SDK.
3. Then tried adding the XML to one of my registry settings cabs using WinCE Cab Mgr (v2.0); put it in the Provisioning XML (post). The CAB ran as usual, injected the registry keys that were there before but did nada to the WiFi settings.
4. Then renamed the .provxml.xml to wifi_setup.xml and tried both Makecabs (again, tried saving the XML as UTF-8 and then as Unicode) as follows:
Makecab.exe /D COMPRESS=OFF wifi_setup.xml wifi.cab
... in the hope that this would inject the XML as _setup.xml...
Note: I transferred the file in all above cases over ActiveSync to my Storage Card, which is where it was run from.
5. Finally, I redid the file as per cuccureddu's instructions (saved as Unicode), Makecabbed it using WM5 SDK Makecab exactly per instructions, then ZIPPED the CAB and Activesynced it to my Storage Card. Ran it. "Installation of wifi.cab was unsuccessful".
Hmmm...
So, I'm a little stuck... does anybody have any ideas, or want further info?
TIA for any help you can give...
Joel