[Issues]Integrating .Net CF2 SP1 into my custom ROM. - Windows Mobile Development and Hacking General

I am currently working on a custom ROM for my HTC Apache on the sprint network. I have tried everything, searched up and down and have yet to find a reason as its not working. I add this to my default.hv overwriting some default settings, that are under those keys located in the attached txt file.
I add all 22 files into my dump folder overwriting some of the ones that are already there. And when I install a .NET 2.0 app, I get the you need to install CF .NET 2.0 error. Can anyone shed some light on where I may be going wrong?
Thanks,
Mike

Bump....
bump......Merry Christmas and Happy Holidays to ALL! Can anyone shed any light here?
Thanks,
Mike

The setting
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework]
"2.0.6129.00"=dword:0
Has to be
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework]
"2.0.6129.00"=dword:1
Additionally i would set the
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework]
version 1( i do not know the exact numbers but begins with 1) =dword:1
to
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework]
version 1( i do not know the exact numbers but begins with 1) =dword:0
Hope this was helpful

Related

CAB file version issues

Hi everybody!
(hi doctor nick)
I'm having a few little issues with CAB files on my pda2k.
maybe this should be in the blue angel thread, but it's to do with application development, so i put it here. I also tried the forum search, with no results.
i'm wanting to use all my customised cab files that i made for my XDA2, and use them on my new device, the PDA2K.
all of the cabs work, and all of my applications run.
however, upon installing the cab, a message comes up on my pda and says "the program you have installed may not display properly because it was designed for a previous version of windows mobile software"
i've checked the version nifo in all my .inf files.
i've compared them to newer cab files that don't give me that message.
the inf files look fine.
is this a registry setting perhaps, that i could change?
like i said, all the apps work, i just want to stop it from giving me that warning.
does anyone have any ideas?
thanks !
The warning is just about what it says: You are trying to run older (ie now specifically designed for SE) software.
Noithing to worry about when thing work as supposed.
You can get rid of the message by setting the OS verion inse the CAB files higher (but you need ie. WinCE Cab Manager by OCP Software for that) .
i know there isn't anything to worry about. the apps work.
it's just that for the purpose of creating an SOE, i don't want customers to have to click "ok" everytime they reset their device, all apps must install without prompt from beginning to end.
I have winCE cab manager, and have set the version and build number higher in the inf file, yet i can't seem to get rid of the message.
any other ideas ?
you have to set the lower version number to th version of WinCE youre using now.
Set some 'very high' value to the higher version number
There is another thread on this somewhere . . .thats where I got this info from
yeah, tried that too
i sset my version details like this:
[CEDevice]
ProcessorType=0
UnsupportedPlatforms="JUPITER","HPC"
VersionMin=3.0
VersionMax=10.00
BuildMin=0
BuildMax=100000
still no good.
anyways, i'll keep searching for the related thread. i new there would be such a discussion in here, just a matter of finding it.
I think it was versionMin=4.21
http://forum.xda-developers.com/viewtopic.php?t=15761
M4io said:
I think it was versionMin=4.21
http://forum.xda-developers.com/viewtopic.php?t=15761
Click to expand...
Click to collapse
thanks M4io,
that's the link i was looking for
ok, there seems to be something wrong here.
either that, or i'm doing it wrong (highly unlikely :lol: )hahha.
anyway, i've tried all different versions, i've tried all different build's.nothing. still won't work.
so i downloaded the latest operator settings for my device.
that cab ran no problems, so i extracted the inf, then i copied all the version info from that one, and dumped it into the inf that i'm trying to package. ran the cab on the device, and i still get that error !!
how can that be?
there must be something else in my cab, that governs version conflicts.
anyone
Hi Twinair,
please try to set it as follows:
[CEDevice]
ProcessorType=0
UnsupportedPlatforms="JUPITER","HPC"
VersionMin=3.0
VersionMax=4.21
BuildMin=0
BuildMax=-536870912
buzz
I've tried with the above settings buzz, but it still doesn't work.
does the CEsetup.dll, or setup.dll have anything to do with version control perhaps ?
could be, that you should use your own setup.dll
I really don't know now... I've never made a cab which was not complaining about the older version... (
Looked for it also in internet, but found nothing...
But if you download the trial ver of OCP CabManager, you can unpack cabs for SE and take a look there... my trial period is expired now...
Maybe you can try to use setup.dll out of such cab...
buzz
damn, still not getting anywhere.
i've put in the correct version info, i've used a setup.dll file from a known working cab file, i have the latest full version of cab manager.
i'm fresh out of ideas
back to the drawing board.
if i figure it out, i'll let you know.
This is what MSDN says at
http://msdn.microsoft.com/library/d...dnwm2k3/html/screen_orientation_awareness.asp
Installation Warning Messages
When a legacy application is installed on a Windows Mobile-based Pocket PC capable of screen rotation, the warning message will appear
This dialog is to advise the user that the application they are about to use may not be aware of square screens or screen rotation, and may not display properly in landscape mode. This dialog will only appear if the VersionMin value (which specifies the lowest OS revision number your app supports) file is less than 4.21.
Since setting VersionMin to 4.21 will prevent your application from installing on older Windows Mobile-based Pocket PCs, it is recommend that you disable this warning message by setting the BuildMax value (which is typically unused) equal to the following values:
BuildMax values
0xA0000000 Application supports square screens (240x240 pixels).
0xC0000000 Application supports screen rotation.
0xE0000000 Application supports square screens and screen rotation.
These parameters can be changed by editing the [CEDevice] section of the INF file which cabwiz uses to generate your CAB file.
so
[CEDevice]
VersionMin=4.21
VersionMax=4.99
BuildMax=0xE0000000
Should do the trick[/b]
@Shikra
...perfect man, let me test it... )))
THANX
buzz
GREAT!!! it works!!!
THANX
buzz

Typhoon wm5 new build developing

As many of you will be glad to hear, I've begun working on typhoon wm5 build 5.1.29.14847.2.0.0
now i've added almost all necessary files. some drivers are left yet, though - camera, sim toolkit and htc obex driver.
Now I need help of real gurus like mamaic and buzz. Here is the point: drivers are added, but still only keyboard works. drivers are added correctly, like modules. I Guess there's something to do with the security. maybe, regenerate packages.sof? but how? also, how to create dsm and how to change offsets in modules? actually, i only need to know how to create dsm and how to add them to registry, and how to create packages.sof. Strange that i boot the os and all the files and registry entries are present, but i see phone of on today screen and only keypad and display work.
Hi, Do you have any working (even bugy) WM5 ready to install? I need it to fix my phone and revert back to W2003.
Thanks
Inquiry
Hey Sp3Dev, just wanted to know whats going on with the new build you have been working on. Did you manage to get the help that you were looking for. I just got this device yesterday to use until my Artemis arrives, but I think I will end up keeping it to replace my d600 just because I love customizing my devices. Hope you are still working on a little somthing for my SP3i.
sp3dev said:
As many of you will be glad to hear, I've begun working on typhoon wm5 build 5.1.29.14847.2.0.0
now i've added almost all necessary files. some drivers are left yet, though - camera, sim toolkit and htc obex driver.
Now I need help of real gurus like mamaic and buzz. Here is the point: drivers are added, but still only keyboard works. drivers are added correctly, like modules. I Guess there's something to do with the security. maybe, regenerate packages.sof? but how? also, how to create dsm and how to change offsets in modules? actually, i only need to know how to create dsm and how to add them to registry, and how to create packages.sof. Strange that i boot the os and all the files and registry entries are present, but i see phone of on today screen and only keypad and display work.
Click to expand...
Click to collapse
I can help a little. I only use the files already listed in the packages.sof. I don't know how to read the file though. I use Bepe's kitchen. When you seperate the files into OS and LOC, you may find some folders only contain a .dsm file. These are extra folders and can be either deleted, or used for holding additional files. these files should already be listed in the packages.sof. You may have to test them one at a time by using the createOS.exe. Now to rebuild a .dsm file, put the your folder in the OEM folder, and createOS. This will automatically rebuild the .dsm files in the OEM folder. I'm sure there is a more elegant method, perhaps by using the kitchen tools directly, but i don't know how. I recently had to translate a chinese AKU 3.2 set into english, and thats basically the method i used. This post was written w/ the assumtion that you are familiar w/ Bepe's kitchen.
Regards,
Jason
Hello.
How are you trying to create this build? Have you started off with the original Typhoon WM5 Beta, or do you use a "true" WM5 build and try to incorporate Typhoon drivers? I suppose you are doing the latter, which I really hope you'll accomplish!
If you need any help betatesting and stuff, please say so

HTC Home 2.0

Found Kaiser.HTC.Home.v2.0.814.722-schen.cab in the Hermes forum:
http://forum.xda-developers.com/sho...hlight=Kaiser.HTC.Home.v2.0.814.722-schen.cab
Versin 2.0 allows you to add a diffrent number to favorite People (1.5 defaults to the mobile thus you need to create a new contact to use the Office number.).
Well that is the good news, the bad is that I cant get it to work on my BA
It installs well.
Under Start - Settings -Today - Items - It adds a HTC Home Tab.
The tick boxes work fine (fast as well JOKE).
And on the Today screen it adds Nothing.
I have done a old uninstall, new install, wait, softreset, wait.
This is a patched version based on the thread so may be the clean version would work.
So has anybody got Version 2.o to work on a BA ??
That's v 2.0.720719.
2.0.814.722 is here: http://forum.xda-developers.com/showthread.php?t=327646
DANDANA said:
That's v 2.0.720719.
2.0.814.722 is here: http://forum.xda-developers.com/showthread.php?t=327646
Click to expand...
Click to collapse
SOME PICTURES PLEASE!!
I didn't try it and MDAIIIUser said isn't working on BA....yet
It looks the same as 1.5 with aditional options, but i can't get it to work either, i install needed certificates but still nothing
xplode said:
It looks the same as 1.5 with aditional options, but i can't get it to work either, i install needed certificates but still nothing
Click to expand...
Click to collapse
2.0.xxx.xxx work much better than v 1.5....thrust me.
Are you able to get v2.0.7xx.xxx to work?
You can see that v 2.0.8xx.xxx and v 2.0.7xx.xxx and v1.5.xxx.xxx all using DIFFERENT certificate to sign. That is my experimenting on the certificates thing. All work OK with my Hermes. Maybe it is certificate thing...maybe it is other matter that prevent the new version from working correctly for BA. But really I DONT see any reason other than certificate. You can try to sign the dll with other certificates to see if it work or not.
I only patch the dll to enable instalation outsite of windows directory and to fix the brightness shortcut. Other than that nothing. So, this should not be the issue
Congratulation guys WM6 finally arrived for BA and Hima user. I should have hold my thrustworthy Hima longer I dont have to upgrade, BUT Hermes ROCKS, no regret.
Thanks schen for your input, i have tryed al the 2.0.x versions with the same certificates (looked mainly into hermes forums) provided for hermes, but the home settings show in today options and the plugin just does not load. I agree that this is certificate error i will try to sign them with difrend certificates to see what will happen
regards xplode
Edit: I have tryed both 2.0 versions on clean hard resseted rom with both certificates installed and none ot them does not work for some reason, now i will try to sign the dll's with sdk certificate to see the results
Anyone have any luck with Home 2.0 on BA?
Same problem with HTC Plus.
I think the problem is certificate sign.
Just to let you know that this issues is just not with your devices, we are also seeing the same problems with the Apache running Helmi's port of WM6. It shows in settings, but nothing on Today screen. Have tried certs and signing as well.
However, both 2.x versions work fine with the Titan running WM6. My thought was that there were some remnants from the WM6 port that were still using WM5.
maybe you are right, because i signed all files with one certificate and then with another ans it is the same result
If you guys have install the sdkcerts.cab before installing home then I dont think it is certs problem...it is more like device specific security setting problem
Maybe you guys can take a look at the WM5 security...each of the ROM might have different default setting. Some device even dont allow security setting to be change.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/wmsecurity.asp
I will also try copying the SampleDevPrevCert.pfx to the device and click on it. It will add the root cert to the thrusted certificate store. It may work it may not but very simple and worth a try.
Bottom line, if you try the "No Security" setting which allow all signed or unsigned apps to pass and the HTC Home still not working then I dont have any idea anymore.
Please try....
Out of curiosity why v2 of HTC home working on certain device and rom and not working on others, I have resigned all the dll, exe, and mui files with my own certificate.
Installation note in the Readme file inside the zip.
I am looking for some people to try if the cab work. As soon as 2-3 report still not working I will delete the attachment.
Test it, i couldn't install at all; "installation of ... was unsuccessful"; thanks anyway Schen.
Now installing, will keep you posted in few minutes
the instalation of the cab is unsuccessful (the home cab)
DANDANA said:
Test it, i couldn't install at all; "installation of ... was unsuccessful"; thanks anyway Schen.
Click to expand...
Click to collapse
Same error message for me
schen said:
Out of curiosity why v2 of HTC home working on certain device and rom and not working on others, I have resigned all the dll, exe, and mui files with my own certificate.
Installation note in the Readme file inside the zip.
I am looking for some people to try if the cab work. As soon as 2-3 report still not working I will delete the attachment.
Click to expand...
Click to collapse
I tried 3-4 times, but always installation of HTC Home cab was unsucessfull
Hi Schen,
Thanks for your help with this issue. I can confirm DANDANA's results on my Apache (Helmi's WM6 AKU .7) with no prior version of HTC Home installed. Your cert cab installs OK but the Kaiser.HTC.Home.v2.0.814.722.Resigned-schen.cab fails to install.
I believe this is due to the mui files (from my own experience in trying to unsign/resign them I think the certificate table gets corrupted somehow).
I sent you a PM earlier, but would it be possible to obtain a copy of all of the original HTC Home 2.0.814.722 PE files (prior to any hex editing & re-signing)? Helmi would like to take a look at it since it seems to be an issue with his WM6 ROMs (also affects his AKU .42 release for APAC).
Thanks again!
i have removed flags in cab for the self registering and shared for WmpPluginToday.dll and now it installs but it still does not work
xplode said:
i have removed flags in cab for the self registering and shared for WmpPluginToday.dll and now it installs but it still does not work
Click to expand...
Click to collapse
Yes....I forgot to remove the self registering of the plugin, that is the cause of installation unsuccessfull....Earlier I tested this on my hermes manually coying the files and it work OK.
I have remove the cab. AT least I am convince by now it is not the certs thing.
Luv...got your PM...I will have to look for the original HTCHome.dll if I still have it. As I said before....the hack I did was just to change the default directory (\windows) to (\HTCHome) for the graphics AND change it to call HTCUti1.dll instead of HTCUtill.dll...They are unicode hex editing only. You could hex edit and change "\HTCHome" back to "\Windows" and "HTCUti1" back to "HTCUtill", resign it and everything is back to original. The mui files came unsign. I have to sign the mui files to get it to work for hermes.
In the mean time....the main difference between v 1.5 and v 2.0 is the "PROFILE" Tab...Try to install, disable the "Profile", reset if necessary to see if it work. The attached cab only enable the Home tab by default...if it work, you can enable all other tabs one by oneto see which tab is causing the problem.

NET CF 3.5 help

Hi, I believe I have quite a big problem here. I read somewhere else on this site that if certain .NET CF programs did not run, then to delete the enitre LocalMachine/Software/Microsoft/.NET something something registry entry. I did this, soft reset my phone, and of course, now all .net programs wont run. I've tried reinstalling with a cab file, copying and pasting OEM files, and going into the registry and changing the key in the .net folder that enables version 3.5. If anyone has a solution to this please let me know because I depend on .NET CF for almost all of my programs.
fraggy4 said:
Hi, I believe I have quite a big problem here. I read somewhere else on this site that if certain .NET CF programs did not run, then to delete the enitre LocalMachine/Software/Microsoft/.NET something something registry entry. I did this, soft reset my phone, and of course, now all .net programs wont run. I've tried reinstalling with a cab file, copying and pasting OEM files, and going into the registry and changing the key in the .net folder that enables version 3.5. If anyone has a solution to this please let me know because I depend on .NET CF for almost all of my programs.
Click to expand...
Click to collapse
You may have to hard reset. If you didn't backup, I suggest you start to. Or, try adding the key you deleted. You should never mess with the system/registry if you don't backup!
I agree. A hard reset is your best bet. I've made similiar mistakes as well. I've tried reinstalling the affected programs, all I ended up doing was getting numerous error messages. It's really hard trying to figure out which programs are affected and which are not. I lost a lot of important data, but it taught me the importance of backing up my work.
Man, that sucks. If its possible, could anyone who has an xv6900 post the registry keys for net cf 3.5? I'm going to try reinstalling an older version, back to 2.0 SP1. If that doesn't work, I'll let you know.
Edit: I installed 2.0 SP1 and it still doesnt work. I'm starting to think it's not a registry problem though, because I search around and this seems to be an assembly problem or something. It says it can't find Microsoft.WindowsMobile.Utilities and it gives me this keytoken: '31bf3856ad364e35'. If that means anything please let me know.
Edit: Woohoo! I fixed it! sort of. I downloaded dll files of the Microsoft.WindowsMobile.******** assemblies i was missing and pasted them in the program folders for the programs that need netcf. However, I will have to keep doing this unless I can find a registry key that points to where the dll is. If anyone has a registy key that points to Microsoft.WindowsMobile.Utilities and Forms please post it here so I can copy it.

eMbedded Visual Basic Runtime

Hi All,
I don't have this phone, at least not yet.
But I'm trying to help a friend. There is an application he uses that requires eMbedded Visual Basic Runtime to be installed. The problem he has is that the Cab file won't install on the ATT Tilt 2 at all.
Is it possible that Visual Basic is such an ancient technology that it won't run on this device or newer ones?
Has anyone else encountered such problems with installing the Runtime CAB?
Any solutions?
Raudel
I installed it awhile ago on a 6.5 EnergyROM, and don't recall having problems with it. Try redownloading the .cab from here and see if that works. Sometimes the cab files are just bad and need to be redownloaded.
Nevermind...
Thanks for all the help DaveTheTytnIIGuy and especially RaudelJr!
This was me being too busy to pay attention to what I was doing.
As of this morning I have the embedded VB installed and all apps working on the Tilt 2 running stock rom wm 6.5 21xx.
I was trying to install the runtime to the sd card... oh well...
Thanks again,
ggg

Categories

Resources