Locations of files for packages - Mogul, XV6800 ROM Development

I have a pretty basic question. All of the cab's I've turned into packages for a kitchen, should all of the files be simply dumped into /windows? It just seems like it would turn it into a major cluster..... If I'm correct we just use initflashfiles.txt to tell the Kitchen where to put the files?
Such as:
Directory("\HTCHome"):-File("HH_WEATHER_19small.png","HH_WEATHER_19small.png")
Would that be correct?
Then to call a program, put a copy of the lnk pointing to the executeable in Games, Windows, Programs, or whereever we want it?
Thanks,
Dravor

Dravor said:
I have a pretty basic question. All of the cab's I've turned into packages for a kitchen, should all of the files be simply dumped into /windows? It just seems like it would turn it into a major cluster..... If I'm correct we just use initflashfiles.txt to tell the Kitchen where to put the files?
Such as:
Directory("\HTCHome"):-File("HH_WEATHER_19small.png","HH_WEATHER_19small.png")
Would that be correct?
Then to call a program, put a copy of the lnk pointing to the executeable in Games, Windows, Programs, or whereever we want it?
Thanks,
Dravor
Click to expand...
Click to collapse
i believe initflashfiles just copies, so windows would be as clutterred either way. i prefer to make the application look to /windows rather than another folder, then only 1 copy of the files is needed.
hopefully someone here can correct me if im wrong..

dcd1182 said:
i believe initflashfiles just copies, so windows would be as clutterred either way. i prefer to make the application look to /windows rather than another folder, then only 1 copy of the files is needed.
hopefully someone here can correct me if im wrong..
Click to expand...
Click to collapse
Ok that's fine. At least that makes sense, and backs up what I've seen working with initflashfiles. I'm somewhat suprised Microsoft has not put out a workaround for this.
Thanks,
Dravor

Related

Is there a way I can turn a setup.exe into a .cab file? Any auto install program?

Is there a way I can turn a PPC setup.exe into a .cab file?
Is there any software out there for the WM6 that you can put a bunch of cab files in a folder and it will auto install them all…so I don’t have to do them one by one?
visual studio 2005 & 2008 have a cab maker tool included. It does not require the source files to be created with studio...
Copy
Setup applications that run on your desktop PC simply copy the appropriate cab file to your device. You can extract the cab from the exe. You can also run the exe on your computer, and during the install process the cab will be transfered to another folder on your computer before transferring to your PPC. It is usually in Program Files/Microsoft Activesync/*App folder*, but sometimes it varies. Search your PC for .cab files and you should be able to find it.
There are programs like TAutoInstall (or something like that), SDAutoRun, and maybe one or two others that will run a series of cab files at first boot. You can probably find some discussion of Tautoinstall on PPCGeeks (edit: or try here). Search for threads by Tiermann. It might do what you're looking for.
WinCE Cab Manager is a powerful cab creation tool as well. You might be able to package multiple cabs within a single cab using it. Not sure, never tried. Good luck.
I have been using the activesync method of getting the cab and it works great.
serfboreds said:
I have been using the activesync method of getting the cab and it works great.
Click to expand...
Click to collapse
Hows that?
Program Files/Microsoft Activesync/*App folder*
Click to expand...
Click to collapse
this is the location for the cabs * this is what he's talking about
Copy
So if i dont have my phone hooked up, and i a run exe file, it will create a cab file and place it "Program Files/Microsoft Activesync/*App folder* " and then i just have to go to that folder and copy the cab file?
highflyin128 said:
So if i dont have my phone hooked up, and i a run exe file, it will create a cab file and place it "Program Files/Microsoft Activesync/*App folder* " and then i just have to go to that folder and copy the cab file?
Click to expand...
Click to collapse
No, once you install the executable to your phone (using .exe) the first time, it will drop the cab in the "Program Files/Microsoft Activesync/*App folder*" for future use.
I used to use Tools-add/remove programs within activesync to reinstall these programs that were only .exe, but I learned recently that you could go into the folder above after first install and get the cabs that activesync extracts to accomplish this add/remove feature.
serfboreds said:
No, once you install the executable to your phone (using .exe) the first time, it will drop the cab in the "Program Files/Microsoft Activesync/*App folder*" for future use.
I used to use Tools-add/remove programs within activesync to reinstall these programs that were only .exe, but I learned recently that you could go into the folder above after first install and get the cabs that activesync extracts to accomplish this add/remove feature.
Click to expand...
Click to collapse
I'm running Window Mobile 6.1 and Vista64bit, i dont have a "Program Files/Microsoft Activesync/*App "
Probably different on Vista/WMDC.
Do a search on your computer for .cab files.
highflyin128 said:
Is there a way I can turn a PPC setup.exe into a .cab file?
Is there any software out there for the WM6 that you can put a bunch of cab files in a folder and it will auto install them all…so I don’t have to do them one by one?
Click to expand...
Click to collapse
You should look into Sashimi... it's pretty cool you can just drop the cab files in a directory and it auto installs all of 'em... also has the ability to execute EXEs, REG files, Copy files to root of device, run MortScripts, and xml files too... all part of an automated process.. you click go after a hard reset and it is on its way!
Another nice thing I like about it vs the sdconfig autoinstallers is there is really no maintenance to scripts/etc once you update your software.. all you do is manage the files in a directory structure which is as easy as copy and paste of the cab/etc.
http://forum.xda-developers.com/showthread.php?t=392983
I have searched for the .cab and cant find anywhere that Windows Mobile Device Manger puts them
You can also try extracting the cabs directly from the exe. Use a program like WinRAR to open the exe. There will often be multiple cabs for various WM versions (ie 2003, WM5, WM6, etc), and they are usually not named very desciptively, so a little trial and error will probably be necessary.
WinRar seems to extract the exe's and give me the cabs....THANKS ALOT
This Thread Can Be Closed
Zenoran said:
You should look into Sashimi... it's pretty cool you can just drop the cab files in a directory and it auto installs all of 'em... also has the ability to execute EXEs, REG files, Copy files to root of device, run MortScripts, and xml files too... all part of an automated process.. you click go after a hard reset and it is on its way!
Another nice thing I like about it vs the sdconfig autoinstallers is there is really no maintenance to scripts/etc once you update your software.. all you do is manage the files in a directory structure which is as easy as copy and paste of the cab/etc.
http://forum.xda-developers.com/showthread.php?t=392983
Click to expand...
Click to collapse
Sashimi is BAD A$$, Thanks alot for the pointer
highflyin128 said:
WinRar seems to extract the exe's and give me the cabs....THANKS ALOT
This Thread Can Be Closed
Click to expand...
Click to collapse
how are you getting winrar to extract cabs?
kflipproductions said:
how are you getting winrar to extract cabs?
Click to expand...
Click to collapse
Extracting the EXE's to get the cab's
Not all executables are self-extracting executables. This will only work with self-extracting executables.
If you can't extract your executable with Winrar, the only other option is to run it with your phone unplugged from Activesync, then find the cab on your PC. Again, with this method, not all executables work that way. I have found a couple that I simply COULD NOT produce a cab from.
gc14 said:
Not all executables are self-extracting executables. This will only work with self-extracting executables.
If you can't extract your executable with Winrar, the only other option is to run it with your phone unplugged from Activesync, then find the cab on your PC. Again, with this method, not all executables work that way. I have found a couple that I simply COULD NOT produce a cab from.
Click to expand...
Click to collapse
I've generally found that I can do this with pretty much any setup executable, although I use 7-Zip instead of WinRAR (it's free and fantastic).
As for the Sashimi recommendation, I can't agree enough. The program is pure awesomeness.
Universal extractor i guess is the way to go. extracts all files (cabs) from any .exe or .msi or anything else
Universal Extractor 1.5
Universal Extractor 1.6 Beta (vista)

anyone have .cab of old EzInput?

Hi,
I'm now upgrading for those Roms who dont have any keyboard installed ( I have 16 keys niki), so I can install it from the .cab that DubinBJK provides. So, while that keyboard have the backspace issue, i wondering if anyone can make (or have) the .cab of the keyboard with the old EzInput (v 1.0 I think). Is the same that is in the Tom Godon Rom.
Appreciate you help,
TM
There is one topic about xt9, where i have found cab. But it isn't on first page
Tim4 said:
There is one topic about xt9, where i have found cab. But it isn't on first page
Click to expand...
Click to collapse
Can you help me please? I have done search but really cant find.
I found it.
It's from Niki (20keys). it works (i have tested it)
If you wanna use it on 16key version, you need to change keymapping files (Just put it to windows folder)
Tim4 said:
I found it.
It's from Niki (20keys). it works (i have tested it)
If you wanna use it on 16key version, you need to change keymapping files (Just put it to windows folder)
Click to expand...
Click to collapse
Yes, I want to use on 16 key version, you say I need to change the keymapping files putting it on windows folder? But if a .cab it's to install, how do I do that?
Install it, and put keymapping files to windows folder
P.S. Actually i have extracted this cab by SkTools and puted all files (except keymaping) to windows folder.
I you want, i can extract it for you
Tim4 said:
Install it, and put keymapping files to windows folder
P.S. Actually i have extracted this cab by SkTools and puted all files (except keymaping) to windows folder.
I you want, i can extract it for you
Click to expand...
Click to collapse
The problem is, I really dont know which one are the keymapping files...
So, if you can help me I really appreciate
keymapping files is several .txt files
They contains keymapping info
Just replace it by files from original rom
Have you checked the cab in this thread: http://forum.xda-developers.com/showthread.php?t=342351?
Tim4 said:
keymapping files is several .txt files
They contains keymapping info
Just replace it by files from original rom
Click to expand...
Click to collapse
Tim, but the problem is that. All I see, is one .xml file, and a lot of files without extension. How do I know wich ones are .txt files?
Have you checked the cab in this thread: http://forum.xda-developers.com/show....php?t=342351?
Click to expand...
Click to collapse
No, but I will see for sure
I found this cab somewhere on my computer didn't try it. Hope it works for you.
Tiago Machado - Install cab i gave you and put .txt files to windows folder and import .reg by registry editor (It's from original niki rom (16keys))
P.S. Hope it works
wmn79 said:
I found this cab somewhere on my computer didn't try it. Hope it works for you.
Click to expand...
Click to collapse
Unfortunately, with this one, only type numbers.
Install cab i gave you and put .txt files to windows folder and import .reg by registry editor (It's from original niki rom (16keys))
Click to expand...
Click to collapse
With this one works very good by now
Both cab's were tested in Lilly 1.3 Mannila2D NO KEYBOARD.
Can anyone make (or share if you have it already) a new cab for the second (no need of moving .txt files and import registry file)?

Duplicate File Problem with any kitchen

Hi All,
with all of the kitchens found here, it is noticeable that when adding any packages to the OEM/SYS folders (i.e S2U2) then trying to re-build the rom specially in the process of BuildOS we got many errors that file already exist and then crashes.
after many research i got to know that the package will extract the files in windows folder for all packages on time then while installation, the files will be copied to the proper folders.
here is the problem, once trying to re-build the rom all files will be copied in the same folder.
is there a way to avoid this?
Hi robekia1,
Even I am facing the same problem when rebuilding os.
we will keep waiting for the seniors here to deliver a solution for us.
thanks to whom will help in this regard
I also faced this problem while cooking ROMs, Hey krazy! help please.
I guess, if we could know the file structure from the folder structue before installing, then it would be easy.
hmmmmmmmm, it seems that this problem have no solution as (Finding emulator for cooked ROM)
done the same and working
robekia1 said:
I guess, if we could know the file structure from the folder structue before installing, then it would be easy.
hmmmmmmmm, it seems that this problem have no solution as (Finding emulator for cooked ROM)
Click to expand...
Click to collapse
Hey I have done the same previously I love the s2u2 applications so I have cooked my rom with all 3 apps of s2u2 i.e. S2U2, S2P, S2V.
I created packages from package builder, then copied all files to one folder.
removing duplicates with latest one.
Also I changed the initflash file for the locations which is created by the package creator with the new folders path.
Then also I added the all item tag in XML to detect DSM files of the respective apps.
Make sure you have registry hack for installing third party apps in your ROM packages.
Enjoy... you will get all your S2U2 apps in your ROM.
Right now I dont have the folder I will upload it tomorrow if anyone wants.
Hope this information is useful to you all.....
Please Dooooooo
bhushangahire said:
Hey I have done the same previously I love the s2u2 applications so I have cooked my rom with all 3 apps of s2u2 i.e. S2U2, S2P, S2V.
I created packages from package builder, then copied all files to one folder.
removing duplicates with latest one.
Also I changed the initflash file for the locations which is created by the package creator with the new folders path.
Then also I added the all item tag in XML to detect DSM files of the respective apps.
Make sure you have registry hack for installing third party apps in your ROM packages.
Enjoy... you will get all your S2U2 apps in your ROM.
Right now I dont have the folder I will upload it tomorrow if anyone wants.
Hope this information is useful to you all.....
Click to expand...
Click to collapse
Thnx a ton budy for this information.
really, i can't wait till tomorrow for this folder because i want to see all these modifications whitch greatly will help all ppl here.
please upload it ASAP.
also, what about Cooked ROM emulation? i hope there is a solution up there whitch i'm not aware about.
registry hack
bhushangahire said:
Make sure you have registry hack for installing third party apps in your ROM packages.
Click to expand...
Click to collapse
What you mean by registry hack? it sounds something new for me.
do you mean any registry editor? or it is another OEM Package should be installed along with the ROM?
robekia1 right, all file will be in windows folder, if you put it in the "program files" folder, the files exist in windows folder too, that is will be wasto your phone storage. Avoid put in the program files folder will be increase your phone memory.
Usually the default directory of the CAB file is in the progam file, and if you use OEM creator to that CAB, it will copied to Program file folder and exist in windows folder, to make only in windows folderyou can use this method:
1. edit the initflashdat result of OEM creator, delete all value of program file, or
2. Before you use OEM creator, edit the installation directory of CAB file, use wincab manager to do it, or
3. use wincab manager to extarct the files in the CAB, and registry, after that you can make .rgu, dsm, shortcut, manually and input the shortcut location in the initflash.dat file (I always use this method).
Usually every CAB file have different files with other, and if the have same file it can be same with the SYS file or the author/maker of the CAb is same. you can choose the latest version of that file if it happend.
While cooking even though we separate files inside different packages, but at the time when imgfs.bin is created, all the files go to \Windows folder. Thats why there cant be two files with same name even when they are in different packages.
Now some apps have common dependencies. Like the DirectShow and mHubVO dlls are needed by Youtube, as well as streaming media. Now what happens is, if you take two packages for these, sometimes the author puts the dependency files in both the packages so that if someone uses one package and not the other, it still works. This mostly happens packages that are made by converting a cab to a package. So if you cook these packages, you need to make sure that they are not putting duplicate files.
The same thing also happens with also happens with registry settings. Somtimes, two or more packages update the same regisrty keys in their .rgu files. SO we need to take care of those too and remove the lines that dont apply to the version of files we are actually using in our kitchen. This is a necessary evil and thats why cooking is not a child's play.
Once a ROM is flashed, and phone boots for the first time, the initialization process takes place. Now the ROM cooks have two ways to initialize their packages : using the .provxml files, this works if you have newer OEM* folders like from Elfin or Opal, it basically requires the Autoshortcut.exe file as well as newer HTCUtil.dll. The other way is the older initflashfiles.txt files inside the packages.
The difference between two methods is that using initflashfile.txt you can only copy files and create folders on the file system, but provxml can be used to perform many different things like registry values, applying themes etc.
So using one of the methods you copy your files to appropriate locations. Do remember that this process if done wildly can decrease the availabel free phone memory noticeably. Thats why we sometimes go a bit furthur and do some programming stuff to minimize this. You people sometimes dont even notice what is happening behind the scene.
I tell you one such experience. Google maps is a package that copies all its files to \Program Files\GoogleMaps but i noticed if i dont copy the files by deleting the initflashfiles.txt, and run GoogleMaps.exe from \Windows, it runs just fine. This works in pro user's rom but in Manila ROMs, the Maps tab of Manila looks for GoogleMaps.exe in Program files folder. So i had a choice to either copy googlemaps.exe into program files folder and waste 2 MB of phone memory or loose the functionality of maps tab of manila.
What i did was the third way i thought of myself. I created a .NET application called GoogleMapsStub.exe and what it does is it runs the googlemaps.exe from windows folder and passes all the information to it that manilla passed to it while running it. This exe is copied into the \program files\GoogleMaps folder by using initflashfiles.txt as GoogleMaps.exe. So now manilla is happy that it has googlemaps.exe in its proper place and i am happy too coz the new exe is only 3.5 kb in size You can verify this in v3.1.1 of VanillaManila rom. Look in the program files folder you will get the 4 kb googlemaps.exe, put it on your pc and check its version in its properties, you will get my name there And if you check the windows folder, there will be a googlemaps.exe of 2 MB size and a GoogleMapsStub.exe of 4 kb size.
So sometimes hacks like these are necessary in order to make a perfect roms. ROM cooking is just like food cooking, It may appears to be like just putting the ingredients into a cooker and light up the gas stove and wait for the food to cook. But if you try that for first time, your food will not be eatable for sure It requires a careful balance of salt, pepper and other things to cook a tasty dish I hope i have made myself clear
Wonderful
AMAZINGGGGGGGGGGGG PPL
latest buildos/ visual kitchen has option to delete duplicate file while cooking but
i will make new kitchen in future (not soon) because current kitchen work fine for me and i have lots of other work like android + building to rom from weekly leaked sys of wp 6.5
Thanks ankit360 for the visualkitchen9.7, i'm already trying to use it but the problem is: the ROM generated by the kichen is not working for GENE.
i tried another kitchen for the same ROM and it still working fine, the only problem with it is the duplicate
bhushangahire, i'm still waiting for you to upload your files.
also, what about the reg hacker?
Hi Karzy,
" What i did was the third way i thought of myself. I created a .NET application called GoogleMapsStub.exe " you answered one of my query unknowingly, when I had extracted your ROM, I saw there was GogleMapsStub.exe which was not present in any other ROM I had extracted. So I was wondering what that file was about !!! Now I know what it was.
Thanks a lot karzy for sharing this info.
You have been always good in explaining things indetail, which helps a lot for new comers like me.
I m glad that i am able to help my buddies here.
find the files below...
robekia1 said:
bhushangahire, i'm still waiting for you to upload your files.
also, what about the reg hacker?
Click to expand...
Click to collapse
Please find the files below sorry for delay.....
S2U2 Application OEM folder.
S2APPS.7z (786.47 KB)
Registry Tweak OEM Folder.
Registry__Disable - Security warnings when installing non-certified application.7z (849 bytes)
Please find the link to ROM with S2U2 applications + Antivirus.
WM6.5_Old_21231.7z (51.91 MB)
bhushangahire said:
Please find the link to ROM with S2U2 applications + Antivirus.
WM6.5_Old_21231.7z (51.91 MB)
Click to expand...
Click to collapse
i guess this ROM is for OLD gene???Correct me if i'am wrong...
yup for old
htc3400 said:
i guess this ROM is for OLD gene???Correct me if i'am wrong...
Click to expand...
Click to collapse
yup you are right this rom is for Old ..
If anyone want it for new gene please ping here I will cook it for new also....
Thanks
bhushangahire said:
S2U2 Application OEM folder.
S2APPS.7z (786.47 KB)
Registry Tweak OEM Folder.
Registry__Disable - Security warnings when installing non-certified application.7z (849 bytes)
Please find the link to ROM with S2U2 applications + Antivirus.
WM6.5_Old_21231.7z (51.91 MB)
Click to expand...
Click to collapse
Thanks a Ton bhushangahire for sharing those links.
I appreciate this.
Now, i'm gonna read them character by character

[Q] Need help with NBH

Ok, so here's what I'm trying to accomplish.
I can't stand having the awful standard alarms/notification sounds that are provided on most WM roms, so I went and redid one. The attached file is a Windows notification sound that I've renamed and converted to work on my topaz in place of "alarm2", hence the filename.
In short, I don't want to have to use total commander winCE every time i flash and want to change that file out (I can't overwrite it using windows explorer or file explorer cuz I can't overwrite system files). So i had an idea.
I figured I'd make a .NBH file to flash to the device after I flash my rom on there that ONLY replaces that sound file with the new one (Eventually I'd like to incorporate my custom splash screens into it but that's only a thought at this point). This is where my question/problem comes in...
I've looked around on the forums for some type of "rom builder" or .nbh creator or utility, and I've found alot of things that will convert .nb into .nbh and other features, but nothing that seems to do what I'm wanting.
I'm NOT a developer really; im more of a concept person, and if I can accomplish this without having to learn a language all the better, but I'm not sure where to start with this.
Sorry about the long post, and thanks in advance for any help you can offer!
Hi,
what about using sashimi or UC? this would save you a flash...
you can automate the process. that's what i do when i flash and i want to get back the ringtones.
good luck
Use total commander. it will let you overwrite system files and files that are in use.
Solarenemy68 said:
Use total commander. it will let you overwrite system files and files that are in use.
Click to expand...
Click to collapse
Yea, that's what I've been doing so far... It's still kind of a pain waiting for the Windows folder to load and then replacing it (It can take awhile)... I should've mentioned in the first post that it was an alternative to this that I was looking for, and either a .nbh file or possible a cab file, though I can't see how a cab file could accomplish this since it's replacing a system file while it's in use...

Question one+-latest do it all tool

i found this on a gsm forum thought id share it here
32.33 MB file on MEGA
mega.nz
I have this... its not worked for me so far
This is a windows .bat file that is "protected" and is written to work with Android 11 and half the functions are not the same with the Android 12 ColorOS base version. If the author would have shared it with the .bat file in plain text, someone might have updated it and left his credit and not just stole his work and renamed it.
Not everyone embraces open source ideals.
Yes this work with os11 not for os12
All you have to do is run the exe, then browse to where it extracts the contents to. IE:
c:\Users\<username>\appdata\local\temp
....
the.real.p3y0t3 said:
All you have to do is run the exe, then browse to where it extracts the contents to. IE:
c:\Users\<username>\appdata\local\temp
....
Click to expand...
Click to collapse
You have not dealt with well written .bat file obfuscation. I have the .bat file, but it has been run through a tool that converts the editable ASCII into expressions and different encoded base (x) that are more work to resolve than to re-write the batch file.
Challenge: Make this working executable .bat file plain ascii again.
Your story, tell it like you believe it ;-)
Honestly though, why not look for your self? Ive already done it with this "tool". Not obfuscated at all. If yer having problems finding the files, run the EXE, choose one menu option, go to yer temp DIR and sort the contents by date modified, and with the FILES listed first, scroll down to where it starts listing directories. It will be the first one listed. Have fun!
\\'eird dunno why it didnt attach the file to the previous post. I should have made clear that the file you seek was located in the tmp directory thats created under the parent directory... You seemed to know what you were talking about, so I assumed little to no hand-holding would be needed...
Its worth mentioning that all of these bat2exe tools use the same (or nearly the same..) method for urm ehhh "obfuscation"; IE: upon running the app, it inflates the files to your appdata\local\temp directory. Sometimes the "app" will be password protected, and wont unpack the exe until the correct password is entered. For myself its force of habit to go check my temp dir after running any of these style tool things... And you should too!

Categories

Resources