I won't disable everything without screen calibration.
I made ext package whit this reg key:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Welcome]
"Disable"=dword:000000FD
No effect
I found in OEMDrivers in .rgu file this same key and changed his value to "Disable"=dword:000000FD
No effect.
In reg I still have value "Disable"=dword:00000128
I still have time and password setting on first boot
Plemnik said:
I won't disable everything without screen calibration.
I made ext package whit this reg key:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Welcome]
"Disable"=dword:000000FD
No effect
I found in OEMDrivers in .rgu file this same key and changed his value to "Disable"=dword:000000FD
No effect.
In reg I still have value "Disable"=dword:00000128
I still have time and password setting on first boot
Click to expand...
Click to collapse
Something else is overwriting that key... look in your .provxml files.
Finally I found, thnks.
I just deleted in Sources\Devices\HTC Kaiser\EXT Packages\HTC Kaiser Packages\Operator PKG\files\mxipupdate_oemoperators_105.provxml this
Code:
<!-- Welcome Settings -->
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Welcome">
<parm name="Disable" datatype="integer" value="128"/>
</characteristic>
</characteristic>
and I left EXT Package with
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Welcome]
"Disable"=dword:000000FD
Related
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!
Hi,
Anyone can suggest a good tool to create a CAB file that can create (update) registry entry?
I need to change some registry entries automatically by executing a CAB file. Is that possible?
Thanks.
http://www.ocpsoftware.com/products.php?nm=cecabmgr
Thanks for the info, however it is confusing.
According to the WIKI :
http://wiki.xda-developers.com/index.php?pagename=BA_PersonalCAB
WinCECabManager is a "FREE" tool
While from its webpage:
http://www.ocpsoftware.com/products.php
It is $99 USD commercial product.
Anyone can explain?
DANDANA said:
http://www.ocpsoftware.com/products.php?nm=cecabmgr
Click to expand...
Click to collapse
here is a free cab creator
http://www.freewareppc.com/utilities/pocketpcinstallationcreator.shtml
but it's overkill for just reg entries
try this:
http://forum.xda-developers.com/showthread.php?t=277727&page=4&highlight=makecab
your _setup.xml should have a structure like this:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\UI" translation="filesystem">
<parm name="DownloadHomeNetworkOnly" datatype="integer" value="0"></parm>
</characteristic>
</characteristic>
</wap-provisioningdoc>
save as UNICODE
use MAKECAB.exe ...attached
at DOS command prompt type:
makecab.exe _setup.xml cabname.cab
good luck
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!
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
Hi Everybody
I used the search function but maybe I am blind. What is the right way to dl the original rom from my x1? Do I need anything special to do that? (I lost about 3 years of htc knowledge while not using it at all).
Thank you in advance
H
solution
was a bit messy as I had to get half of the solution from another thread
kokotas
08-07-2008, 11:11 AM
Well, I don't think that the 2nd link is really helpful.
Try reading here: http://forum.xda-developers.com/showthread.php?t=382609
I guess that you could dump the ROM using itsme's tools (http://www.xs4all.nl/~itsme/projects/xda/tools.html) as pof shows in the above link and then someone could reconstruct(kaiser-way (http://forum.xda-developers.com/showthread.php?p=1586817#post1586817)) the .raws in a .nbh!
ps:if you have problem "updating itsutils.dll,etc" try typing in a cmd:
cd "where itsutils are extracted"
prapi -s HKLM\Security\Policies\Policies "00001001" integer 1
prapi -s HKLM\Security\Policies\Policies "0000101a" integer 1
before you run pdocread!
Regards!
My 5 cents: Just as a tip from my side. I copied and pasted the result of the pdocread.exe -l to my notepad, changed the settings there double checked (made about 100000 spelling mistakes had to do it 5 times but it worked fine). It takes a loooong time....but works.
The part about the prapi was verry important for me without that it didnt work!
while doing this for every part i dled, there came up on the x1 a huge text about some settings, honestly I didnt understood half of it, so i tapped NO and it worked
Cheers
H
hi prob this one and got the followring errors:
Code:
c:\htc\utils>pdocread.exe -l
Copying c:\htc\utils\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
or maybe your device is application-locked.
c:\htc\utils>prapi -s HKLM\Security\Policies\Policies "00001001" integer 1
ERROR: CeProcessConfig - r=00169390 ce=00000019 le=00000000 hr=80070005
- Zugriff verweigert (Access Denied)
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies" translation="filesystem">
<parm-error name="00001001" datatype="integer" value="1" desc="Access Denied"/></characteristic>
</characteristic>
</wap-provisioningdoc>
c:\htc\utils>prapi -s HKLM\Security\Policies\Policies "0000101a" integer 1
ERROR: CeProcessConfig - r=00169390 ce=00000019 le=00000000 hr=80070005
- Zugriff verweigert (Access Denied)
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies" translation="filesystem">
<parm-error name="0000101a" datatype="integer" value="1" desc="Access Denied"/></characteristic>
</characteristic>
</wap-provisioningdoc>
Solution: install the enablerapi.zip on the phone. extract it, copy it to the phone and install it. after this everything works.