mxipupdate_oemdisable2577_100.provxml - Windows Mobile

<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="2" value="1" />
</characteristic>
</wap-provisioningdoc>
What are these settings needed for?

Have a look here ...
http://forum.xda-developers.com/showpost.php?p=3880063&postcount=11
... should get you started.
HTH,

So it is an AutoRun Policy.
"The AutoRun security policy setting determines whether applications stored on a MultiMedia Card (MMC) are allowed to auto-run when inserted into the device."
It is set to 1 which means:
0 Applications on a Compact Flash card are allowed to auto-run. ( default )
1 Applications on a Compact Flash card are restricted from auto-running. <--
So i am thinking about deleted this provxml...

Yup, just delete it. Don't let the Man hold you down.

Related

Restoring Wi-Fi settings after hard reset: WM6 Wizard

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 guess the ideal solution would be like you often see in operator's Extended ROMs - WifiTempON is run, then a CAB file runs to set up e.g T-Mobile hotspot SSIDs, then WifiTempOFF is run...
Hope somebody can help, I'm starting to go round the bend here
Bump...! Any ideas anyone?
this been done yet??
I succesfully use this script in a cab file after every hard reset on my TyTn,
it sets also wan parameters and hidden ssid chekbox. The cab was created
with makecab standard command.
Hope it works for you also.
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID"> (do not change this value and delete this comment)
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="YourSSID to insert">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="yourPWD to insert"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKLM\Comm\TIACXWLN1\Parms\TCPIP">
<parm name="EnableDHCP" value="0" datatype="integer"/>
<parm name="AutoCfg" value="1" datatype="integer"/>
<parm name="WINS" value="" datatype="multiplestring"/>
<parm name="DNS" value="Your one" datatype="multiplestring"/>
<parm name="DefaultGateway" value="Your one" datatype="multiplestring"/>
<parm name="Subnetmask" value="Your one" datatype="multiplestring"/>
<parm name="IpAddress" value="Your one" datatype="multiplestring"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Best regards J.
Wow - can we use cabs to switch between wifi settings?
Awesome idea. I am trying to adapt it for use in this situation.
http://forum.xda-developers.com/showthread.php?p=1671601#post1671601
Multiple WIFI networks, setup multiple CAB files that you can just run depending upon your WIFI location and it will adjust your network card settings (eg DHCP \ Fixed IP), but also your SSID and WEP keys etc.
I have created my XML file and CAB files but it doesnt seem to function correctly. In fact, it appears not to have made any change at all to the network card settings yet it appers to have executed without errors.
did not tryed this way, but a soft-reset should be needed after every
change of your net settings. Ok, I'm shure you tried it yet..
I use it after an hard reset and at the end the phone reboots naturally.
Everyway you can use a reg editor wich allows you to dump your
ppc registry and look for changes in it, that's the way I've found some
of that reg-keys.
It's also usefull to discover if a key is really changed or not..
bye J.
Yup - thanks, I use registry workshop from my PC and hit F5 (refresh) after i run the cab file, watch it change instantly on the mobile registry. The network settings, eg IP etc and even now the WIFI network now function perfectly.
I am trying to get the "restart" working after a cab install, the network settings work fine, but if you switch it to DHCP (from fixed) it needs a reboot of the WLAN NIC Card obviously to activate DHCP address.
You can either soft-restart the phone, or just use comms manager to deactive-reactivate the WIFI. I am trying to find a (via cab file provisioning) cleaner way to restart the WIFI service.
Must say, thanks heaps for your code and links, helped me heaps in the early days.
Mhhmmm I see you're using a Shap's rom... you could try to invoke
shap's advanced config with his parameter to reset the device
eg. I use a shortcut to it with this line inside:
\Extended_ROM\AdvancedConfig.exe /reset
I didn't tested if it could be invoked from a cab file
Bye J.
edit: sorry I've missread your topic... but if a soft reset is not a big problem..
jarod_73 said:
Mhhmmm I see you're using a Shap's rom... you could try to invoke
shap's advanced config with his parameter to reset the device
eg. I use a shortcut to it with this line inside:
\Extended_ROM\AdvancedConfig.exe /reset
I didn't tested if it could be invoked from a cab file
Bye J.
edit: sorry I've missread your topic... but if a soft reset is not a big problem..
Click to expand...
Click to collapse
Top tip .. thanks!

undo HTC+Touch+Dual-default-ABC.cab

Hi all,
I have a touch dual I've launched the HTC+Touch+Dual-default-ABC.cab file to set the "abc" as default instead of the "XT9" but I was wondering how I can go back to the normal (XT9-default) situation?
Cheers
B
Have you tried to uninstall the cab through Settings -> System -> Remove Programm?
tried it... but the cab isn't mentionned in the list strangly enough...
nobody? is there a way that I can "read" the cab so I know which registry settings have been altered?
cheers
B
I think I've got it, I've installed MSCEInf (freeware) and looked around a bit in the CAB until I noticed an XML with following content:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\Tegic\eT9\IME" translation="filesystem" >
<parm name="CarrierDefaultTextMode" datatype="integer" value="0" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I've altered the value to 1 and XT9 was back to default
Cheers
B
berre said:
I think I've got it, I've installed MSCEInf (freeware) and looked around a bit in the CAB until I noticed an XML with following content:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\Tegic\eT9\IME" translation="filesystem" >
<parm name="CarrierDefaultTextMode" datatype="integer" value="0" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I've altered the value to 1 and XT9 was back to default
Cheers
B
Click to expand...
Click to collapse
Is there no easier solution to do this? Like another CAB file for example
would be great indeed but I didn't find it anywhere so I started playing around in the registry until I found it...
cheers
B
easier??!! you too lazy reg edit 1 value??!! blimey o'riley! i think you'd rather order takeout than open a tin of beens!

Install Builder 0.7

I recently read about the QuickCab software that allow creation of PPC cabinet, and the request for shortcut creation, as well as Vista compatibility problem. I would like to present another software that do the same work.
Install Builder is a free standalone application that allow novice user to create setup cabinet for Pocket PC and Smart Phone. Install Builder use a simple ini file to store project settings, you can use simple editor like notepad to edit the ini file.
The setup cabinet contain binary encoded and xml installation file plus all application files. It support two installation mode (ActiveSync --> PPC, PPC --> PPC). The setup cabinet can copy files, make shortcuts and add registry keys.​Requires the .Net Framework 2.0 too!
Warning : You can only place file in the following directories and it's subdirectories at this time : (that means, no absolute path supported)
{app}, {pf}, {win}, {startup}, {mydocu}, {group}, {fonts}, {startmenu}
This software is freeware and opensource.
http://www.quickzip.org/softwares-installbuilder
Gee that is serendipitous. I just posted a request for something like this at just about the same time you posted. Thanks a lot. Will give it a try. Sounds like just what I am after.
Iycj
I have been trying to use your tool. I can get it to make the CAB alright which is a big step in the right direction for me. Problem is when place the CAB on my HTC Diamond and install it comes up with a "cannot be installed - try different location" error. As I am a newb with this could you please take a look at the below Inno code to see what I have done wrong. BTW I am using DefaultDirName={pf}\debug to test it and I would also like to ask what the correct syntax is to replace {pf} with the root folder on my Diamond device.
Thnx and Regs
Logger
Code:
[Setup]
AppName=3DiamondShortcuts
Author=Logger
TargetPlatform=StrongArm
DefaultDirName={pf}\debug
Description=loggers mods for the Diamond
[Files]
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\three.png"; DestDir: "\Application Data\Manila"; Flags: "NoOverwrite"
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\Manila\InternetPortal.xml"; DestDir: "\Windows"; Flags: "NoOverwrite"
[Icons]
[Registry]
Greetings
Root folder must be specified so,
DestDir: "\Windows" ===> DestDir: "{win}"
As for \Application Data\ directory, because this entry wasnt here when I first develop the product (in 2006), I need the code for that folder. the current list of folders is as below : (http://www.cabextract.org.uk/wince_cab_format/#files have more info)
Code:
app = 0, // %InstallDir%
pf = 1, // \Program Files
win = 2, // \Windows
startup = 4, // \Windows\StartUp
mydocu = 5, // \My Documents
group = 11, // \Windows\StartMenu\Programs
fonts = 15, // \Windows\Fonts
startmenu = 17 // \Windows\StartMenu
And you can use the code directly, e.g. {app} is equal to {0}.
I have examined the code created by QuickCab, please try the following and see if it works.
Code:
[Setup]
AppName=3DiamondShortcuts
Author=Logger
TargetPlatform=StrongArm
DefaultDirName=\
Description=loggers mods for the Diamond
[Files]
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\three.png"; DestDir: "{app}\Application Data\Manila"; Flags: "NoOverwrite"
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\Manila\InternetPortal.xml"; DestDir: "{win}"; Flags: "NoOverwrite"
[Icons]
[Registry]
Regards
Joseph Leung
Joseph, Sorry for the slow reply. Had to work last night.
Tried your code. If I use "DefaultDirName=\" as per your suggestion, I get "Dirs.Offset dont match Writer's position!" and install builder does not create the cab.
So I changed ONLY "DefaultDirName={app}\" in your suggested inno and the build succeeds.
However installing the CAB on my diamond still fails with an unsuccessful message.
i do not know if the following gives any clues?
debug.txt =
Code:
----- Debugging -----
----- Dir Section -----
InstallDir = %CE0%
2 = {app}\Application Data\Manila
3 = {win}
----- File Section -----
three.png --> {app}\Application Data\Manila (NoOverwrite)
InternetPortal.xml --> {win} (NoOverwrite)
--- Registry Section ---
----- Link Section -----
----- End Debug -----
_setup.xml looks like this
Code:
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="Install" />
<parm name="OSVersionMin" value="0.0" />
<parm name="OSVersionMax" value="0.0" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="0" />
<parm name="AppName" value="Logger 3DiamondShortcuts" />
<parm name="InstallDir" value="%CE0%" translation="install" />
<parm name="NumDirs" value="2" />
<parm name="NumFiles" value="2" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="0" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%InstallDir%\Application Data\Manila" translation="install">
<characteristic type="MakeDir" />
<characteristic type="three.png" translation="install">
<characteristic type="Extract">
<parm name="Source" value="0three~1.001" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="InternetPortal.xml" translation="install">
<characteristic type="Extract">
<parm name="Source" value="Intern~1.002" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry" />
</wap-provisioningdoc>
Thanks for your patience here.
Logger
Greetings
I checked the code, it cannot handle absolute path at this time, I do not have a fix right now, I will fix the problem once I have the time, until then, please use relative path only.
Regards
Joseph Leung
OK thanks. Still confused. Could you PLS give me a very simple example of relative path syntax that will actually work.
Does this mean:
DefaultDirName=\{app}
DestDir: "\{app}\Application Data\Manila"
DefaultDirName={app}
DestDir: "{app}\Application Data\Manila"
or something else? Either of these will create a cab for me but neither will install. Perhaps I had best wait until you get around to fixing it so it can do absolute cos I am confused by the syntax.
Thnx.
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
Good deal, thanks. I'll give it a try.
What language is this written in?
lycj said:
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
Click to expand...
Click to collapse
Thanks, that works on my Diamond. Although it places the files in
\Program Files\Manila\Application Data\.
Just tried
DefaultDirName={win}
DestDir: "{app}\Manila"
and that places the files in \Windows\Manila
So thanks, I can get your program to work. But it is not a lot of use to me until I can specify the root directory as DefaultDirNam. Otherwise it is not possible to install files to more than 1 upper level directory.
This is because DestDir has to be relative to DefaultDirNam. As it is I cannot tell it to install files in two upper level folders because you have to specify a single location in DefaultDirNam and it will not allow you to specify the root.
For example I want files to go into both
\Application Data\ Manila
\Windows
so I would need to specify something that would give
DefaultDirName={root}
DestDir: "{app}\Application Data\ Manila"
DestDir: "{app}\Windows"
If I was to specify {win} as DefaultDirNam I can send some files there, but in doing so I preclude the possibility of sending files to \Application Data\ Manila because \Application Data is not a child folder of \Windows.
Also as an aside I have found I can successfully send files to {pf},{win} but not {app}. If I set {app} in DefaultDirNam install fails for some reason.
Anyway thanks for the app. Just need to be able to speficy the root in DefaultDirNam and all would be good.
Cheers.
I found a bug
Hi!
This is really a usrful app to me. thx.
Today I have tried to create a cab and to install it, but the installation failled.
I was looking for the reason the whole day and finally I found it.
I have a german special character in my name: ü
after changing the value of the Author tag, it worked fine.
regards,
misch

Xml Provisioning PPTP VPN

Hey,
I'm trying to create a VPN (PPTPP) connection using Xml. How ever whenever i run the CPF file i get a message saying "Change of Device Setting Unsuccessful"
here is my xml
Code:
<wap-provisioningdoc>
<characteristic type="CM_VPNEntries">
<characteristic type="MyVPN">
<parm name="SrcId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="DestId" value="{A1182988-0D73-439E-87AD-2A5B369F808B}"/>
<parm name="Phone" value="vpn.server.co.uk"/>
<parm name="UserName" value="username"/>
<parm name="Password" value="password"/>
<parm name="Domain" value="mydomain"/>
<parm name="Type" value="0"/>
<parm name="Enabled" value="1" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Command to create CPF
Code:
C:\Program Files\Windows Mobile 6 SDK\Tools>makecab /D COMPRESS=on _setup.xml myOutCpf.cpf
List of Networks and GUID's
Code:
Name: The Internet GUID: 436ef144-b4fb-4863-a041-8f905a62c572
Name: The WAP Network GUID: 7022e968-5a97-4051-bc1c-c578e2fba5d9
Name: Secure WAP Network GUID: f28d1f74-72be-4394-a4a7-4e296219390c
Name: Work GUID: a1182988-0d73-439e-87ad-2a5b369f808b
Name: My ISP GUID: adb0b001-10b5-3f39-27c6-9742e785fcd4
Name: My Work Network GUID: 18ad9fbd-f716-acb6-fd8a-1965db95b814
I am running Windows Mobile 6.1 on a XDA Ignito (HTC Touch Dimond)
If anyone has any clue as to what I'm doing wrong and how to fix it would be greatly appreciated.
Thanks
John
Has any one tried this or had any problems like this?

Troubles with CM_Planner / PreferredConnections (wapprov)

Hello, i cannot figure out why this isn't working :
I've created a wap-prov XML (and it is working... mostly !) to configure connections, it looks like this :
Code:
<wap-provisioningdoc>
<characteristic type="CM_Networks">
<characteristic type="MyCorporateCnx">
<parm name="DestId" value="{D4C3F5C3-D005-B600-FE80-492A450DA5C9}"/>
<parm name="Secure" value="0"/>
<parm name="ReadOnly" value="0"/>
</characteristic>
</characteristic>
<characteristic type="CM_GPRSEntries">
<characteristic type="CnxCorp">
(Skipping all the GPRS parm part, which is working so far!)
</characteristic>
</characteristic>
<characteristic type="CM_ProxyEntries">
<characteristic type="HTTP-{D4C3F5C3-D005-B600-FE80-492A450DA5C9}">
(Skipping all the Proxy parm part, which is working so far!)
</characteristic>
</characteristic>
<characteristic type="CM_Planner">
<parm name="RetryCount" value="3"/>
<parm name="CacheTime" value="600"/>
<parm name="CoeffLatency" value="65536"/>
<parm name="CoeffCost" value="65536"/>
<parm name="CoeffBandwidth" value="65536"/>
<parm name="VPNCacheTime" value="60"/>
<nocharacteristic type="PreferredConnections"/>
<characteristic type="PreferredConnections">
<parm name="{436EF144-B4FB-4863-A041-8F905A62C572}" value="MyCorporateCnx"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
- I tested the XML with RapiConfig.exe, then i've created a .CAB with it.
- In both cases, the connections are properly configured (it's the working part)
- BUT the default Internet connection is still set to its previous value (should be "MyCorporateCnx" instead)
I also tried to replace the name of the cnx with its ID :
Code:
<nocharacteristic type="PreferredConnections"/>
<characteristic type="PreferredConnections">
<parm name="{436EF144-B4FB-4863-A041-8F905A62C572}" value="{D4C3F5C3-D005-B600-FE80-492A450DA5C9}"/>
</characteristic>
</characteristic>
And it dosesn't work either.
Any ideas would be welcome !
(Tested it on my non-modded HTC Touch Pro 2)
Answering to my own question
My XML adds ONE new connection (including GPRS & PROXY related config) to the existing device config.
That means that, unless i deactivate the former default connection, it will remains as default, even with the CM_Planner stuff in my XML.
After a few tests, i've found out a way to deactivate the former default connection : change its proxy "Enable" state from 1 to 0.
So i've added this to my XML :
Code:
<characteristic type="CM_ProxyEntries">
<characteristic type="HTTP-{FF445A54-ADF8-4fab-86B7-E31482BEE8BE}">
<parm name="Enable" value="0"/>
</characteristic>
</characteristic>
(HTTP-{FF445A54-ADF8-4fab-86B7-E31482BEE8BE} is the former default connection proxy)
Now that my XML sets it to 0, i have the good (newly added) connection as default.
I'm a bit disapointed because i wanted to use only one XML for several HTC devices (Pro 2, Touch 2...) Adding a new connection sounded like OK, but modifying an existing one will raise a compatibility issue (i guess), since nothing can garantee that HTTP-{FF445A54-ADF8-4fab-86B7-E31482BEE8BE} will exists on the other devices...
Hello,
I noticed that when you provision the preferred connection, it is not shown in the settings->connection>advanced->select networks screen until you:
1- open that screen, not change a single thing (so the wrong default connection is selected)
2- click on 'ok'
3- reopen the screen, now the correct default connection is showed.
I am going to look further into this...
Regards,
Ernstjan

Categories

Resources