Related
Hiya, I've been playing about with the extended rom and have the system in great shape, apart from some registry settings, such as the owner info and device name. It would be kinda handy to have these setup automatically but I am totally unable to do it... I'm presuming it's because there is something else that has to be done other than simply set the keys.
I'm using PHM reg ed to export keys as well as simply creating them manually and am using WinCE Cab Manager to make the cabs. I'm on the original O2 Exec rom (well, most of it )
When I run the cab (automatically from a hard reset or manually), I can see the values in the registry but they never appear on the today screen. I've tried a variety of power cycling, soft resetting etc but the today screen is never updated - it always says "Tap here to set owner info". If I do that, the registry keys are cleared out...
If anyone can shed some light on this I'd be grateful - for a small problem it's taking up a lot of time! :?
Cheers!
I've not gone down the .CAB route, but just import these and other settings from a .reg file and have never had this problem.
When I have to install from scratch, the first install is Resco's Explorer (which contains a Registry Editor), then execute the .reg file.
Almost sounds as if the registry changes are not being saved. Is it only these particular settings or are other changes not registered?
Well, I have created loads of CAB files in WinCE CAB Manager to set up my phone, tomtom, etc.
I Used the same method as you. The only difference being that I reset (automatically) after I install them. Could this be it?
Ahh, which WinCE CAB Manager version you running? You need the new beta 1.2 version to be able to create WM5 compatible CAB Files. Can this have something to do with it?
moghisi101 said:
... The only difference being that I reset (automatically) after I install them. Could this be it?
Click to expand...
Click to collapse
Probably the cause. I know I've read and experienced that I must allow the device to flush after changes before I reset it. I usually turn it off, then wait a minute or two before I soft-reset.
Ahh, which WinCE CAB Manager version you running? You need the new beta 1.2 version to be able to create WM5 compatible CAB Files. Can this have something to do with it?
Click to expand...
Click to collapse
As yet I'm not using CABs/Cab-Manager. Couldn't find one when I looked - except at ridiculous money, which I wasn't prepared to waste - so I'm just using the .reg-files manually
Guys, many thanks for the replies!
I'm using my 15 free goes (and hibernating ) on version 1.1 of WCM at the mo, it's too expensive to buy as I would only use it for this as far as I can see - I'll head off and look for the beta next.
I have tried power cycling, pausing while off and resetting as well as soft-resetting from software, but not doing it automatically 'cos I don't know how!
@moghisi101: Out of curiousity, how are you automatically performing a soft-reset and thanks for the heads-up about beta 1.2!
I have written an Autorun.exe file, much like the one in the extended rom. It does not however read a config.txt file. It runs the CAB files (with my apps and settings in) and then resets.
I don't remember where I put the code, so I can't compile one for you. It only needs a slight change from the Autorun sample Microsoft Supply.
At the moment I can set up pretty much everything on the phone. Button Lock, GPRS Settings (including GPRS Auto Attach, etc), Owner Info, Default Volume, Today Screen Plugins (order and enabled/disabled), Date/Time, Screen Config, Infrared off by default.....the list goes on. When I Hard Reboot, It skips the welcome screen (all the time settings etc) and I've got it to ask me which Operator Settings to Install (eg Vodafone, o2, Orange, Tmobile Splash Screens and GPRS connections).
It's much better than the default Qtek, i-mate, and (definately) o2 ROMs...
Just a thought!
Are you annotating your .reg files with semi-colon at the start of a line?
With the PC, I've always annotated my .reg import-files, so that I could remember why I'd done something later on, but found that *no* lines after those annotation would be imported on the Exec (Universal). Don't know if this is specifically a WM5 issue or not. If you put the annotations at the end of the .reg file, all the preceeding key/value content lines *are* imported.
@astage: Interesting about the annotations, that must have caused some pain before you figured it out! I don't have annotations in my reg files as I'm not really using reg files I'm building keys in WinCE Cab Manager by both importing reg exports and typing them in manually.
Unfortunately, the beta version is only available to registered users, so I'll have to abandon that one for now.
@moghisi101: It sounds like you're sorted! That's basically what I had in mind myself, except that I was thinking smaller
Thanks for the thought about compiling an exe, I was thinking I may have to ask a mate to make something like that so if you do find the code and feel like posting one, I'm sure the community would thank you!
I've been looking for something that would just install cabs etc then reboot but not found one yet on the web... I'm a UI designer and so am wary about going down the visual studio path for fear I may start to favour all-grey interfaces :twisted: .
Which autorun sample are you referring to though? I guess I may have to get my hands dirty after all!
No, I don't annotate them, so I haven't come accross this. But, if you save some Keys using a Reg Editor and then use Import in WinCE Cab Manager...ahhh, I think i may know the problem!
1. Don't put Comments in Reg Files
2. Don't use import in WinCE CAB Manager! If the reg key has data above a certain length it will split it to next line using a ";", but WinCE Cab Manager assumes this is the end of the data. So, your Owner Info could be being entered in incorrectly as a result. You have to copy-paste the reg key into a new dword, etc into WinCE Cab Manager. i.e. DONT IMPORT
I hope that vaguely made sense
Yup! Clear as a bell, thanks! I'll try that in a mo, just rebooting. Import is *sooo* tempting though, so simple... Curse my weakness for the easy path!
Hi. Here is Microsoft's Autorun Code (I have that)
You have to make slight changes to allow for reboot at end. It's fully annotated if you dont understand what it means. BTW, you dont need Visual Studio. Infact it's probably the worst root. Use Microsoft's eMbedded Visual C++ 4.0 to compile this for Windows CE, Mobile 2003SE, (or Mobile 5?). It's Microsoft but it's FREE!?
Sweet! Two terms you don't hear very often in the same context are Microsoft and free! Nice one, thanks! I'm downloading Microsoft's eMbedded Visual C++ 4.0 as I type.
You actually solved the problem already though, in a way, pointing out that WCM truncates "strings". I opened an exported key in Textpad and tidied it up (removing the end of line "\" and the "\n\t") then saved it and imported the file into WinCE Cab Manager, made my cab, installed it and soft rebooted from SPB PocketPlus without going back to the Today screen. It worked!
I'm a big fan of Textpad and will use that to make a macro to tidy up exported reg keys so I can import them easily (another triumph for the easy path!).
You, Sir, are a DUDE!
Edit: 16.4 kbps from MS... :roll: For anyone else who decides to go down this path, the killer bit is to make sure your key values don't get truncated! Open the .reg in a text editor and make sure any really long values, like binaries, are all on one nice long line! It doesn't seem to make any difference if you soft-reset from an app or use the stylus btw.
Shame the baby kept us up all last night! I've *got* to get some sleep or I'll end up doing god knows what to my device by accident!
Thanks for the help moghisi101!
Hehe, Gee Thanks. And btw, Textpad r0x!
If you want to do that autorun thing.....familiarize yourself with the whole 2577 method (search it and you'll understand). If you don't want crappy o2 Customisations, etc on your device then you are better off just editing the extended rom, edit the config.txt, add your configuration CABs, and then every time you hard reset all your customisations will appear! NO programming involved. If you then add "welcome.not" file to SD Card, the Welcome screen at hard reset wont appear (if you code this in your autorun file it will work on ALL devices, not just a few including HTC). BUT only do this if your CAB files contain stylus screen settings, and time settings. However, as this is not viable in all situations the 2577 method can be much better. Especially when selling a piece of software, etc (automatic installation and configuration), as I do.
I might email you, later on, a video of what happens when I hard reset my device to give you an idea of what you can do (at the least) and hopefully you can go on to improve on that.
Thought I will give you a kick start. Here are some Regedits I could make for you. Took me a short while, but there are loads more for inbuilt apps (e.g Messagig, etc) but I coudn't remember where the reg values where.
Please note, I couldn't find any of the WM5 ones...completely forgotten them. But these should give you and idea as to where they are. Also, look here in the Wiki
http://wiki.xda-developers.com/index.php?pagename=BA_Hacks_WM5
http://wiki.xda-developers.com/index.php?pagename=BA_Hacks
Some of the ones I have given are from here, but many more I found myself
Hope it helps you (become a millionaire - don't forget me )
You can see the solution here: http://forum.xda-developers.com/viewtopic.php?t=34525
Thanks to Bayondthetech for the CAB file.
Hehe. I feel like a n00b now (which I am really). I hadn't seen that. But I think mine does a couple of extra things that he didn't post....?
Bye
Wow! Holy Cr*p! Thanks for all those reg files! :bows:
I'd looked at BTT's post before and was hoping to use his cabs as a guide. Unfortunately, they aren't currently available (from what I've read, he generated so much traffic with his downloads that his host yanked his connection and he's in the process of moving sites).
Thanks to moghisi101 and a few other posters on this forum, I don't need them any more!
@moghisi101: I had already edited my extendedRom's config file to load and run cabs I store on the SD card (to keep the extRom below 10mb) and realised last night that that already does the auto reset for me, so life gets another bit easier These reg files rock though! Shame you're not running tomom5 yourself, I'll have to sort those out myself!
The next thing to try is to export the BT settings for my paired devices - I'm hoping it will be possible to restore those automatically too.
Attached is the TextPad macro (although it is too simple to call it that really!) that I'm using to tidy up the reg keys for import into WinCE Cab Manager, hope it helps someone!
Post that video!
Hey
Actually, I have TomTom 5....up until 5.10 I edited TomTom's Cab itself but I just haven't had a chance with 5.21 (need to use CabWiz now, not WinCE Cab Manager - no full WM5 support lol).
The TomTom 3 Today settings is same for TomTom 5 if you want to change order/hide/unhide. Most of the other settings are in a .cfg file on SD card for Home Address, etc. Only a couple other settings use Registry...
Anyway....glad to be of some service
moghisi101 said:
... (need to use CabWiz now, not WinCE Cab Manager - no full WM5 support lol). ...
Click to expand...
Click to collapse
Had a brief conversation this afternoon with a friend who uses Microsoft's CabWiz to produce .cab files for bespoke software.
He mentioned that (with CabWiz) if you use the .cab to apply registry entries, then the .cab must also install something, a text file or similar. I can't recall if he said it would otherwise not create the .cab correctly, or that the reg entries may not be applied correctly.
Not yet tried it myself - will have to wait until after the bloody Tax Return is finished!
Strange, It works fine for me? Was his the newer CabWiz that you can use with WM5, like mine?
Hi everyone,
I have an XDA Exec and my current project is to customise my extended rom to install resco, magic button, some ringtones into the windows folder, batti and not have O2 Active (just dingo's connections cab). I have sorted the above, but now I would like to export my whole registry with just these applications installed, along with all my settings 9owner information, MSN, camera settings etc...) If I export the whole registry through Resco, can I then convert that into a CAB using WinCE CAB Manager or soething similar? Is it a good idea? How do I imprt a registry file successfully into WinCE, as I have tried it in the past with previous devices and never got anywhere. I would be extremely grateful for any help, even if its just someone telling me not to bother wasting my time if it won't work!
Cheers,
Fin
WinCE CAB Manager will allow you to make a cab from a reg. However, there are limitations I think, and whether it's wise to do the whole reg is another question. Some of it is volatile. If you pick and choose relevant user settings, you should be safe.
V
vijay555 said:
WinCE CAB Manager will allow you to make a cab from a reg. However, there are limitations I think, and whether it's wise to do the whole reg is another question. Some of it is volatile. If you pick and choose relevant user settings, you should be safe.
V
Click to expand...
Click to collapse
D'oh! I just found out the hard way that importing your whole registry doesn't work for quite a few reasons! Thanks for your reply, I still can't work out CAB manager though. Is there anything particular you have to remember when importing a REG file into a CAB?
There's some issue I read somewhere that it breaks some lines or something in the imported reg. Not sure how or why...
I'd suggest just get the relevant sections, control panel, software, gwes etc... you'll have to glance through your whole reg, try it in individual sections, then compile the lot into one functional bunch.
V
i have been using WinCE cab manager a lot and i have found that importing small sections of 'code' is more reliable than huge chunks, and i have used this methood succesfully to create customised cab file settings (see my theme+ringtone+dialler post) where i extracted parts of the registry and posted into WinCE cab.
thanks
Just curious..What is everyone's programming language of choice when developing apps for WinMo?
Ive been working (lightly) on a VB program, which is ok, but i feel it isnt as efficient as others might be, and i know efficiency and size is a big issue on mobile devices (obviously)
Depends:
A simple program or one that can be done just using the stuff in the standard system DLLs then I will go for the pain of coding it in WIN32 C++. The resulting application runs like the wind, and can be distributed as a single executable file, no CAB, no installation projects, etc etc.
If I need any web or fancy data functionality, then it is .NET, because it is not worth the hassle of getting all this to work from levels lower down.
Having had lots of previous coding experience in C/C++ then C# is the natural choice, but as far as .NET is concerned, the actual language you code in is irrelevant. It compiles down to IL anyway and the CPU 'JIT' compiles this into its own code before it runs. Hence the performance hit when the program starts and runs.
In .NET, in essence, all you are doing anyway, is creating .NET objects, setting their properties and calling their methods, in order to get them to do what your application requires. A simplistic view, I know, but that's is all there is to it!
The language that you use to do this doesn't really matter, it is just personal preference.
I guess i assumed one language had more efficantcy than another. Like im working with VB atm, and i know it simplifies alot of things to make it easier to use, not sure if it includes all that extra code in the final build or not tho.
I would like to get more pratice with C++ and i have yet to use C# so dono whats different about that.
I would like to eventually start making programs that utilize the .net code and get my programs talking though data on the phone, but im not that advanced yet.
currently im still trying to wrap my head about making a program with a local database. The program im working on currently doesn't store any data, but i would like to to. I would also like (if i get ambitious) to have that program possibly talk to a PC (parent) program and sync with it. But that i think is a ways off.
Also, do the Mobile SDK's look different? The program im working on i started in the 5 SDK, but (obviously) doesnt have Finger friendly IU tools. I haven't looked at the 6/6.5 SDK yet (as id have to start over again i think). Does it have more finger friendly options?
In .NET CF, the finger-friendlinnes and kinetic scrolling and this all isn't available for all controls. Most of them (the classic ones) are, but if you try using scrolling for whole form, it won't work, only scrollbar will. (Probably with some playing with physicsengine and marshalling you might be able to get it working here, too).
In C++, there are numerous examples of this gestures etc directly in SDK, also many other stuff is there.
See, the main difference here is that .NET is fully equipped with stuff to get everything done fast, easy way.
In C++, you must first make this way yourself .
i am using the .net 3.5 framework tho.. Unless you mean C++ vs C#. I thought .net was an expansion on a current language, and not a language on it self (meaning i cant choose to program in .net, its an option to VB, C++ or C#)
I did toy with it, and it appears as tho your right, the forums are the same. IE drop down/combo boxes are not finger friendly. Guess id have to turn it to a button and another form with large radio button options.
C# vs C++ main difference is that C++ is compiled to native code right on first time, which makes it very fast. C# is compiled to MSIL, which is NOT native code yet. When you run c# app, the code is being Just-In-Time (JIT) compiled to native code, which makes it "longer" to load and "slower" to run (usually that makes about 20% of speeddown on classic PCs with very optimalized C++ same code - it probably already is lower, this is a bit older result of testing).
C# has those nice features that it can't get out of its memory etc, the JIT is almost unhackable, so you can't write viruses in it etc.
As far as the SDKs are concerned, there are slight differences from one version to the next but they can be quite difficult to spot.
They can become issues, when code written to run on one platform is run on one several generations away. I have a program that was written in C++ WM2003. Works under all versions of WM until 6.5.3, when the About Dialog box fails to close if the (X) button is pressed. Turns out another value has to be added to the dialogbox flags field to get it to behave properly.
This has been a feature of SDK's from WM 5.0 onwards, but the WM2003 SDK is unaware of it. You have to add it manually to the shell code created by the SDK,
Progress I suppose. The full article is here:
http://forum.xda-developers.com/showthread.php?t=635063
Treo 700xw Verizon Spanish language
Hello fellow .... I'm new to this forum
I have a Treo 700wx and I live in Mexico ...
My Treo is Verizon's company and is currently with the version 1.22 ...
My problem is that it is in English and I need to change the language in Spanish ...
Thank you for your support both the need
Greetings
stephj said:
As far as the SDKs are concerned, there are slight differences from one version to the next but they can be quite difficult to spot.
They can become issues, when code written to run on one platform is run on one several generations away. I have a program that was written in C++ WM2003. Works under all versions of WM until 6.5.3, when the About Dialog box fails to close if the (X) button is pressed. Turns out another value has to be added to the dialogbox flags field to get it to behave properly.
This has been a feature of SDK's from WM 5.0 onwards, but the WM2003 SDK is unaware of it. You have to add it manually to the shell code created by the SDK,
Progress I suppose. The full article is here:
http://forum.xda-developers.com/showthread.php?t=635063
Click to expand...
Click to collapse
I noticed something else odd. When i run the app on my pone, the resolution is off. Now everything looks ok, i just mean that when i run it on my phone, theirs alot of "white dead space" at the bottom. I can only guess this is due to the SDK's catered to phones with smaller screen resolutions (ie Touch Pro) with buttons.. Is their a way for me to switch the resolution to ultilize the full Touch Pro 2 screen size (480x320 i think)?
Funny you should mention that. I replied to a similar post a short while ago. I'm not going to type it all in again, it's here.
http://forum.xda-developers.com/showthread.php?t=637417
Hi guys, i am creating an image editor to run in wm 6.5 and i am having some troubles adding a shortcut in to the camera.
Can someone help me out here?
Thanks
bump, its kind of urgent, please anyone?
Do you mean adding a button/menu item to the program that opens the Camera up for taking a photo? (Also, please specify what Language you are coding in...that will help Dev's know if they can help)
Opps, sorry for the lack of info,
What i meant is to add a button at the screen after the camera captures a picture.
I'm Using C# on Visual Studio 2008 with WM 6.1 SDK
Thanks
Hmm...I dont know how you would manage that...You could make a replacement camera app, but C# is nowhere near strong enough to do that. I cannot help with this, sorry.
Good Luck.
Ah...what if i were to make an instance for the WM to prompt the user with a notification when it detects a picture is taken? Is that possible?
Thanks
maybe try kinda monitor DCIM folder for new files, and when it detects one it runs your program?
Just guessing, but cannot give you any info how to do that. I suck at file managment in C# :S
It is POSSIBLE in C# by doing the following:
Run a program (process) on startup.
It takes a list of files in DCIM (or photo folder).
When the Camera App is run, this program re-initializes.
When it detects that the Key for photo has been pressed, it gets a new list of files.
It then compares the lists to see what the new file is.
Done.
HOWEVER, with C# this would be horribly inefficient in terms of battery and resources. I would really recommend trying to figure it out in C++ or getting a C++ dev to do it. (I cannot code in C++ unfortunately, but I am trying to learn)
I want to develop simple apps for Windows Mobile. I read that I can use:
---Compact Framemork. (I downloaded Sharp Develop, it is free. It also exist a program from Resco that speedup the development with C.F.)
--- C or C++ or C# (I don't know if WinMo understand these...)
---Visual Basic (is difficult and Visual Studio isn't free, but I found another program that allows to develop more simple)
---Mortscript (I think is the most simple)
---Which is the best and the most simple language?
---Where can I read or download tutorials?
---I can not develop simple apps with images and sounds yet.
Please Help!
I want to develop
-a lock screen
-an app that turn on and turn off the leds of my device
-an app that change registry values (without softreset the device)
-an app that can copy, cut and delete files
-a Soft Imput Panel (a virtual keyboard)
I haven't done windows mobile development in quite some time, so things may have changed a bit. But to help you out better, it would be good to know what version of windows you intend to develop for (I assume Windows Phone 7?) as well as any specific devices you may want to concentrate on, and what experience you already have with coding.
MortScript is probably a good starting point, though if you want to get some real functionality going, you should look at C#.net CF. Take a look at this MSDN resource: LINK. It should be good for getting started.
I think that for modifying the registry, working with LEDs, and for the software keyboard you may need to use C++ ... though I can be mistaken. I'm not sure how Microsoft has worked out libraries and privileges in WP7.
Cyclonezephyrxz7 said:
I haven't done windows mobile development in quite some time, so things may have changed a bit. But to help you out better, it would be good to know what version of windows you intend to develop for (I assume Windows Phone 7?) as well as any specific devices you may want to concentrate on, and what experience you already have with coding.
MortScript is probably a good starting point, though if you want to get some real functionality going, you should look at C#.net CF. Take a look at this MSDN resource: LINK. It should be good for getting started.
I think that for modifying the registry, working with LEDs, and for the software keyboard you may need to use C++ ... though I can be mistaken. I'm not sure how Microsoft has worked out libraries and privileges in WP7.
Click to expand...
Click to collapse
Thanks CycloneZephyrxz7.
I want to develop for Windows Mobile 6.X for devices with WVGA resolution.
But with Mortscript I can do less things? Because I can only write scripts.
Do you know how is written a simple app like "ClearTemp"?
I wait other replies from Devolpers and people that used these languages...