Is There a Way to.... - Windows Mobile Development and Hacking General

Hello All,
Is there a way to strip an installed application from a PPC into an installable .CAB file, if one has lost the installation files/DVD, but still have the application installed on the hand-held.
Thanks in Advance.

Not really.
You can always copy the files out (if you can find them all - some may be in windows folder or places other then the main app folder) but you still would need to know every registry key the app requires.

If you use sktools it tells you all the files installed and registry entries. You could then extract all the files as levenum said and make a cab including the registry entries.
Hi lev

ahh..hhaa !
meschle said:
If you use sktools it tells you all the files installed and registry entries. You could then extract all the files as levenum said and make a cab including the registry entries.
Hi lev
Click to expand...
Click to collapse
My experience with SKTools makes me cringe...my ATRE would not stop rebooting until I remove the SD card(where SK Tool was installed and remove it completely.
What software do I need to make a .cab file ?
I will still make all efforts to attempt this anyways....

Ive had no problem with sktools - i always install to main memory. If you manually make your cab then use cabiwiz - or use a commercial app like wince cab manager. Which program are you trying to put together?
cabiwiz enclosed inc example app and tutorials

Funny thing - I was replying to another thread with similar question stating that there would be a problem finding out all the REG keys.
Then jackleung posted about a tool called "ssnap" that supposedly can take an image of the system.
Comparing an image from before and after installation should show all the changes a cab makes.
Since I am not personally familiar with the tool I can't say any more about it.
As for cab creation - while I use cabwiz my self, it is a command line tool and you need to know ho w to write inf files for it.
For a beginner an app like WinCE cab manager will be more comfortable.
It is a shareware, so it will stop working after a while unless you pay but it is very good.
P.S.
Hi Mark

Related

deleting registry keys automatically within a cab file

Hello professionals ;-)
i have to delete some registry keys during an softwareinstall with a cab file.
Can anybody tell me how to make an installationfile (like *.cab ore something else) deletes some keys in the registry!
whatfor?
i want to install some programs (like pocket plus) and make some configuration during cab file installation. so i looked into the registry what changes when i configurate pocket plus.
as i noticed there where som keys changed i can overwrite with the new values BUT there are some registry keys deleted also. How get them out???
is there any way ??
Have a look at creating a custom setup.dll file to include in the cab file.
You can certainly delete registry entries using it.
I don't know about deleting registry using cab files.
I think there is only options to allow or not to replace a registry key if exists during install.
Here a good link for .cab files Cab files
Apart that you can make your own install from PC to Pocket using RAPI. With that no problem to delete keys, copy files, add new keys ...
want to delete some keys bevore install
Thank's for your tips!
Have a look at creating a custom setup.dll file to include in the cab file. You can certainly delete registry entries using it.
Click to expand...
Click to collapse
is there more information about this ?
how it works?
how to do?
as i looked at the CABFiles Website this looks very complicated to me ;-(
i am an absolute beginner in developing software!
i need an easy way to delete some regkeys during installation.
I think you can use the excellent scripting utility called nScriptM to achieve your goal. Simply run a search on this in google and you will come across a number of resources including the download location.
k_kirk said:
I think you can use the excellent scripting utility called nScriptM to achieve your goal.
Click to expand...
Click to collapse
i will try this, Thanks!

Quick & Dirty Installer?

Got some files in a CAB I want to install on a number of units. I would "like" to create an installer that I just double-click on desktop & it installs via ActiveSync - simple. But I'm not a programmer - what would be the best way to do this? Prefer not to copy via explorer & click the CAB on the XDA unit & others may be doing this, so trying to keep it simple. Ideas/recommendations?
I brought Natural Installer a few years back and it has been the business. It is very simple to use, all with a windows interface and creates a single exe as you say that you just double click on to install.
Have a look here :-
http://naturalinstaller.com/
The site does not mention 2003, have you had any problems with that?
Can you define install location? SD Card
How does it deal with chaty cabs (those that want input).
I've had no problems with PPC2003, why don't you download the trial version and give it a go. Post a reply on this thread as to how it works.
As for chaty cabs I think you can make your own setup.dll but I don't know how to and have never done that.
All I wanted was a basic setup that could make directorys, copy files and set some default registry keys as needed, I found that Natural Installer did that very well. As for more advanced stuff I don't know - but as written trial it.
Well I downloaded it and played with it.
For me it seems to be a WinCabManager type appliction.
Yes you can copy files, set reg entries, make dirs, add icons.
All of this seems doable.
What I was hoping for was a selfextracting file that installs a few cabs and not the content of them.
With the BlueAngel you can set up a autorun that runs a list of cabs in the config.txt file. However for this you need to hack the reg to set the pointer for the autorun and config.txt.
I was hoping that this would be more down the lines of cabinstaller that allows you to define which cab you want were but alas does not allow you to define a list of what cabs you want in what location.
So problem for me not solved but thanks for the tip.
Hi Dave
Personally I use NSIS (Nullsoft Installer) - it is basically a very customisable installer which can be scripted to look like any other installer in existance, or you can make it look totally unique to you!
Another great thing about it is that you can make it install multiple cab files at the same time (it's just a case of calling ActiveSync with the cab file you want to install).
Best of all... it's free
Pope <><

I cant find my "Running Programs"

I just hard reset my magician. Since i'm using big storage (my friend did it), only some of the cab files from extended_rom are installed. Now i just found out that my smart dialing, MMS, O2 plus are not included. It was easy to recover those programs since i know the cab files.
However, i cant find the right cab for "Running Programs". Does anyone know which one? Thx.
Sorry for the bad language
Running programs - do you mean in Settings > system > memory > running programs?
If you need a task killer I can send you one or there's many around.
V
That's the one. Thx . So actually it's not a stand-alone program. Yes i found the running programs.
So, the question is changed now. I need the shortcut to that program. Usually magician has the blue box icon with a picture of someone running. Do you know the shortcut?
Thx.
Just tried to restore that icon from my old backup before it crashed. I thought it was just only a link to some program. But it is not! It is an exe file and after i restored it, click the Running Programs, it says "Error opening the shortcut or locating the target filename".
Any clues?
My Running Programs app is in the "default_103133" CAB file from my Mini. I run this file after hard reset.
What does that file do? Just open up the running programs control panel?
If you need it back, just type the following into a text file on your PPC
Code:
22#ctlpnl cplmain.cpl,4,2
and save it as Memory.lnk
Then double click on that file.
Tell me if it works ok.
V
@vijay
i just wanna return my magician to the default system . that's why i'm so curious to get back that program.
@ampda
i'll try that file. thx for the info.
I can post my CAB file but it will also add the O2 xda defaults that can with the Aussie unit
ampda said:
My Running Programs app is in the "default_103133" CAB file from my Mini. I run this file after hard reset.
Click to expand...
Click to collapse
Thats right....just install that cab file "default_103133.cab" and you will have your Running Programs app back....that is, if you saved your Ext ROM files before doing the Big Storage patch, or someone can attach that cab file here.
Now my problem is (sorry this might be Off-topic) , how can I have back the AUTOCONFIG for different Telcos, (especially Asian) ? Its also gone after the Big Storage patch. I dont know which of the cab files I need to have it back
anyone have idea or is there a forum for this in Magician?
thanks...
THANK YOU!!! finally i can access my running programs.
anyway, ive another question . let's say i want that program to be installed automatically after I hard reset. how can you do that? so i do not have to restore them manually from my sd card. thx.
dinoalbert said:
ampda said:
My Running Programs app is in the "default_103133" CAB file from my Mini. I run this file after hard reset.
Click to expand...
Click to collapse
Thats right....just install that cab file "default_103133.cab" and you will have your Running Programs app back....that is, if you saved your Ext ROM files before doing the Big Storage patch, or someone can attach that cab file here.
Now my problem is (sorry this might be Off-topic) , how can I have back the AUTOCONFIG for different Telcos, (especially Asian) ? Its also gone after the Big Storage patch. I dont know which of the cab files I need to have it back
anyone have idea or is there a forum for this in Magician?
thanks...
Click to expand...
Click to collapse
To get the menu and icon run O2Auto.sa.CAB, then install the telco(s) you want to be in the autoconfiq menu.
@nsriza, thanks!!! As simple as this, and I can have my Autoconfig back already?
I thought I need to manually edit the autoconfig.txt to change the paths of the cab files?
Btw, I have already installed the cab files for all the Telcos that I need....but not the O2Auto.sa.CAB yet. Is it okay if I install that O2Auto then install again the Telco cabs?
Thanks...
So has anyone knew how to setup auto installation for cab files (eg. MMS, SmartDialing etc) after hard reset? thx
another OOT question...what does autoconfig.txt and config.txt do? and how to use it?
thx
Im assuming your asking for auto installation for after a hard reset using big storage. if you search for "AutoRUn" on this forum you should find a link on how to create an autorun folder on your storage card. you need the autorun.exe (Found in the search for the link) and a folder called 2577 created in the root directory of your storage card. then all you need to do is add all the CABs that you want to auto install after a HR to a ZIP (not Rar) archive and call that archive extROM.zip. then put that in your 2577 directory and hardreset and it will install all the files in the zip. if you havent already installed the cabs you put in the zip it will actually start installing them as soon as you insert the SD card. have a search around you will find lots of info about this subject.
SpeedN
@Speedn
thx for the suggestion. it's very helpful.
@rockafeller
hi i used big storage to convert my german rom (o2 xda mini) to wwe 1.12. now i lost some features like MMS,Smart dialling, Home zone control, O2plus. (as it was the case with you). It would be great if you could share here how did you get them back to work? i mean, i want the procedure to do so. i have a backup of my german rom.
one more question. i dont see the Phone pad option in my text input list after the bigstorage patch. how can i get it back. any suggestions would be so great..
thanx in advance
kk
@visvaram
if you backup ur extended_ROM, u should able to find related cab files, such as MMS**.cab, SMARTDIALING**.cab. Just tap those files and it will be installed automatically. FYI, backup ur cab files first b4 installing.
Im not sure about O2plus and zone files. Anyone care to help?

[HELP] How to register a dll?

I try to create a program which consists of
.asx files (to show online tv channels),
.lnk files (shorcuts to the .asx files) and
a .dll file which contains only some .ico files (icons of the tv channels).
I added all these files to a cab using WinCE Cab Manager and tried to install it on my ppc. So far so good. The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Although I have no idea about computer programming, I have created many cab’s with WinCE Cab Manager for skins I have created for several programs. Anyway, I realized that the problem occurred due to the .dll file, since this is the first time I add such a file in a .cab.
I created my .dll file using a .dll from another program which had only icons in it, as well. I deleted them using Restorator 2007 and I had an “empty” .dll sized 4KB. Then I added my icon files using XN Resource Editor.
I searched the Internet to see what might be the problem with the .dll and I found out that I have to “register” my .dll file. I really have no idea what this means but it needs to be done. I also found an option in WinCE Cab Manager for “self-registering” file, but it didn’t work either.
So, the question to you dev guys is how can I register my .dll file, or should I create it from the beginning with another way?
Please help! Thanks in advance!
sorry to repost but it seems that posts keep coming in this forum and this thread is already in the second page and I'm afraid that noone will see it and reply to it. By the way, is there any special sub-forum for such questions?
This may help. I use his instructions to edit existing DLL's
http://www.modaco.com/content/i9x0-...88904/lisbian-taskbars-for-i910/#entry1023568
It will unsign the dll which will probably fail on your custom dll but it should sign it when you are done editing.
NilsP
Many thanks for your suggestion but unfortunately it didn't work for me.
As you said, this is mainly for resigning already signed .dll files.
Any other help will be appreciated. I can attach it here if anypne is willing to help. Or just tell me the way. Thanks!
I deploy a few dll's with my app, without any problem. If the installer complains about the location, what did you specify where it should go?
There are 2 approaches to solve this problem:
1.) If you have a private key to match a certificate in the device's certificate store, sign the .dll and .cab with this private key and it will be installed with elevated privledges, and be successful. To facilitate this you can install the "SDK Certificates" - and sign with the matching private key (you should be able to find these on a search, term "SDKCerts" or similar)
2.) Look for an "Application Unlocker" or other security reduction tool, run it, and you should be able to install the cab. On this note, if you check here, it will give you a more technical overview of the security policies. You want to change 4101 / 0x1005 to "SECROLE_MANAGER" (8) - which tells the system to install it with elevated privledges. Also make sure 4102 / 0x1006 is set to 1 to allow unsigned applications.
6Fg8
I don't believe that is the location I specified that causes the problem because when I deleted the .dll file from the .cab, it was installed properly. How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Da_G
Thanks but both approaches seem very complicated for me!
So, will I need Visual Basic in order to do this or is there any easier way? Can anyone sign the dll for me?
angelos_cy said:
6Fg8
How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Click to expand...
Click to collapse
Yes with programming, C++ or .net. Never had any issue with signing. I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
6Fg8 said:
I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
Click to expand...
Click to collapse
I have sent them to you by pm. They are not secret at all but I will create a "program" (wannabe ) with that dll and I want that program to be a surprise for users of the forum where I'll post it. I may post it on xda too, but it's nothing important.
Many thanks!
angelos_cy said:
The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Click to expand...
Click to collapse
This happens because you've changed resources in signed file, which changed file checksum and invalidated it's signature, and Windows installer refuses to install file with invalid signature. But it won't refuse to install this file WITHOUT signature at all - so use unsigner (search for it on XDA) to remove signature completely; if you encounter error, try to remove signature from original (unmodified) file, and then change resources in it...
6Fg8
the_ozyrys
Thanks to both of you!
6Fg8 has created and signed the dll for me and it finally worked, but I also tried the_ozyrys' method and it also worked.
So thanks to baniaczek too, since he created the unsigner.exe.
Everything worked fine with the dll. Now the cab is installed properly.
However, I have another problem. Just after the installation of the cab on my ppc, it seems that the device freezes for about a minute. This is propably because my cab contains a lot of shortcuts (.lnk files) that go under Programs folder.
So, I would like to ask for another favour, if it's possible. As I said I intend to give this cab to others too. Since this delay can make them believe that my program has freezed their device, I would like to make the cab restart the device just after installation and after uninstallation as well. I think this is made with the "Setup.dll" which I don't know how to create.
If anyone knows how to do this and has the time for it, could you please create this setup.dll for me. If the cab is needed to do this, just tell me to send it to you.
Thanks in advance!
Anyone? Plzzzzzzz!
If you want to sign .dll or .exe u can use the apps posted in the two posts below
http://forum.xda-developers.com/showthread.php?t=432041
or
http://forum.xda-developers.com/showpost.php?p=3530246&postcount=18
raykisi
Thanks for your answer but 6Fg8 and the_ozyrys already helped me on that.
My question now is how to create a setup.dll in order to make my .cab to prompt the user to restart the device after installation and uninstallation. If anyone can do it for me, I can send you the .cab which I alreday created and you can add the setup.dll with those functions.

[SOLVED] Resco Explorer in ext package

Does anybody has Resco Explorer in ext package?
Tried to do it but i miss resco registry and resco ftp.
Thanks!!
What exactly do you want to get? I have it (selfmade).... But it's free for sure....
One more thing - I use OEM regular structure - not EXT (For OsBuilder). It's a normal package - with rgu and dsm.... Registry is a separate cab - you should add it to the package. FTP is a part of explorer - just added features.
AndrewSh said:
What exactly do you want to get? I have it (selfmade).... But it's free for sure....
One more thing - I use OEM regular structure - not EXT (For OsBuilder). It's a normal package - with rgu and dsm.... Registry is a separate cab - you should add it to the package. FTP is a part of explorer - just added features.
Click to expand...
Click to collapse
Well, in Resco site there is one cab for all the subprograms that are included in the resco 2010 8.10 version.
It is this cab I tried to convert to ext package.Everyrhing works except registry function.
Thanks anyway.
Attached is the app.reg (renamed to app.txt because of forums limitations) file that I use for Resco Explorer with FTP and Registry plugins added.
I didn't clean it up so it also contains the keys and values for the options and settings that I prefer having.
For future reference, I had the same issue as you at first then I used a tool called Kheb to monitor the registry changes that happen when I install cabs and customize everything. Kheb can also make diffs between different registry snapshots and even generate OEM packages based on such diffs.
I did apply your REG file, but Resco Registry not work yet, the problem is a SETUP.DLL in to the Resco Explorer CAB, it contains a secret instructions and I believe that is impossible to open it, anyway I saw some cooks with Resco Explorer and Registry in their ROMs, it's obvious that they know the secret.
I also want to know.....pleaseeeee
justintxu said:
I did apply your REG file, but Resco Registry not work yet, the problem is a SETUP.DLL in to the Resco Explorer CAB, it contains a secret instructions and I believe that is impossible to open it, anyway I saw some cooks with Resco Explorer and Registry in their ROMs, it's obvious that they know the secret.
I also want to know.....pleaseeeee
Click to expand...
Click to collapse
Make the package with cab to package software (there is in all kitchens) and then replace the reg and app.dat files with the ones attached and cook it.Works for me.
The idea goes to MusicMonk but his attached file doesnt work for me.
Just use Kheb like MusikMonk suggested; it will capture all of the reg keys that are installed by the setup.dll. You can also look in the setup.dll with notepad and probably see the keys that are installed.
If you're trying to backup you registration info, it's stored in a file in \windows called wmtrigger.dat. All of Resco's registration codes are stored in that file, so if you have several of their apps, that's all you need.
NIKOSXRI said:
Make the package with cab to package software (there is in all kitchens) and then replace the reg and app.dat files with the ones attached and cook it.Works for me.
The idea goes to MusicMonk but his attached file doesnt work for me.
Click to expand...
Click to collapse
I did apply your REG file but not works for me, anyway thanks for your help, mate.
I made a CAB file from the original Resco Explorer CAB, I deleted all files except SETUP.DLL and later run it and VOILA!!! the Resco Registry works !!!!!
Unfortunately I don't need it, I need the secret instructions in SETUP.DLL, I did open it using UltraEdit but I can't find nothing.
try this it should work, but your still gonna need the code as this is not cracked
Thank you, mate, but I found the secret reg keys in the setup.dll file. I used CeRegEditor to create a registry image, later install the cab with setup.dll and I created a image again, and finally I compared the first and second image to detect the differences.
I made a new reg and all works now
Thank you very much mates
fully working resco explorer package
Fixed some shortcuts added rtoday plugin, resco update, task manager that was missing and ftp in previous packages and is attached below.
Of course it needs the usual registration process.
NIKOSXRI said:
Fixed some shortcuts added rtoday plugin, resco update, task manager that was missing and ftp in previous packages and is attached below.
Of course it needs the usual registration process.
Click to expand...
Click to collapse
Have you managed to have in built registration code in it so that you dont have to feed the registration key after the installation?
c_shekhar said:
Have you managed to have in built registration code in it so that you dont have to feed the registration key after the installation?
Click to expand...
Click to collapse
The registration code is in the wmtrigger.dat file in windows folder which is created after registration.
So you have to copy this folder after registration and put it in your kitchen.
NIKOSXRI said:
The registration code is in the wmtrigger.dat file in windows folder which is created after registration.
So you have to copy this folder after registration and put it in your kitchen.
Click to expand...
Click to collapse
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
c_shekhar said:
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
Click to expand...
Click to collapse
All Resco products write registration to one file It's well known for ages and it's no need to discover anything. So if you decide to use several resco products - you should install and register them all and then save the summary wmtrigger.dat - it will be one for all installed Resco-s..... And for sure - system User name should be the same for all your roms - it's also fixed in that file...
One more tip: if you occasionally decide to use cracked resco products - you will get a conflict if you use for example one legal and one cracked program simultaneously in one rom. So better use all registered.
AndrewSh said:
All Resco products write registration to one file It's well known for ages and it's no need to discover anything. So if you decide to use several resco products - you should install and register them all and then save the summary wmtrigger.dat - it will be one for all installed Resco-s..... And for sure - system User name should be the same for all your roms - it's also fixed in that file...
One more tip: if you occasionally decide to use cracked resco products - you will get a conflict if you use for example one legal and one cracked program simultaneously in one rom. So better use all registered.
Click to expand...
Click to collapse
Thanks a lot. Added to my knowledge bank..
c_shekhar said:
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
Click to expand...
Click to collapse
You can use sktracker in your phone.
This program traces the changes in registry and files so if you create a snapshot with the program and then install or register applications or change the options and user settings in applications (you better do it program by program) you can easily find the changes and apply them each time you change your rom.
I apply all mods with sashimi but there are other choices also.
NIKOSXRI said:
You can use sktracker in your phone.
This program traces the changes in registry and files so if you create a snapshot with the program and then install or register applications or change the options and user settings in applications (you better do it program by program) you can easily find the changes and apply them each time you change your rom.
I apply all mods with sashimi but there are other choices also.
Click to expand...
Click to collapse
I used to find the registry part of any cab or software by saving the registry and comparing the one before and after with the help of registry workshop on my PC, but did not know that there exists a utility with which wmtrakker.dat"" type of new file creation can also be found out.
Thanks a lot bro!!!
It's very good
Does anyone know how to backup Resco Customizations ( e.g ToollBar Shortcuts etc ? )

Categories

Resources