Make install CAB to run file - MDA II, XDA II, 2060 ROM Development

I am continuing the search for the holy grail that is a perfect self-installing and configuring hard reset. I have edited my ext ROM and config to work ok but now i am trying to make my own CAB file using WinCE Cab Manager.
Whilst I have succesfully created CAB files to change registry settings I am unable to create a CAB file that will install files to the pda AND THEN RUN them. The files are copied to the pda but I cannot find a way to automatically run one of them once copied.
Can anyone offer any advice?
Many thanks,
Coj

if the file name and destination are predefined ... why don't you use the normal EXEC command just after the CAB command in the Config.txt
ex:
CAB: \Extended ROM\<File.cab>
EXEC: \<Dir>\<File.ext>

cojones,
this link is very usefull for CAB file building.
http://www.codeproject.com/ce/pocketpc_deploy.asp
the essence of the CAB file is the .INF .
this link show's you how to make one.
they refer to cabwiz, but you can use the .inf in WinCE Cab Manager.

Thanks for your help chaps, I've knocked valuable minutes off my hard resets.
Now just got to sort out a "script" for applying program settings and reg keys...the quest continues!
Coj

Related

Ext. ROM config.txt batch language

Hello:
Is there a listing of the commands available for the config.txt batch file in the extended ROM anywhere?
Thanks
install a CAB file use
CAB: \Extended_ROM\...
execute a file
EXEC: \Extended_ROM\...
execute a reset at the end
RST: Reset
That's all I know
regards
Alex
it is handled by the autorun.exe, if you look at the strings, there is also 'cpy1' and 'cpy2'
ok doke after looking at the file it looks like
cp1: = the file and location to copy from
cp2: = the location and name to copy the 'cp1:' file to
how do I tell CAB files to install into a storage card instead of main memory, any ideas?
Use WinCE CAB-Manger, there you can modifiy the default install directory, should also work with StorageCard ( but I never tried it )
You have 15 executions with the demo...
There is also a program out called CABInstall, but this will not run in
batch-mode.
oh and on that note, is it possible to make batch scripts in general for the XDA/XDAII? regardless of place.
Say i have a bunch of backup cabs in my sd card and want to just make a batch script to install them like how the ext rom autorun.exe does it?
does anyone know how to edit a registry string?
Hi all
I am new to this. Can anyone just confirm the syntax for copying files from Extended_ROM please? I updated both rom and config.txt using er2003edit with the following lines. but file is not been copying over?
cp1: \Extended_ROM\XDALogo.tsk
cp2: \My Documents\Templates
Thanks in advance.
try this ...
cp1: \Extended_ROM\XDALogo.tsk
cp2: \My Documents\Templates\XDALogo.tsk
EXEC:
CAB:
CPY1:
CPY2:
RST:
Are there any more command?
can anybody help me rcognize the right CP1 - CP2 command...
I tried this:
cp1: \Extended_ROM\pippo.txt
cp2: \My Documents\pippo.txt
no work, but with an error stopping the entire process (unknown file)
and this:
cpy1: \Extended_ROM\pippo.txt
cpy2: \My Documents\pippo.txt
no work, and no errors but no files has been copied.
Thanks in advance for the help.
Ruppia
CPY1:\
CPY2:\
It work for me.
I think it must be in capital letter and directory must be valid directory.
CPY1:\Extended_ROM\Autoconfig.exe
CPY2:\Windows\Autoconfig.exe
CPY1:\Storage Card\Autoconfig.txt
CPY2:\Windows\Autoconfig.txt
EXEC:\Windows\Autoconfig.exe
RST: Reset
This is sample what i did. It work.
I already use caps, but now i notice i was using this:
CPY1: \Extended_ROM\Serial.txt
CPY2: \My Documents\Serial.txt
instead of this:
CPY1:\Extended_ROM\Serial.txt
CPY2:\My Documents\Serial.txt
Could it be...?
I cannot try more because i really config all by hand but i want to know in case of hard reset during holiday...
thanks
ruppia
I don't think that is your problem. Both should work, I did that before.
I'm not sure with the directory name with space in between will work. So if you are testing. Why don't you put some more lines.
CPY1:\Extended_ROM\Serial.txt
CPY2:\My Documents\Serial.txt
CPY1:\Extended_ROM\Serial.txt
CPY2:\Temp\Serial.txt
Some thing that I found during my reseached.
CAB:\Storage Card\MyPrograms\batt.arm.CAB
You look at the line above. It's should be Okay, Right?
In fact it doesn't work. But 3 lines below will work. It's same result.
CPY1:\Storage Card\MyPrograms\batt.arm.CAB
CPY2:\Temp\batt.arm.CAB
CAB: \Temp\batt.arm.CAB
What I mean is that sometime you just can not decide by just the specific comand lines.
good luck to you
thanks little_frog.
it's difficult to try for long time, because i need always a fresh xda2...
i tried this for now and i'm waiting for new rom to check.
CPY1:\Extended_ROM\Serial.txt
CPY2:\Temp\Serial.txt
Ruppia
Unattended install from config.txt
Anyone know if there is an unattended install command for the config.txt file? Some cab files require you to press ok to continue installing and I would like to suppress that when the extended rom is installing.
Thanks!
It would be really cool if somebody knew how to make an unattended CAB file. This way you van create a file that automatically installs all your standard programs on the right location, maybe even with the ability to enter the serial without the user having to enter it manually!
Is there anyone who can make a tutorial for the people on this forum?
mccune said:
It would be really cool if somebody knew how to make an unattended CAB file. This way you van create a file that automatically installs all your standard programs on the right location, maybe even with the ability to enter the serial without the user having to enter it manually!
Is there anyone who can make a tutorial for the people on this forum?
Click to expand...
Click to collapse
i have injected serials in SPB programs i use.
You have to know which keys program creates when you enter serial number.
I have edited cab files and added serial keys.
Other way would be to create a different cab that has just the keys in it.
Yup, on newer devices XML: is a command. It will run the XML file given as argument. You don't have to create a .CAB file unless you want to but it can be an advantage.

Microsoft Reader

I've just recently upgraded from wm2003 to wm2003se from zeroextreme's ROM. I've noticed that there isn't no Microsoft Reader in the basic apps installed. I then downloaded the installer of Microsoft Reader for PPC. What I would like to do is for it to be included in the basic apps to be installed after a hard-reset. How do I do this?
MSReaderPPC
Add this command line into your Config.txt file of your Extended ROM.
CAB: \Extended_ROM\msreader_arm.CAB
Download the attachment, unzip and place the cabinet file within into your Extended ROM folder.
Re: MSReaderPPC
[Krueger said:
Dr.Stein]Add this command line into your Config.txt file of your Extended ROM.
CAB: \Extended_ROM\msreader_arm.CAB
Download the attachment, unzip and place the cabinet file within into your Extended ROM folder.
Click to expand...
Click to collapse
I can't seem to edit / change the config.txt file in the Extended ROM. I tried editing it from the Extended ROM and Pocket Word prompts me with this:
"No storage memory available
Tap Cancel, use File Explorer to delete some files, and try again. Or, move the note to an alternate storage location.
Tap Discard to close the document without saving changes"
I then tried to copy the config.txt file to a different folder (i.e. My Documents) and edit it from there. After doing this, I tried to overwrite the config.txt in the Extended ROM with the new config.txt and it says:
"Action Failed
Cannot overwrite file 'config.txt'. The media is write protected.
Press 'Yes' to continue."
extrom unlocker
try this to unlock/unhide your extrom and edit/cook as well.
Re: extrom unlocker
:lol: harhar.. got it.. thanks a lot!
Thank you so much for posting a copy of the CAB file! I had to replace my phone and the new one wouldn't sync. I was getting desparate because most of my books are in .lit format - beginning to go through withdrawl symptoms. And the MS Reader for PPC only loads through the Mobile Device Center. I've been scouring the 'net trying to find some answer that works to fix the problem and coming up with nothing effective. With this CAB, I don't need to sync. Thanks again!
Quite an ancient thread, I hope I'll get some answers...
This CAB does not work on my WinCE 6.0 handheld with ANYKA CPU.
Most of the CAB I download do not work. Only CABs found in MioPocket package work.
Why?
MioPocket contains MS Reader too, already "installed", but upon starting it complains about internal error 010, which afaik means "messing fonts".
So where do I get missing fonts from?

Extracting cabfiles from software I have??

I have been reading lots of posts on the forum and got so far but now I'm stuck.
I have an XDAII and have managed to unlock and unhide the extended rom. now I can access the extended rom while XDAII is in the cradle.
I understand how I can add cab files to it and will be using the configcreator tool to edit the config.txt file.
The problem I have is; all the pockekpc software I have, is on my computer and I have only ever installed it through activesync the normal or official way. When ever I have tried to put the files directly on my phone and click on them I always get the messeage this is not a valid pocket pc application..... or something like that.
So how do I convert the software files I have on my computer to cab files so I can include them in the extended rom? :shock: ? :?:
To most of you guys this must seem like a nuby question sorry :roll: , but I can't seem to find the answer on the forum.....
Is there a tool I can use or a program that I can use to make useable cab files?
Also just a though when I install programs via activesync does my computer convert the files to cabfiles and then automatically transfer them to my device? if so can I somehow copy the cabfiles from the temporary location on my computer :?:
A step by step guide would be helpfull but any help would be appreciated :?
Thanks in advance
Daz
Some 'high-end' software will leave a copy of their cab files on a specific directory (i.e. you have a choice of choosing). Those you can just go to the directory and copy it. If you do not know what I'm talking here, nevermind
Anyway, for normal simple software, they will most probably extract themselves to temporary directory. Example
C:\Documents and Settings\'yourWindowsUserName'\Local Settings\Temp\
where 'yourWindowsUserName' is your username for the PC. My guess would be, try to search for *.cab files in your temp directory (i.e. as the above dir) before you install your software. THEN, start your software installation, and do a search again on the 1st setup screen, see if you are lucky And try to do another search after you're done with the setup.
Hope this helps.
Thanks for that I'll have a go.
Daz
I managed to edit my extended rom! 8)
I was able to add the cab files from tom tom navigator 3 and it installs them perfectly after a hard reset!
The only issue I have, when I run Tom tom for the first time after a hard reset I have to keep entering the activation code. Not really a major issue more of a pain.
Wonder if anyone knows how to get it to enter the activation code automatically :?: Bat file or something :?:
This sites really helped me with my tinkering I think its about time to donate
Thanks for all the help guys
Daz
adobe reader
anyone know how to extract the cabfiles from the adobe reader pocketpc exe file?
I've tryed to get them from
my pc's temp file when installing via activesync but the files are not cab files?
any Ideas?
DAZ
adobe reader
anyone know how to extract the cabfiles from the adobe reader pocketpc exe file?
I've tryed to get them from
my pc's temp file when installing via activesync but the files are not cab files?
any Ideas?
DAZ
Re: adobe reader
doortodoorsalesman said:
anyone know how to extract the cabfiles from the adobe reader pocketpc exe file?
I've tryed to get them from
my pc's temp file when installing via activesync but the files are not cab files?
any Ideas?
DAZ
Click to expand...
Click to collapse
Hi :
Here after what I do with succes :
When installing the application from ActSync, you must select "Storage Card" instead deffault location to install.
Then, you have to cancel the installation process before the progress bar on your PPC's screen ends.
A dialog box will ask if you're sure to abort the process.
At this stage, you go to storage card throught your PC Explorer, and you'll find the cab file there.
You save it away.
This cab file on the storaqe card will be automatically removed when you confirm that you really want cancel the installation process on the PPC's screen.
Or...
Go to c:\Program Files\Microsoft ActiveSync folder in your desktop and you can find there more cabs. Or simply find all the *.cab files on your HDD and you'll be surprised.
Thanks for this I will check out both methods
Does anyone know what the best freeware tool for modifying the cabfile is? and where I can download it :?:
Thanks for the help
DAZ
...
I think,that everyone here knows only WinCE Cab Manager from OCP Software. But this is commercial,but...on internet is everything...

How do i make a cab?

I search and found a few post on how to add registry entries on a cab but how do I make it copy a file to a specific location?
I want to create a cab that will install my contacts pim.vol and a few reg entries like the owner info. this would make a hard reset a lot simpler.
If your cooking your own ROM, search for OEMizer here or ppcgeeks. It has the option to copy files and import registry entries directly into the ROM.
Edit: attached file. Put it in the TOOLS folder of the kitchen, run it, and it'll make you an OEM that you can check off the next time you cook the rom.
Kool but will it work with dcd's kitchen?
install the trial of wince cab manager if you want to make your own cabs

Error while trying to cook a ROM *FIXED*

I have getting bunch of errors while trying to cook a ROM, during the last step of creating registry....I get the error and here is what the log says:
importing registry file ".\Registry\084c771d-5dd9-42b3-847c-7862312d8e9d.rgu"...
Failed to parse HKEY_CLASSES_ROOT\_wgt_opwidget\Shell\Open\Command!!!
InitRegistry FAILED in file ".\Registry\084c771d-5dd9-42b3-847c-7862312d8e9d.rgu" within a few lines of line 7.
ImportFromPackageListStrict: (RGUComp) !ERROR failed importing ".\Registry\084c771d-5dd9-42b3-847c-7862312d8e9d.rgu"
wmain: (RGUComp) !ERROR failed building DEFAULT hives
Can someone more familiar with the process point me to the right direction so that I can fix this error.
basically I took the 405.1 ROM
Extracted it
Using the package tool, I created a few new packages using the cab files
Included them in the "C:\RaphaelKitchen\OEM" folder
Then when I try to cook, I put a check mark for the specific app that I added and click the Go button and that's when I get the error.
This specific error is related to the latest opera cab that I downloaded from this forum. I deleted the folder that was (under OEM) there with the shipped Opera was and replaced it with the one I created when I created packages.
Thanks (this is my first time trying to cook so this issue might be related to something basic I missed, just need some pointers)
Package Tool has a couple of known issues converting from cab to OEM's, most likely there are spaces or something in your file 084c771d-5dd9-42b3-847c-7862312d8e9d.rgu" within a few lines of line 7.
You'll need to open that .rgu in a text editor capable of supporting unicode.
thanks for the quick reply
sorry it was actually a newer version of Opera that was trying to replace before building, not GoogleMaps
here are the first few lines from the rgu, i am not sure what the issue is, the file looks pretty similar to other rgus that I have (for TomTom7)
Code:
REGEDIT4
[HKEY_CLASSES_ROOT\_wgt_opwidget\DefaultIcon]
@="\\Windows\\Opera9.exe,-162"
[HKEY_CLASSES_ROOT\_wgt_opwidget\Shell\Open\Command]
@="\\Windows\\OperaL.exe""" """%%1"
[HKEY_CLASSES_ROOT\.wgt]
@="_wgt_opwidget"
[HKEY_CURRENT_USER\ControlPanel\Keybd\ChangeBackVKeyCode]
"Opera_MainWndClass"=dword:00000008
[HKEY_LOCAL_MACHINE\Software\Opera\GSensor]
"IdleTime"=dword:000000c8
[HKEY_LOCAL_MACHINE\Software\Opera\Proxy]
"ProxyServerPort"="8080"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Rai\:DEFBROWSER]
"0"="Opera Browser"
"1"="\\Windows\\OperaL.exe"
"2"=dword:00000001
"3"=dword:00000000
Is it possible to leave the cabs as is instead of converting them into OEM package then compile them into the ROM so that the cabs get installed at first bootup after the ROM is installed? (during customization)?
Where would I put the cabs in that case? under the "OEM\OperatorPkg" folder or somewhere else if that's even possible.
I see the problem, typical issue with package tool. does not handle escape characters properly..
Code:
@="\\Windows\\OperaL.exe""" """%%1"
should be:
@="\\Windows\\OperaL.exe \"%1\""
Also, yes you can put .cab's anywhere you like in \OEM (all gets mashed into one folder at the end, simply split up for convienience)
Just be sure to add a reference to that cab to config.txt or config_operator.txt or one of those config.txt's so the autorun routine runs it
Thanks for taking the time to help
I took the second option with keeping cabs and updated the config file
downloading apps to sign the cabs now.
cab won't install, just get copied over into windows folder
Thanks Da_G
I am having some issues trying to cook a cab into a rom, here is what I have done so far:
1) Extracted ROM
2) Created my certificate, added certificate as trusted root cert on PC
3) Signed cab with my certificate
4) Put the certificate in OEM
5) included the cab in OEM (sub folder within)
6) Included this entry in config_end.txt (CAB: \Windows\Fuze_Keyboard_Fix.cab)
7) Cooked ROM
8) Flashed
What I noticed was that during customization (after install) the Fuze_Keyboard_Fix.cab got copied over into the Windows directory on the Fuze but it was never executed/installed.
Is there something I am missing in the process?
I followed this link in order to create certificate and sign cabs, when I got the certificate cab created, I used the package tool to create OEM package of that cab and put the dsm, rgu files here (D:\RaphaelKitchen\OEM\mycert_cert) and the cert in OEM directory
I am not sure what went wrong:
1) either the certificate is not getting installed (I am not able to find the certificate in \Windows, but them again I am not even able to find oem.cert which should be there as well)
2) Or the issue is with the signed cab and that cab not getting installed properly.
3) Do I need to included the cab name in AAInfo.txt?
Thanks.
problem solved
I am posting a new reply in case anyone needs to use the above info to troubleshoot and fix similar issues
This is what I did to fix the issue:
Code:
1) Only pasted copy of the certificate into OEM
2) Went into "D:\RaphaelKitchen\OEM\OperatorPkg\mxipupdate_oemoperators_104.provxml" and appended the xml provisioning code that was created during generation of the certificate
3) Signed the cab and threw it into OEM folder
4) cooked & flashed.
My Fuze now had the keyboard and Name display fixed on Rogers network.
I will just have to sign new cabs and throw them in OEM and recook and flash in order to add other things.

Categories

Resources