[Q] Create cab files from installed application - XPERIA X1 ROM Development

Hi..i've already search for a topic regarding to this, and most of the findings only talks about how to edit it or combine it and such that it will be installed automatically.However, my main question is that how would i make/create a cab file for applications which had been installed into the phone?as there are some application which i had updated it through the phone and it will take some time if i intended to install it back in case i've formatted my phone. So any help would be appreciated and if there's somewhere it had been discussed before please show me the way..thank you

Anyone? Need some help here. Thank you.

It's not completely impossible, but very impractical.
To "cab" (to make it a verb) something, you'd need to know every single file the program uses (sometimes, applications install dll's into the windows folder) and every registry key as well. You'd have to gather all these files and then create a new cab and import them to the proper paths.
I believe SKTools has an option to view what files a program uses.
It's next to impossible for applications that are installed through an installation DLL in the cab - it's hard to track what exactly changes when you install these apps.
Best way to do it though - find the original cab. You could try to combine cabs, but it'd get messy, best use an automatic cab installer then.

Thank you
Thank you for the reply. From ur opinion it is indeed difficult to find the changes made especially with the updates involved. Thank again.

Well it is really simple, just have to know if it has any keys in the registry, what dependencies it has like any dll or other things and then you use visual studio and make a smart device cab ant put in there the files in the folders needed, the shortcut and the key registry you compile the cab and in less then a minute you have a cab

Related

Can I import a *.reg file into registry?

I have tried using several registry apps to successfully export [HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Launcher] belonging to a previous Hutch 3 ROM.
I now want to re import these keys into my newly installed Duttys 6.1.
How do I do this?
Scuse the newb question (duck for cover) but on a PC you tap the *.reg and it will import into the registry. On my Kaiser running Duttys 6.1 I have PHM_Regedit but Import option is greyed out.
A search did not resolve it so any help would be appreciated.
logger said:
I have tried using several registry apps to successfully export [HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Launcher] belonging to a previous Hutch 3 ROM.
I now want to re import these keys into my newly installed Duttys 6.1.
How do I do this?
Scuse the newb question (duck for cover) but on a PC you tap the *.reg and it will import into the registry. On my Kaiser running Duttys 6.1 I have PHM_Regedit but Import option is greyed out.
A search did not resolve it so any help would be appreciated.
Click to expand...
Click to collapse
Install FdcSoft's Taskmanager (it has a built in Regedit), by DotFred. In there you can associate .reg files with it. Then just run them to import.
Great I'll grab it. Thanks Dave I really appreciate the help. I know you all get sick to death of our newb questions.
logger said:
Great I'll grab it. Thanks Dave I really appreciate the help. I know you all get sick to death of our newb questions.
Click to expand...
Click to collapse
Dont worry. I spent 10 minutes trying to use PHM before I gave up.
Dot Fred's TaskManager is a kick ass task manager as well as a reg editor (amongst other stuff).
P.S. Easiest way to associate is: Open TaskMgr, tools, options, Create RegEit Shortcut. This will ask do you want to associate.
Cool I can see how to do all that now thanx.
Only hiccup is I can only run it from my Storage card. I cannot work out how to copy it to my \Windows folder. I cannot work out how to delete the existing basic taskmgr.exe that installed with Dutty's. I guess this is because it is a system file. If I try and copy and replace I get error message saying not possible. Whats the trick here?
logger said:
Cool I can see how to do all that now thanx.
Only hiccup is I can only run it from my Storage card. I cannot work out how to copy it to my \Windows folder. I cannot work out how to delete the existing basic taskmgr.exe that installed with Dutty's. I guess this is because it is a system file. If I try and copy and replace I get error message saying not possible. Whats the trick here?
Click to expand...
Click to collapse
Don't know. I just leave the exe in My Docs, and run it from the shortcuts.
Okay. Will do same. thanks..
Resco Explorer will also do it.
To dotfred from your SD Card, do this:
Place the .exe in you \Storage Card\Programs folder. With your desktop PC, navigate to \Windows Mobile Device\My Device\Storage Card\Programs & right click on the exe file. Select create shortcut. Move the shortcut to \Windows\Start Menu\Programs using desktop pc.
Voilla! you are done, go check Programs & it's there.
this is the steps i usually take when entering in a reg file. I use resco explorer for all this. I double click. Then I make sure I close resco through the menu exit and not the X button. Then I continue to play around with my phone for a while opening up menus and stuff. Then I soft reset. Doing these steps, I for sure get my stuff to work. There might be some unnecessary steps I take, but I end up with what I want. Many people have trouble keeping their registry stuff to stick. The steps I take, I never worry about that.
GSLEON3 said:
Resco Explorer will also do it.
To dotfred from your SD Card, do this:
Place the .exe in you \Storage Card\Programs folder. With your desktop PC, navigate to \Windows Mobile Device\My Device\Storage Card\Programs & right click on the exe file. Select create shortcut. Move the shortcut to \Windows\Start Menu\Programs using desktop pc.
Voilla! you are done, go check Programs & it's there.
Click to expand...
Click to collapse
Thanks for the tip. Was not aware you could make shortcuts this way. Running from the card appeals because the .exe will still be there after reflashing a new ROM and I will only need to move/copy the shortcut. Being a newb I have been somewhat reluctant to run apps from the card but I am gathering that is is a quite an acceptable thing to do.
Is there a way to place registry keys inside a CAB so that they will get imported when the CAB is launched? Whilst the above DotFred association method works a treat for me with ".reg" files I would like to find a standalone method to import registry info. So that I can pass a single file to someone else and without any extra config they can import the contents into their registy.
definitely. There are a lot of cab creators where you can just enter in your reg key and will create your cab. Someone recommended me this program. I really like it.
http://www.aperitto.com/content/view/14/159/
thomassster said:
definitely. There are a lot of cab creators where you can just enter in your reg key and will create your cab. Someone recommended me this program. I really like it.
http://www.aperitto.com/content/view/14/159/
Click to expand...
Click to collapse
Thanks for the link thomasster. Does the job well. Probaly an overkill (and therefore overpriced for what I need), but I got it to work OK. Also from using it, I learnt that the process simply converts the registry keys to provxml. So now I am looking to manaully create the "_setup.xml" and then use iexpress.exe in Vista to create the CABs.
Is there a way to undo changes made by import .reg file?
I imported a reg file using DotFredd's Taskmanager. Now I want to undo it? Is it possible? How?
Thanks

How to merge multiple .cab files into single .cab file

Hi,
I am looking for a utility to merge multiple small ( free ) utilities into a single .cab file to automate the installation; just to ease the installation process after the hard reset or ROM upgrade.
Though i tried Win CE Cab Manager but unable to achieve that functionality - its look like to me that i am missing something somewhere.
Regards.
I'd like to know this too...
Does this help? Not used it myself
http://forum.xda-developers.com/showthread.php?t=392983
mic_888 said:
Does this help? Not used it myself
http://forum.xda-developers.com/showthread.php?t=392983
Click to expand...
Click to collapse
Thanks mic for the link... But according to that software ... one have to place all the required cab files in a specially designated directory and software start installing the files from there one by one...
But; what i am looking is a software that creat a single .cab file which includes all the required ( individual ) cab files along with the parameters e.g. installation location ( Device or Storage Card )....
sashami is the best solution which was actually inspired by a script called autorun back in the days of win mo but only way to do a auto install of cabs or all one one would be to attempt and cook into you're own rom or see if it's possible to cook all cabs into 1
Maybe extract all cabs with ini or XML file. Merge ini or XML place all extracted components in same folder and use cab building program to build cab from ini/xml...
Maybe.
This is the best thing I have found........not really an app per se.
What is UC? It is a feature contained in UC capable ROMs. A UC capable ROM extends initial customization to your SD card so you can load cabs and install XML files that are located there too. What this means is that once you get your customization scripts right, you can flash any UC capable ROM and all your apps and settings will be restored as part of the initial customization process whenever your SD card is inserted in the slot.
http://forum.xda-developers.com/showthread.php?t=366337
I have been using Slueth's ROM and this UC method for quite a while now and it works fantastically. Takes a little effort but anything worth it's oats will take atleast a little effort.
http://forum.xda-developers.com/showthread.php?t=366284
I just come a across while searching, here is another solution:
http://www.pocketpctoolkit.com/
this should not be a advertisement, because it is not freeware, but a suggestion.
you can add cabs and the program builds an desktop or device installer and merges the cabs (and other files). the device installer is a exe not a cab....
if you look deeper in the internet you find a full time solution...
hope it helps...
chipsxj said:
This is the best thing I have found........not really an app per se.
What is UC? It is a feature contained in UC capable ROMs. A UC capable ROM extends initial customization to your SD card so you can load cabs and install XML files that are located there too. What this means is that once you get your customization scripts right, you can flash any UC capable ROM and all your apps and settings will be restored as part of the initial customization process whenever your SD card is inserted in the slot.
http://forum.xda-developers.com/showthread.php?t=366337
I have been using Slueth's ROM and this UC method for quite a while now and it works fantastically. Takes a little effort but anything worth it's oats will take atleast a little effort.
http://forum.xda-developers.com/showthread.php?t=366284
Click to expand...
Click to collapse
i flash phones like everyday. using that method is for doing a couple of cabs. if you are trying to do like 100 cab files it will take a loooooooooooong time.
wince cab manager
if you just want to make one cab i would use Wince Cab Manager (OCP Software) (google it) to extract all the neccesary information from all the cab files.
then re-import all the information (links, registry, files etc) into a brand new Cab File.
so long as you keep all the extracted cab files separated this should be easy enough, but time taking.
Hope that helps. =D
Dan

Can you help me with SASHIMI?

Hi all, can anyone help me with the software name SASHIMI?
http://forum.xda-developers.com/showthread.php?t=392983
I didn't want to ask in there, because most of my questions are pretty basic and sound dump to others
Anyway, as I understand from the video tutorial (which is still confusing for me), All I have to do is add all the CAB file I want the software to install in the "CAB" folder and all the registries in the REG folder. Then I have to create a filebackup.ini to tell the soft what I've backup.
- My question for this is how do I know which registry to backup and where they are. Let's say I have an APP1.cab to install and that APP1.cab need to be register... where do I find APP1 registration information?
Once the registries are found, all I have to do is to add the CAB in the CAB folder and its registries in the REG folder, right? Then when come to restore, I have to restore each CAB and each Reg or it will do by itself due to my filebackup.ini?
Try posting to benghali's sashimi thread. He's a great help and quick with answering your questions.
Don't feel bad, I was confused too and finally decided not to even install it.
Responding here because OP sent me a PM.
In the future please post in the thread because all questions will be answered and it is ALWAYS better to post in the original thread then to start a new one.
The questions you are asking have actually been asked at least 3 or 4 times already and are in that thread.
In addition, your questions about where to put the .REG file are covered in the documentation.
Because I'm in a good mood, I will quickly answer here.
1) I can't tell you where the registry entries are stored for your program...that is different for each program. Use a registry export and compare before and after.
2) Once you have the .reg file with your entries you can either put it in the \REG folder or you can name it the same as the .CAB and put it with the .CAB file. This is called Tandem/Bundling and is covered more in the documenation.
Please post additional questions in the main thread.
Mods can lock this one.
thanks
thank you... please lock this post
REG files
Hi All,
I hope nobody shoots me for asking and tells me to do a search. I'm a bit in a hurry right now, so i'm just typing quickly.
How can I create or obtain the REG files for the different applications I install?
Resco Explorer, iSilo, pocket player, pocket artist, SPB Plus, SPB backup, SPB wallet, etc. I want to place the REG files in sashimi so that they automatically get registered and so that I don't have to manually apply the serial numbers. Any help would be great.
Thanks in advance, if no one wants to sit here and give step by step instructions i will understand, but atleast a link to the correct thread would be helpfull.
Raudel
aaaaaaaaaaaaaaaaaaaaaaaah
I have no idea how to use sashimi to install and register my applications. Well I do know, I just don't know how to get working REG files. Do I have to create them? or do I get them from some directory. I've seen most of the videos already.
If there is another forum with info, please direct me to the right thread, I tried doing a search and besides this thread I didn't find anything.
Thanks in advance.
Raudel
Sorry, confused you for the OP.
ChumleyEX said:
Sorry, confused you for the OP.
Click to expand...
Click to collapse
I understand, No Problem. I'll edit my post so no one else has to read the small missunderstanding.
I would still appreciate some help with the REG files. How can I get them or create them so that sashimi can apply the serial numbers after installing my applications?
Raudel

Is there a program for Automatic Registry edits??

Hey, i had a question, the TP has got many tweaks, you have to manually put them into the registry, my question is: is there a program that can do al the tweaks that i want automatically? i know there are some programs like advanced config, diamond tweak etc etc. but i only want a to put all the "Queries" in 1 txt file just like SDCONFIG.TXT. sorry for my english! hope someone can help me or make a program like this! i think a program like this could help many people, especially the people who are afraid of editing the registry.
thnx in advance
Using an XML file, you can accomplish this with SDCONFIG.TXT and a provisioning XML, see this post: http://forum.xda-developers.com/showpost.php?p=1896955&postcount=2
Da_G said:
Using an XML file, you can accomplish this with SDCONFIG.TXT and a provisioning XML, see this post: http://forum.xda-developers.com/showpost.php?p=1896955&postcount=2
Click to expand...
Click to collapse
ok thnx for your help!
now can anyone make a XML files with the best working tweaks for the TP ???
Use Diamond Tweak
You could use advanced confic and then select export provisioning or something like that and then select witch items you want to export and then put that into your sdconfig worked perfect for me using sashimi witch does the same thing basicaly as sdconfig just easier to add and delete cab's and whatnot.
If you know all of the registry tweaks, you can use my QuickCab utility to create a cabfile. Just put your registry tweaks in the cab file, and install it like a regular program.
Here's the thread and I'm working on a new version that should be ready for testing soon.
IABovine said:
If you know all of the registry tweaks, you can use my QuickCab utility to create a cabfile. Just put your registry tweaks in the cab file, and install it like a regular program.
Here's the thread and I'm working on a new version that should be ready for testing soon.
Click to expand...
Click to collapse
nice going to see that topic!
You can export/import also parts of the registry with Resco Explorer and Registry add-in. Best software for PC I can recommend is Registry Workshop to join/split/compare registry entries,etc...

e-mail accounts configuration after hard-reset

I have several e-mail accounts configured in Diamond Messaging and I lose a lot of time everytime a change ROM to put again user, password, pop3 and smtp servers, configuration, etc.. in each e-mail account
Is there any way (program, save Register keys, ...) to make a copy of the e-mail configurations and restore them automatically after changing ROM?
I have tested with SPB Backup and PIMBAckup, but it does not save/restore the settings of e-mail accounts.
Thank you very much in advance.
Search for "Makisu". This is what you want.
Makisu
Thank you. I just have download Makisu, but I am not able to find documentation (video , documentation and creenshor links are not valid).
Please, can you explain me what and how does it work or send me any documentation or tell me wher can I find it.
It seems to create xml files with the configuration, How do you import these files to Windows Messaging from Diamond?.
Thank you.
I use Sashimi, which in turn uses Makisu to script these details, after a bit of fiddly setting up works a treat now.
reg files
I have get a lot of information about Sashimi but i think that it is useful if you have reg files for your programms and so you do not have to activate and to configue them everytime.
But I think that it is a little bit difficult to get reg files.
Is it enought to copy HKEY_LOCAL_MACHINE\Software, HKEY_LOCAL_MACHINE\Software\Apps, HKEY_LOCAL_MACHINE\Security and HKEY_CLASSES_ROOT\CLSID Register keys or it is dangerous?
Must I have to copy any other one Register key?
Is ther any information about reg for activation code and configuration for common programs?
Thank you
The Sashimi site has good tutorial on how to use windiff and PHM Regedit to find the changes to the registry.
It's not always the easiest, but it's not too hard.
I would advise not backing up large swathes of the registry and restoring as it may differ between different ROMs.
montarelonf said:
Thank you. I just have download Makisu, but I am not able to find documentation (video , documentation and creenshor links are not valid).
Please, can you explain me what and how does it work or send me any documentation or tell me wher can I find it.
It seems to create xml files with the configuration, How do you import these files to Windows Messaging from Diamond?.
Thank you.
Click to expand...
Click to collapse
Makisu video and links to website are here:
http://www.youtube.com/watch?v=iRJ9-LaddRk
Using Sashimi
Thank you.
I have learn a lot and now I know, more or less, how to use Makisu ans Sashimi. I think that it is a very useful tool.
I have some doubts:
1.-Programs that i put in exe folder are installed in device or in storage card ? Can i chooose it? How?
2.-How can i use it to copy files to Storage Card? Root folder is only for copy files in Device, is it? I say this because if you have a program installed on storage card and you reinstall it after a hard-reset, this new installation overwrite all your previous files and, perhaps, you want to maintain your configuration in your old ones..
3.-Some times during Auto cab installation a screen with error from Sashimi appears. I think that it is because the cab ask for an user action (license agreement, reset,...), how can I solve this problem?
Thank you
1) - Unsure, anything I install are CABs and in the CAB file.
2) - CAB/SD 'should' install it on the SD card, but I attempt this with S2P and it still installs it on the Device. Most config lives in the Registry and you can import this as well.
3) - Not sure I don't get this error. What CAB is it that fails.
Sashimi
Thank you.
1.-I am going to try to get all programs in cab
2.-I will copy these files directly
3.-I thnik that this problem is cause by the txtLicense string of SASHIMI.mscr that is missing for my language (spanish), i think i have to put txtLicense="licencia" just in spanish "if" section of SASHIMI.mscr (about line 250).

Categories

Resources