config.txt copy command - MDA II, XDA II, 2060 ROM Development

Hi all,
Does anyone know the correct syntax for copying folders (containing multiple files) from one location to another from withing the config.txt file.
I have tried
CPY1:\Storage\folder
CPY2:\My Documents\folder
and
CPY1:\Storage\folder\*.*
CPY2:\My Documents\folder\*.*
and even
CPY1:\Storage\folder\*
CPY2:\My Documents\folder\*
but to no avail, can anyone give me the correct command?

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.

Make install CAB to run file

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

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.

Overwriting Files

Hello, i need to edit an existing file under the windows DIR.
I can edit the file in Total Commander but can't re-save the file.
I have copied the file on to my laptop, edited the file again but not able to force the file back into the windows DIR.
Anyone know how to do this?
Thanks
MBP
No one able to help me out?
I guess you are trying to overwrite an HTC ROM File. To do that you need to unlock the ROM somehow....

Script to delete-all?

Hi Folks, I'm trying to modify a de-bloat script to remove all sounds from the UI folder. Can someone help me out with the command?
Here is what I've tried so far that hasn't worked.
delete("/system/media/audio/ui/);
delete("/system/media/audio/ui/*);
delete("/system/media/audio/ui/*.*);
delete("/system/media/audio/ui/*.ogg);
None of this works. What would be the proper command to delete all files in a particular folder?
I ended up deleting the entire folder instead of folder contents.
http://forum.xda-developers.com/showthread.php?t=1265120

Categories

Resources