VB programs in WM5 without port to .net - Windows Mobile Development and Hacking General

I'm trying to run an especific application made with VB in WM5. Although many statememts that this is not possible and that we have to migrate the code to .net, I managedto make it run. After installation however, no new programs are allowed to install. Can you help me founding the root of this issue? Is important to me to learn about the origin of this incompatibility.

I guess you mean evb programs (scripts)... i think its that after uninstalling them there is a problem with the files with .vb extension and that can be solved when creating the distributable cab changing the regkeys that are modified (its a value wich is changed from 0 to 1 but I can´t recall)... i guess the solutions is explainde in omnisoft forums, also there is the explanation to register additional components to evb... well, it has a long time since i try it... also it works with wm6...

Thank you for your answer. The problem was different.
A specific app Called Diagnosis Pro ( Very Expensive one) refused to install in my WM5 and WM6 devices. It only worked at PPC2002 and WM2003 and 2003/SE devices. Now I managed to install it in My WM4 and 6 devices after changing the dlls that was in the cab file. It's working Ok now.

It's Ok!

Related

HELP: Re-Installing VBScipt on a Vario

All Games / Apps using Visual Basic seem to have stopped working.
Shortcuts to *.vb links get the error:
"There is no application associated with ...... Run the application first, then open this file from within the application."
Other files get the error:
Error : 0x80040154
(Cannot open VBScript)
Is there anyway I can reinstall the Visual Basic runtimes on my Vario without doing a full factory reset.
Logic says there must be a way.
I do not want to do a reset and lose all saved texts, MMS, contacts and all the software I have installed.
Appologies if this post is in the wrong place or has been asked before.
___________________________________________________________
T-Mobile Vario
Windows Mobile 5
ROM: 1.6.2.4 WWE
Radio: 01.12.10
well, I have more or less the same problem, there seems to be a problem with the installation of the eVb runtime on WM5, even thouhg I succeeded once...But the webmaster of http://www.omnisoft.com seems to have found a way of bypassing these limitations, I haven't found the time to test his solution yet. Let's say that the firts to try lets the other one know how it worked out.
Any idea how they bypassed these limitations or how I can get hold of them.
Anyone else got any links / guides to this problem.
I have two Varios and one MDA Compact to fix this problem on so far and I really dont want to do a hard reset.
It seems that the main problem is not the scripting engine itself which installs just fine. It has to do with the various ActiveX controls (MSCE*.dll) that are not registered when you install the runtime, but are requested by most apps to function properly. Basically, the post on omnisoft.com explains what entries you have to enter manually in the registry to register these controls.
By the way, what setup did you use to install the runtime?
I used the W2003
VBScript just stoped working inc games/apps I downloaded + minor apps I wrote with Forward Pass.
I did not install the runtime, it was in ROM.
That is why I may have to do a hard reset.
Is there any link to the post on omnisoft.com?
Doesn't Microsoft have any VB runtime install that will fix this? It is their OS.

After a Hard reset how do I automatically run a config script

Does anyone know how to automatically run a config script or application after a hard reset?.
if your talking about the autorun.exe the one that loads the cabs from the ext rom then it should automatically run after a hard reset, if it does not then you may need to re-flash your rom as your ext rom has been trashed
Hi,
Thanks for that - what I am trying to do is...
I install an app (including .net v2.2) When the device is hard reset I want to be able to get PPC to automatically reinstall .net 2.2 and my own app.
Presumably I need to put some cabs somewhere that will be automatically run by autorun.exe?
But where (and how) do I place the cabs and what should they be called.
Many Many Thanks
Chris
Chris_French said:
Hi,
Thanks for that - what I am trying to do is...
I install an app (including .net v2.2) When the device is hard reset I want to be able to get PPC to automatically reinstall .net 2.2 and my own app.
Presumably I need to put some cabs somewhere that will be automatically run by autorun.exe?
But where (and how) do I place the cabs and what should they be called.
Many Many Thanks
Chris
Click to expand...
Click to collapse
yes, the cab must be in the ext rom and you must edit the config.txt in the ext rom.. its easy and you will understand as soon as you open the config.txt
There is a section on wiki in the BA section (extended rom kitchen) that will give you more info.
Link Below
Thanks for that - It is a real help - If I can do anything for you in the future just let me know.
One more (hopefully) final question on this point....
How do you unlock the extended rom on Win Mobile 05 (Ipaq 6515). I have found some stuff on it but nothing seems to work
I have a apache Verizon and a T-mobile h6315. I'm guessing that your's is simular to my h6315. On the h6315 the extended rom is called "iPAQ ROM". search for it in your registery. You'll find that there is a entry that shows it's mode of the file system. value is one change it to 0, or delete it from the registry and reboot.
In the extended rom there is a directory called Config there is a cab provisioning file and cab file that I think are probably installed on a had boot.
Sorry, I can't look up the specific regristry entry now, will try later if this isn't good enough.

How to group cabs in one cab?

Is possible to group several cabs in one cab?
I want it to save in the Extended Rom of my TyTn, so that when I do a HardReset, automatic it starts to install all the modifications of registry and some programs that I have in several cabs from the pocket, without need of pc.
I search on the forum, but I don´t find any solution.
Thanks
Well first off, if you use the autorun.exe that already exists in the extended ROM and modify its configuration file (the name may be different for different devices, but it is usually a plain text file) you can get it to install several cabs in sequence.
Combining cabs is not always possible unless you are the one who created them in the first place.
Get a program called CE Cab Manager. It will show you everything that a given cab includes and let you edit it. As long as it's just files and registry settings there is no problem stuffing them all in one cab.
But if a two cabs contain a setup.dll there is no way of combining them without knowing exactly what that DLL does (it could be anything) and thats almost impossible (unless you can read ARM assembler well).
tristan1412 said:
Is possible to group several cabs in one cab?
I want it to save in the Extended Rom of my TyTn, so that when I do a HardReset, automatic it starts to install all the modifications of registry and some programs that I have in several cabs from the pocket, without need of pc.
I search on the forum, but I don´t find any solution.
Thanks
Click to expand...
Click to collapse
what levenum said is correct... so the best thing for you to do is to edit the config.txt file in your extended rom to have them install... HOWEVER if the cabs you are using arent digitally signed then they wont install using that method, you would need to disable the security first... Since no one has a signed disable security cab that works with the tytn the only option would be to do this on a hard reset; soft reset before the customization, when it boots run the tweak program to disable security, then go to the windows directory and manually launch the preautoconfig.exe
software alternatives
tristan1412, you can also use a software dedicated to this task.
check spb airsetup (www.spbsoftwarehouse.com, i'm not sure if it allows more then one cab), or even better airwizard (http://www.teksoftco.com/index.php?section=airwizard)
the advantage of these programs is in my opinion the compression. then you also get several options like readme/eula (with airwizard you have spash image support and even sd card output support - that creates autorun content for the sdcard)
hope this helps
RM
shogunmark said:
....HOWEVER if the cabs you are using arent digitally signed then they wont install using that method, you would need to disable the security first...
Click to expand...
Click to collapse
First of all, thanks for the answers.
now, How can signed digitally my own cabs??

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.

Batch installation and update of settings

Hi,
I'm looking for a bit of help with this if possible, basically at work, i have to constantly setup a load of HTC P6500 devices all running on windows mobile 6.1.
On each device I have to install certain programs from an sd card and update quite a few system settings.
Is there any way this can be done with a batch file perhaps, that would install all the software and update all the settings I need it to?
"XDA UC" could be what you are looking for, but it needs to be cooked in into WM.
I think there already is such a machanism in WM, but I don't really remember it's name...
.cab
make a .cab which has all the programs and settings.
maybe RunCC is in your ROM...
thanks for the help everyone, managed to get around this using SPB backup trial which let me essentially clone the device, and restore this back to the rest.

Categories

Resources