View Full Version : n00b question about adding my own programs
entropy1980
15-07-2003, 08:59 PM
Okay I understand you have to use mkrom and Linux (or cygwin on Windows) to roll your own ROM my question is regarding how one could say remove one program from the SE ROM and include something else, for instance take off the byte counter and put another different counter on or such, would you just copy the necessary files (.exe and dll's) to the files1 or files2 folder and that's it ? What more is involved? Thanks in advance!
itsme
15-07-2003, 09:15 PM
for simple programs, that is all there is to it.
some might need more research, as to which registry settings need to be tweaked to get te program to run from the windows directory. and what settings it needs to run at all.
Peter Poelman
15-07-2003, 09:27 PM
You copy the files to either files1 or files2. Both sets of files end up in the \Windows subdir. So if you do not want to copy the files to RAM (see below), you should make sure the program is set to run from \Windows. Then you add any necessary registry keys to "default.reg", and any file-copy or directory creation commands to initobj.txt. Then run "mkrom <ROMfile>" and hey-presto.
entropy1980
15-07-2003, 09:27 PM
Thanks so much for all your guys awesome work!!
Peter Poelman
15-07-2003, 09:31 PM
ok sounds good, what would one need to do to mod the registry for the programs (By that I mean prior to booting) I don't want to be mucking around with a reg editor after the device boots just to get the progs to work...
Not sure I understand the question. Default.reg just holds the entire registry as present after a cold restart. So if you put something in there, this will be in the registry when the device wakes up.
entropy1980
15-07-2003, 09:33 PM
I think we wrote at the same time , so you answered my question before I posted it !!! What you said made complete sense! Thanks!
Peter Poelman
15-07-2003, 10:31 PM
[...]so you answered my question before I posted it !!! [...]
I installed the phpBB telepathy mod a couple of days ago, so I guess it's working.
entropy1980
15-07-2003, 10:34 PM
Hey I knew you were going to say that.... :lol: :lol:
laurens0619
16-07-2003, 10:50 AM
hi,
i want to add the skelmir java virtual machine (thats default installed in windows\ceej) and copy the swingall.jar in the windows\ceej map.
I have the cab file of the virtual machine but i can't find out which files are in it (when i open it with cabextract is shows .001 files and not the files that i find back in the device)
please help me
Peter Poelman
16-07-2003, 12:34 PM
Using Special Edition ROM, Tthe CabInst tool will run CAB files on the device if you move it there manually and double-tap it. It allows to set a new directory to install in.
Also the System Snapshot tool will write a file in the root of the device which holds a list of the entire filesystem and registry contents, so you can compare and see what changed. UltraEdit for the desktop has a compare function.
Good luck...
laurens0619
18-07-2003, 10:22 AM
hi,
i installed it to a seperate directory and zipped the files. i also took a snapshot when the xda was fresh and after install. i only can't find where the xda's gets is files from in:
43 <! [\Windows\AppMgr]
8544 <! 31/12/2002 12:31 1632 FC0E9EE1 Skelmir CEEJ Virtual Machine.DAT
8576 <! 16/02/2003 23:10 27 AEBB1DF3 CEEJ.lnk
8587 <! 16/02/2003 23:10 40 1EAF4EB3 CEEJ Examples.lnk
8588 <! 16/02/2003 23:10 27 AEBB1DF3 CEEJ.lnk
because these are not in the map where i extracted the cab file too. maybe you can take a look for me and tell me what i have to change in mkrom to have ceej by default installed
the extraced cab map:
http://www.devosjansen.nl/xda/java%20installed.rar
the snapfiles:
http://www.devosjansen.nl/xda/xda%20snapshots%20files.rar
thanks in advance
Peter Poelman
18-07-2003, 11:23 AM
hi,
i installed it to a seperate directory and zipped the files. i also took a snapshot when the xda was fresh and after install. i only can't find where the xda's gets is files from in:
43 <! [\Windows\AppMgr]
These files are generated during the install process, and contain uninstall information. You do not need to write them if you install in ROM, since you don't need/want your programs to show up the in the 'Add/Remove Programs' dialogue.
laurens0619
18-07-2003, 11:32 AM
ah i understand,
so i just put the files in the files1 or files2 directory and add this reg files to the default.reg? i dony really understand the readme file
laurens0619
21-07-2003, 09:38 AM
ah little kick,
isn't also good for the next SE rom? because you have finally a java virtual machine on the xda and the app is freeware (got it from www.skelmir.com)
Peter Poelman
21-07-2003, 10:02 AM
isn't also good for the next SE rom?
Noted...
laurens0619
21-07-2003, 10:13 AM
nice :) but can you please help me out for the moment? i dont know which part i must add to the default.reg file
Peter Poelman
21-07-2003, 11:09 AM
I dont know which part i must add to the default.reg file
default.reg holds the registry that is present when the system wakes up from cold-boot. So any registry entries your installer (or first run of the app) has made that you would like to have present should go in there. Clear enough?
laurens0619
21-07-2003, 11:13 AM
almost ;)
so i just copy paste the shit at the end of the reg file? and the files in the files 2 map
but how will the rom know where to put the files??
sorry if i'm stupid but i don't want to f*ck my rom so i can use me xda's as a frisbee
Peter Poelman
21-07-2003, 05:57 PM
Yes, the registry entries can be pasted at the end of default.reg. It doesn't matter if there's earlier entries with the same values, since the latter ones override.
All files in files1 and files2 will end up in \Windows, and if you want them somewhere else, (where they'll take up RAM), you must manually copy them (or pre-made links pointing to them) by issueing commands in initobj.txt.
Take a real close look at initobj.txt, and you'll get the picture.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.