Modify the contents of a .cab-file - Advantage X7510 General

Hi!
I have a .cab-file in which I'd like to make some modifications, more specifically, I want to add two files to the installation.
I have modified the _setup.xml to include these two files, but I dont know how to make the .cab-file executable on my 7510 after having modified its contents.
Any ideas? I can post more info about the contents, setup.xml or whatever if its needed for further help.
[Edit]
Nevermind, found and bought WinCe CAB Manager, wonderful piece of software!

Related

Executing file from flash-card immediately after booting..?

Hey people on the board!
I'm a relative newbie in this PDA-stuff so I have a question which perhaps (hopefully) is easy to answer. Problem:
I have an application which I run on my Qtek 1010. The application runs fine, but prior to using it, a significant amount of time must be spent on installing and configuring it. In case of battery-faliure, this needs to be done from scratch. I would therefore like the Qtek to execute a script-like file (autorun.exe) which performs this task, immediately after booting.. The file is present on a flash-card inserted in the slot. How do I do this? Where - on the card - do I place the file? In the root? And how do I detect it and run it automatically after a cold-boot?
Any help would be greatly appreciated! Thx!
/Joe72
Its quite simple
Hi there, your problem to fix is quite easy.
If you look in in your windows directory with the built-in explorer, you'll find a directory - either "startUp" or "Autostart" depends on the system language you are using. Here you put a link to the program you're having on card. With every cold- or warm boot it will be executed. :lol:
regards
cimber
On the memory card make a directory named 2577, I believe the pocket pc will look here for your autostart on boot, try it and see. You can try putting a cab file in there or your autostart config file. I am not an expert in this but thats how its done with ipaq navigation system which is an automatic routine using the 2577 directory and I have also seen other software using the same method.
the file should be called 'autorun.exe' in the '\storage card\2577\' directory.
when you insert the card, the autorun.exe will be copied to \windows, and executed with 'install' as parameter.
when you remove the card, it will get executed with 'uninstall' as parameter.
and then removed from \windows.
but this will not nescesarily happen at boot.
just figured out another thing: the number you put in the .lnk file in \windows\startup is completely ignored by windows.
also, if the executable is in \windows, you may omit the path,
you may also omit the extension if it is .exe.
if you specify commandline parameters, your application will get passed upto 255 characters starting from the first non-whitespace character after the executable name.and including any newlines that may be in the file.
Hi!
Thanks for the response. I'll give the methods a try during the day and get back.
Thanks so far - I appreciate it
/Joe72
Hi there (again)!
I have tried the different suggestions with no luck. Perhaps I should have been a bit more specific. What I actually need is to have the autorun.exe run (install) a number of cab-files also on the flash-card. I was - perhaps naively - thinking that there would be a generic tool out there to create this type of autorun.exe file? I am looking for something along the lines of what is being done here:
http://forum.xda-developers.com/viewtopic.php?t=508&highlight=autorun
Only, in the case above, the autorun.exe lauches a specific .cab-file which contains a ROM for the PDA.
Is there a "configurable" .cab-installing autorun.exe out there somewhere? Or should it be written from scratch every time for new purposes?
Hope I make myself clear
/Joe72
yes, it is in the extended rom, processing the config.txt file.
eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
itsme said:
yes, it is in the extended rom, processing the config.txt file.
eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
Click to expand...
Click to collapse
Could you explain that to me in more detail, please? As I mentioned, I am a relative newcomer in this Xda stuff Thanks..
/Joe72
what you are asking for is the autorun.exe found in the extended rom,
look for 'extended rom batch language' on the forum for details.
problem is that the autorun.exe from the extended rom uses the config.txt
pointed to by the "[HKEY_LOCAL_MACHINE\Comm] AutoRunCfg" registry value. which always is '\Extended_ROM\Config.txt"
what you could do, is change the 'autoruncfg' string in the autorun.exe binary in to something else. and then fill your own config.txt path in that registry value.
Thanks - that sounds like the way to do it. I guess I would copy the original config.txt, add my .cab-files, put it on the flash-card and then change the key in the registry to point to the card. Is that how it would go?
Now another stupid question: How do I access the registry? There is apparently no regedit.exe like on my desktop?
/Joe72
Joe72 said:
Thanks - that sounds like the way to do it. I guess I would copy the original config.txt, add my .cab-files, put it on the flash-card and then change the key in the registry to point to the card. Is that how it would go?
Now another stupid question: How do I access the registry? There is apparently no regedit.exe like on my desktop?
/Joe72
Click to expand...
Click to collapse
Managed to access the registry using Windows CE Remote Registry Editor. But whooops.. After a cold boot, the registry is reset to factory settings?! Hence my changes of the path to config.txt are also lost..? What to do?
/Joe72

Create a Softwarepackage?

hi everybody!
i want to create a software package with different programs included.
there are a lot of cab files which i want to put in only one setup file,
so afterwards i just have to install this one file.
is there a tool or something which is able to realize this?
You can do this using program like WinCE CAB Manager (www.ocpsoftware.com)
yes but when i try to import files, the app generates a new file and doesnt import all into one file..
I think you are trying to import CAB files inside another CAB file?
i want a routin that i only have to install one cab/setup file which includes all apps i like, instead of installing all per hand
Use the WinCE CAB Manager above, extract all the files and registry entries (for each CAB that you want to include), and put it all into a single CAB file. You have to do that manually though.

CAB File for different Devices

Hi folks
I am a newby and I have a general question for the CAB files for windows mobile devices.
Is it possible to create a CAB File which contains different sections for different devices.
For example my Cab file should create a few registry entry. Registry entry 1 to 5 is for HTC device, registry entry 6-10 for Samsung devices and 11-20 for all device.
Is there a possibility to create a CAB file who is creating the registry entries like I wish?
Cheers Tom
No. Cabs use to have support for different processor types like MIPS and SHA but today everyone uses ARM.
To do what you want you need ether to use an exe or to put a setup.dll in the cab that will recognize the device via its OEM string (SystemParametersInfo) and write the needed registry.
Is there some information available how to use or create a setup.dll file?
Cheers Tom
CAB and DLL files
You will find the DLL files that may be missing or corrupted on your computer. You can free download on internet at no cost! It’s very useful. If you're using Windows XP or Windows Vista, then your working system has fixed support for opening CAB files. However, if you right-click on items in a CAB file, you won't see all the same options you'd see for a file in a usual folder. This shows that it is not a real folder.
Hi Smithmark
I do not understand you post. I think you are talking about something else.
Please read my question above.
cheers Tom
This will tell you everything you need to know provided you can code in C/C++.

OEM Package making question

I have a cab with the following extentions
_setup.xml
JETBTC~1.001
JETBTH~1.000
JetBTHFix.002
JetBTHFix.999
I added the .dsm & .rgu files
I edited the _setup.xml file to redirect the Shortcut to a different folder.
Is that all I need to do?
Will it work puting it into an OEM folder now?
Can I remake it back into a cab file? (How do I make a cab file)
Thank you
You can't open a cab with a simple unzip program (which appears what you have done). You have to use a program that can pull a cab apart. In HyperCore there is a free utility that will do this (sorry, not on my computer with a kitchen so I don't remember what its called, but its in the tools and/or panel area of HyperCore). You can use Cabwuz (demo version) to see what I mean also.
MSCEinf
Its a tool called MSCEInf.exe, Windows CE CAB Analyser. It opens up Windows Mobile .CAB files and creates the original files and installation options (registry changes, shortcut creation etc).
http://www.codeppc.com/telechargements/msceinf/msceinf.htm
Andy
Ok I got the program up and running, but not sure how to use it. There seems to be no help files.
Anyone know how to use this. Can you give me a quick run though.
All that MSCEInf.exe does is extract the original files and settings from the .CAB file. What you should do is extract the files to a folder, then if the XML button is available click it and then look at the Registry Keys and Shortcuts tabs to see what shortcuts you need to create and what settings you need to add to the .RGU file. If the XML button isn't available then click the 'RTF Document' tab, this contains all the settings but is a bit harder to cut-&-paste from.
It is probably a good idea to look at on existing OEM package to see what files are included, what the shortcuts look like and what the .RGU file looks like.
HTH
Andy
Little more help.
Ok need a little help still.
This is what I have done.
1) created a folder with in the OEM folder called JETBT
2) Opened Msceinf
3) Loaded my cab file
4) Changed "Use Folder Name" to NO
5) Pressed "Extract Cab files with original names to a folder"
6) Extracted them to the JETBT folder I credated.
Now this is where I am at.
I have the following 5 files.
_setup.xml
BT HFP Extension 1.31.inf
JetBTConfig.exe
JetBTHFx.999
JetBTHFx.dll
I know I need to create a .dsm and .rgu file
the .rgu file is where I add reg entries
I also know I need to make a inirflashfile.dat
which is where I have it move the .ink file.
First how do I make a .ink file.
Then is this all I need to do?
Does the OEM folder us the info inside _setup.xml ?
If it does can I simply edit that file. Inside I see where it makes and moves the .ink file
And where it adds the reg info.
I could simply just add the info into that file.
and then create empty .dsm and .rgu files.
So what do I need to do? Am I missing any steps.
there are other cabs I need to edit aswell.
Thanks for your help.
? Anyone? PLEASE
Read my OEM package tutorial. 95% applies to all phones and Ervius Package Creator is the greatest thing to OEM packages since sliced bread
Thank Man!

open and edit cab files

Hi!
I want to edit a skin package for the program "Tengo Thumb" by myself.. I have a cab file with a skin inside it but when I open it with winrar the files don't have any file-endings.. I want to get to those pictures and change them to something nicer.
Any clues?
You can install the software, take out all files you want to edit from the folder they were installed to, and then replace them with the edited files. Sounds easy, doesn't it?
This is what I do when I edit the resources of various EXEs and DLLs - sure the same will work for images.
You can afterwards repack the installed program using, for example, SK Tools (Installed Programs - Marked items - Make cab) and get yourself a working installer
There might be better and more professional ways to do the same - if anyone knows, please educate us
You could use a .cab editer like Cab Manager. With that, you can extract and add files, and then re-save the new .cab file.

Categories

Resources