Related
hello all....ive been looking around for a way to make the Palm Threading cab into an oem package. idk if its possible or not but from what ive seen its way beyond me considering how the app integrates itself into the os. another reason why idk if its possible or not.
the reason why i want to do with is bc i really like the palm threading app...but i find it that it majorly decreases the speed of ur wizard for some reason or another. all i use my phone for is calling and txting so if i had this as an oem package i could cook my rom and hopefully it would not slowdown the overall system...idk if its possible or not.
thanks before hand!...and yes i have done alot of searching on this....lol
o and sry if im completly retarted in thinking all this lol
it might be possible, but you need to provide a cab
cab
alright ill pm u the link. bc i no ppl got in trouble for posting the cab b4
Did anyone ever get the MMS feature wokring on a Wizard???
i was able to create a OEM package for this program...but it doesnt work when building the rom.
when i try to build i get an error
"The target file "temp\dump\htmlnote.dll" is a directory, not a file."
i never got the initflashfile generator program to work so i had to create my own
initflashfile if that matters. here is a copy
;==========================================================================
;==========================================================================
; Application bib for Palm SMS Threader
;==========================================================================
Directory("\Windows"):-Directory("Palm Messaging")
Directory("\Windows\Palm Messaging"):-File("tpcutil.dll","\Windows\tpcutil.dll")
Directory("\Windows\Palm Messaging"):-File("htmlnote.dll","\Windows\htmlnote.dll")
Directory("\Windows\Palm Messaging"):-File("mailtrns.dll","\Windows\mailtrns.dll")
Directory("\Windows\Palm Messaging"):-File("mdsmailsvc.dll","\Windows\mdsmailsvc.dll")
Directory("\Windows\Palm Messaging"):-File("MsgMnuExt.dll","\Windows\MsgMnuExt.dll")
Directory("\Windows\Palm Messaging"):-File("MsgMnuExt_enUS.dll","\Windows\MsgMnuExt_enUS.dll")
Directory("\Windows\Palm Messaging"):-File("poutlook.exe","\Windows\poutlook.dll")
Directory("\Windows\Palm Messaging"):-File("tkitapp.exe","\Windows\tkitapp.exe")
Directory("\Windows\Palm Messaging"):-File("tmail.exe","\Windows\tmail.exe")
Directory("\Windows\Palm Messaging"):-File("tmailutl.dll","\Windows\tmailutl.dll")
Directory("\Windows\Palm Messaging"):-File("tmarshaller.exe","\Windows\tmarshaller.exe")
Directory("\Windows\Palm Messaging"):-File("pimgdll.dll","\Windows\pimgdll.dll")
Directory("\Windows\Palm Messaging"):-File("webview.dll","\Windows\webview.dll")
Directory("\Windows\Favorites"):-File("Inbox.Ink","\Windows\Inbox.Ink")
Directory("\Windows\Programs"):-File("Inbox.Ink","\Windows\Inbox.Ink")
;==========================================================================
; END Application bib for Palm SMS threader
;==========================================================================
and i also made the .rgu file with the help of the cab analyzer
if anyone can help it would b great appreciated, im using a base rom with no other OEM packages. if any one needs the palm threader cab let me know. thanks
The issue is that this overwrites a currently existant file. Chec that portion out. I have been attempting to get this working along with Arcsoft since the mms ability does not work with this application.
ya ur right...i went through the sys folder and deleted the files as the error would appear and made it oem build process but then got an error could not create default.hv and user.hv. does this mean i screwed up in my .rgu file?
i made the .rgu file in textpad and just copied the regestry intres from the cab manager and saved as unicode
i have linked it below
and yes i this process doesnt really and OEM package bc u cant just drag and drop it in...im just seeing if i can make a rom with the palm app preinstalled,
thanks again for the help
Based on your intitflashfile.txt file you provided, these duplicate named files are not really duplicates (as it appears you are moving them to \Windows\Palm Messaging (I assume this is how the cab does this?). If thats the case, then don't rememove the original versions from the rom. Instead prefix all of the files (or the duplicate ones at least) in your package with palmmessaging_ or pm_ or somesuch to make them unique. Then in your initflashfile.txt you would do something like this:
Code:
Directory("\Windows\Palm Messaging"):-File("htmlnote.dll","\Windows\palmmessaging_htmlnote.dll")
By doing this, both files can exist in the \Windows folder, but then when it moves it to true destination it will then be renamed to the correct name that that app expects.
Personally, I hate putting stuff in my roms where you have duplicates of the files in both \Windows and then in some other directory. Seems like such a waste (but you have to do that sometimes based on what you are trying to make into a package).
Hope that helps.
jug6ernaut said:
ya ur right...i went through the sys folder and deleted the files as the error would appear and made it oem build process but then got an error could not create default.hv and user.hv. does this mean i screwed up in my .rgu file?
Click to expand...
Click to collapse
As for your rgu, get rid of all the spaces! Example:
Code:
[HKEY_CURRENT_USER\ControlPanel\Notifications\{283E0018-E5C9-44e4-9864-4C4A3DED3BC3}]
"EventType" = dword : 00000002
should look like:
Code:
[HKEY_CURRENT_USER\ControlPanel\Notifications\{283E0018-E5C9-44e4-9864-4C4A3DED3BC3}]
"EventType"=dword:00000002
I'm not sure if thats specifically the problem you have, but thats the first fix I'd do, as I don't think it likes things to be pretty
oh, here's another couple of problems I just noticed:
Code:
"AppName" = "\Windows\messaging.exe"
should be
Code:
"AppName"="\\Windows\\messaging.exe"
You have to use double backslashes in the .rgu file for the backslash to show up (otherwise it thinks you are escaping the next character).
Also, stuff like this is wrong:
Code:
"" = "LS6021023"
should be
Code:
@="LS6021023"
If you are using Core Kitchen you can use the tool in there to dump the cab file and it will give you a nice registry entry file to use.
wow thanks alot lol, man i didnt think i could mess up that much in 1 file lol.
umm in the .rgu file you say i should use \\ instead of \ is this universal throughout the file to where i could could use the find/replace function in textpad of is it more specfic? also with the "" needing to change to @.
thanks for the quick response and all the help
o and on the initflashfile, i was actually thinking about doing what u said b4, when nottosmart mentioned the error b4 was about a duplicate file and i did some searching and came to a post in the core kitchen thread(yes im using the core kitchen) about how to make OEM packages that said something in relation to what you said..but i didnt no at the time thats what i should do.
o and i use the cab analyzer(im not sure if its the same as the cab dumper u mentioned) in the core kitchen, thats how i came up with the reg entries in my .rgu file. all i did was opened the cab in the program and then clicked xml, regestry entries, and copied what was there.
thanks again
jug6ernaut said:
wow thanks alot lol, man i didnt think i could mess up that much in 1 file lol.
umm in the .rgu file you say i should use \\ instead of \ is this universal throughout the file to where i could could use the find/replace function in textpad of is it more specfic? also with the "" needing to change to @.
thanks for the quick response and all the help
Click to expand...
Click to collapse
I think in your file the \\ for \ is universal (but not positive, I didn't read every line just scanned for things I know to look for). And yea, I think everywere you have "" = you could change that to @=
Also I noticed you had a hex: entry line. Not sure that one is correct format or not.
One thing that helped me a lot was to take a cab and install it. Then go into the registry with PHM Regedit or the Regedit in TaskManager and use the Export to dump out registry entries I knew were created by that install. This will give you the proper formatting.
ok i got the regedit tool and ill work on getting the reg entries that way....
but i tried what u said with initflashfile and i got the same error as b4 about how its a directory not a file....idk what to do...
what you need is an application called Cab Manager. It will give you the reg keys. and if you buy it you will be able to do an export on the reg keys which will work perfectly on in your package
hello, i was just wondering if you guys got the OEM package working yet. i have been using the palm threader for a few days and i love it. it has been a while since the last post here and i just wanna see if its working or not. thanks in advanced and if it is working, please let me know where to get it.
I have searched for hours on this, and I bet it is right under my nose, but i could not find it.
I upgraded my BJ2 with windows mobile 6.1 standard. I have added PHM reg editor, CHome Config. I cannot edit the reg, and chrome config gives me errors when starting saying it can't write to reg.
I am trying to figure out how I can edit my cpr files cause right now, 6.1 will not let me over write or edit the file.
Any idea of what I am missing?
TIA
-Z-
Ok i figured out how to make the CHome Config work. never mind that worked for 1 time. but i can't make it work again. getting error back on CHome Config again saying it cannot write to registery.
this is what I did for that:
HKLM/Security/Policies/Policies
key 00001005 changed value 16 to 40
still can't get the *.cpr file over wrote or copied to the windows folder. The error says I don't have permission to replace it.
zseen said:
Ok i figured out how to make the CHome Config work. never mind that worked for 1 time. but i can't make it work again. getting error back on CHome Config again saying it cannot write to registery.
this is what I did for that:
HKLM/Security/Policies/Policies
key 00001005 changed value 16 to 40
still can't get the *.cpr file over wrote or copied to the windows folder. The error says I don't have permission to replace it.
Click to expand...
Click to collapse
You can't overwrite it via WMDC anyway
To unlock a registry to overwrite it via ActiveSync or device's File Explorer (Resco Explorer):
Download regeditSTG2 which is digitally signed: http://4pda.ru/forum/attach/387522/regeditSTG2.zip
Then install it and change some registry values:
HKEY_LOCAL_MACHINE\Security\Policies\Policies\00001001 = 2
-> change to 1
HKEY_LOCAL_MACHINE\Security\Policies\Policies\00001005 = 16
-> change to 40
HKEY_LOCAL_MACHINE\Security\Policies\Policies\00001017 = 128
-> change to 144
HKEY_LOCAL_MACHINE \Security\Policies\Policies
-> create new key "0000101a": Dword = 1
HKEY_LOCAL_MACHINE \Security\Policies\Policies
-> create new key "0000101b": Dword = 1"
Click to expand...
Click to collapse
Erofich, I tried that and change those values and added the keys. Still not working.
I still can't edit, delete, copy in the windows directory of the phone.
have you did a reboot of your device after these changes?
yep...
the file in ur link is broken. so I used CeRegEditor changed all the things fthat u mentioned and done a soft reset, plus I even tried turning the phone off and back on. still can't do anything in the windows folder.
zseen said:
still can't do anything in the windows folder.
Click to expand...
Click to collapse
What app are you using - WMDC or ActiveSync?
ActiveSync - but wait, i am on vista so really I am using WMDC
I can't use activesync on vista.
I tried using the file explorer on the phone.
I first try to copy the edited file over the no edited file.. Error - I am making sure that the home screen is not set to Sliding panel, as I am trying to edit the CHome_320x240.cpr file.
Next I tried to delete the cpr file from the windows directory - Error - You can't delete file from rom
Then I tried to rename the file in the windows directory, still won't work.
I am not sure on this, but I have read people are editing these files, I just don't understand why I can copy mine to my PC, edit it, but I can't get it back on the phone.
zseen said:
ActiveSync - but wait, i am on vista so really I am using WMDC
I can't use activesync on vista.
I tried using the file explorer on the phone.
I first try to copy the edited file over the no edited file.. Error - I am making sure that the home screen is not set to Sliding panel, as I am trying to edit the CHome_320x240.cpr file.
Next I tried to delete the cpr file from the windows directory - Error - You can't delete file from rom
Then I tried to rename the file in the windows directory, still won't work.
I am not sure on this, but I have read people are editing these files, I just don't understand why I can copy mine to my PC, edit it, but I can't get it back on the phone.
Click to expand...
Click to collapse
try to overwrite it with Resco Explorer (and not a File Explorer)
btw, you can't delete any files in ROM
Thank you Erofich
All works fine now. I'll pass the info on to anyone else that needs the help
zseen said:
Thank you Erofich
All works fine now. I'll pass the info on to anyone else that needs the help
Click to expand...
Click to collapse
Hi, Can you plz share info on how to delete or overwrite files in the windows dir for WM 6.1.
Thanks,
How did you manage to edit the registry? I changed one value (0000 1005 to 40) and now I can't edit anything else. Several programs I've used flat out won't let me change the registry. I keep getting "access denied" on all of them.
Hey there!
Iam relatively new to this cooking world so i have a question.. I want to make some registry entries that changes the colour of the selection in enlarge start menu and the taskmanger.. but for some reason it doesn't work..
I have made a OEM package containing some few regtweaks.. Some of those reg tweaks simply doesn't work! If i check the registry afterwards i have flashed the rom, they just haven't been created, while some of the reg tweaks from the same oem package has.. Iam talking specifically about these 2:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\HTC\EnlargeMenu]
"ManilaCustomHLUp"=dword:66
"ManilaCustomHLDown"=dword:CC
[HKEY_CURRENT_USER\Software\HTC\TaskManager]
"ManilaCustomHLUp"=dword:66
"ManilaCustomHLDown"=dword:CC
[HKEY_LOCAL_MACHINE\Security\Policies\Policies]
"0000101a"=dword:00000001
The file here is saved as Unicode .. The last reg tweak works but the others doesn't .. I have no idea why.. They simply doesn't exist if i check afterwards i flashed the rom .. Any ideas?
~D
Your values just aren't right, you need to find the correct decimal value for the color you want. For example black would be FFFFFF in hex, orit would be 16777215 in decimal value .
You need to see the log file,.
Then see, which line give you the error,.
Beside saving as a UNICODE, then you need to add one empty space in the bottom,.
Hope this help,.
-G- said:
You need to see the log file,.
Then see, which line give you the error,.
Beside saving as a UNICODE, then you need to add one empty space in the bottom,.
Hope this help,.
Click to expand...
Click to collapse
The documents does allready have an empty line at the buttom..
But do i have to enter the values in decimal? As i have entered them in HEX.. ?
Thanks for your help untill further..
~D
If your cooked ROM flashes OK, and cooked properly for that matter to begin with, then there might not be anything wrong in this RGU file.
What might be happening is somewhere else in another RGU file these reg entries are being deleted.
(i.e., might be in a subsequently processed RGU other reg entries of the same key but starting with [-HKEY ... vs. [HKEY ...take note of the minus sign '-' at the beginning of the reg key entry)
What are you building the OS with? Are you using HyperCore Kitchen with BuildOS program? If so watch the bottom and look at all folders/packages that get processed after the one you made that contains these REG entries. Then check all RGU packages that you note are progeccesd afterwards.
Thread Moved to Q&A Forum
Other Member's Please DO NOT answer to question in the Dev&Hack Forum!
I feel like a total n00b asking a question like this, but I must know, so I know whether there's something I'm missing.
I have an HTC FUZE (Raphael) device, and I've been dumping Topaz & Rhodium ROMs as I come across them and incorporating the updated packages into my personal ROMs. I started seeing this new program called "RunCC" in the ROMs, and when I looked in the folder at the files, it looks a lot like the Windows Customization that runs after hard-resetting my device where it installs all the stuff the config_operator or config.txt has in it.
Now my question is, is that in fact what RunCC is? An updated method of customization? How do I use it? How I do I stop using my current method (AutoRun?)? Is there some advantage to using RunCC?
I wasn't even sure where to ask this question, but this seemed like the safest bet. Is anyone else wondering this, or am I the only one that doesn't know?
EDIT: Thanks to everyone's help, RunCC is finally working!! Here's what I did to get it working (with UC). NOTE: These instructions apply to using RunCC with VGA devices only!!
1) Make sure you have a runcc.lua file included somewhere. This is what mine looks like:
Code:
chk = oem.checkfileexist("\\windows\\config.txt")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\windows\\config.txt")
end
chk = oem.checkfileexist("\\Storage Card\\SDConfig.txt")
if chk == 1 then
runcc.addrun("RunExtra", "run", "\\Storage Card\\SDConfig.txt")
end
2) Make sure your RunCC package includes these two files (these are specific for VGA devices):
Code:
RunCC_default_bg_480_640.jpg
RunCC_default_bg_640_480.jpg
3) Make sure you have these reg entries in your app.reg (these are also specific for VGA devices)
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\RunCC]
"ProgressImgUnit"=dword:00000001
"ProgressImgTime"=dword:00000003
"ProgressImgPosX"=dword:00000032
"ProgressImgPosY"=dword:0000023A
"ProgressImgLandPosX"=dword:000000F6
"ProgressImgLandPosY"=dword:00000190
4) Make sure you've deleted AutoRun.exe, AutoRun.lnk & CheckAutoRun.exe, CheckAutoRun.lnk from your OEMDrivers, and make sure you delete these lines from your OEMDrivers rgu file:
Code:
[HKEY_LOCAL_MACHINE\Comm]
"AutoRun"="\\Windows\\autorun.exe"
"AutoRunCFG"="\\Windows\\config_operator.txt"
"AutoRunCheckNC"=dword:00000001
5) SDAutoRun should be deleted too, and if you have a line in your config.txt that calls it, that line should be removed. Also, you should remove the "RST: Reset" line from your config.txt. If you want the device to reset after customization is complete, just change this reg entry in the RunCC package:
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\RunCC]
"ResetDevice"=dword:00000000 ;CHANGE to dword:00000001
That should get your RunCC working. Report back with feedback!
One important note - If you decide to use RunCC with UC, as indicated above, make SURE that your cabs are set as Read-Only - otherwise they will be deleted from your Storage Card after being installed.
I can answer your last two questions: yes, I've been wondering what it is, but no, I'm not really sure what it is and how it works. It is something that goes during customization, and I've mostly seen Noonski talking about it.
Some info, but not much: http://forum.ppcgeeks.com/showpost.php?p=876466&postcount=29
Warjcowski said:
Some info, but not much: http://forum.ppcgeeks.com/showpost.php?p=876466&postcount=29
Click to expand...
Click to collapse
Hm. You're right, that was vague, at best. bengalih seemed to be more defending the use of SASHIMI than really explaining how RunCC works. It appears that Noonski may be the only one that knows anything about RunCC. Maybe I should send him a PM and ask for a comment/explanation of RunCC.
It's just an updated Autorun.exe method from HTC.
Some newer versions even support direct cab installation from SD card by simply adding a config.txt line to the LUA script.
L3V5Y once told me the correct name it should have for that. (Should be posted in the XDA_UC thread)
You don't need it on Raphael, the regular Autorun does it's job well enough and XDA_UC even better
RunCC does have a better Background and loading bar that's pretty easy to customize though, but other then that it is not Needed on Raphael.
The main problem was just that new devices would start using this and it broke SDAutorun compatibility, that should now not be an issue anymore with newer versions. Personally i don't use either RunCC or Autorun anymore and it's made Flashing and especially waiting for being able to use the phone faster.
There might still be some underlying code still unknown at the moment. And with the addition of RunCC.exe being able to actually run files from SD card's it looks like HTC is giving providers more control over extra apps on phone while concentrating on just one Rom for the phones instead of making multiple roms for different providers.
You can step over to RunCC but you would have to remove Autorun.exe, welcome.lnk & CheckAutorunexe/lnk from your rom. And the Autorun registry entries.
So I wanted to try this RunCC out. I deleted AutoRun & CheckAutoRun from my OEMDrivers, and deleted the reg entry that calls AutoRun. Then I included the RunCC Package in my ROM. Only when I cooked the ROM, RunCC didn't run. What did I do wrong? Did I need to change the AutoRUn reg entry to call RunCC.exe instead? Maybe I'll try that this time and see if it works.
RunCC should be called by the HKLM\Init\Launch58 registry entry.
This runs just before the \StartUp items.
It then calls for the RunCC.lua file that has the config files listed to install.
In most Roms the RunCC.lua file is not in the RunCC Package.
RunCC.lua is just text file.
Noonski said:
RunCC should be called by the HKLM\Init\Launch58 registry entry.
This runs just before the \StartUp items.
It then calls for the RunCC.lua file that has the config files listed to install.
In most Roms the RunCC.lua file is not in the RunCC Package.
RunCC.lua is just text file.
Click to expand...
Click to collapse
Thanks. That's what I was missing. I also found an interesting discussion of RunCC (as well as some tips to get it working) in the Elf Fourm. See here:
http://forum.xda-developers.com/showthread.php?p=3425124#post3425124
Now maybe some others can try it and see if it works for them, and if there's any value to using it in place of AutoRun. I guess that means UC doesn't work with RunCC, since it calls AutoRun. There must be a way to make that work, right?
No you can't call Autorun as taking the reset option away from the RUnCC registry settings might result in a Cold boot an it will keep rebooting.
If you check out XDA_UC you'll see that both runcc, SDAutorun & Autorun aren't needed anymore.
And you can then even speed the proces up by using .xdas files wich are basicly ip files being unzipped by Mortscript. A lot faster then using cabs.
It was that conversation in the cooking class, that got me into looking into RunCC and getting it to work with SDAutorun
back from the dead
I figured I'd resurrect this thread, as I finally got RunCC working on my Fuze.
But now I have a few questions about doing more with it:
What do the various commands in runcc.lua do? I currently am using only a config.txt for customization, and am using the "RunDefault" command to execute it. I noticed (before deleting the other info in the file) that there were also "RunExtra" & "RunCustomer" commands. What's the difference?
My second question is, would it be possible to call for the execution of an SDConfig.txt file on a Storage Card, if specified by path in both config.txt & runcc.lua? That would mean I wouldn't have to include AutoRun anymore at all, which I would kind of prefer.
Currently, I have it set up so RunCC calls SDAutoRun if I want to use UC, and since SDAutoRun calls AutoRun, I include have to include it in the ROM (though I leave out most of the reg entries for it).
Anyone with some RunCC knowledge want to help me out with these answers?
Captain,
I was able to get my RunCC (running on a Pure) to execute files on my SD card, but I'm not sure if you can add a direct link to SDConfig.txt, but I'm going to try it when I've got some time...
I know you can run files like "XML: \Storage Card\whatever.xml" from within config.txt, so i know you could do a "CFG: \Storage Card\SDConfig.txt" to run it, but the problem here is that if the SDConfig.txt didn't exist it would bomb out, resulting in an endless loop of hard resets...
Optimally, I think we try to edit RunCC.lua to look and see if the SDConfig.txt exists and if so, then it executes it.
I'm not really sure what the differences are in the "RunDefault", "RunCustomer", etc though... I guess it'll take some experimenting...
I think the RunCustomer etc just run in different orders, though some may be able to do things like XMLs/Config text files. I'd just use RunDefault option which seems to work...
i neva tried to but this may work if u add these codes to ur control block
Code:
chk = oem.checkfileexist("\\Storage Card\\UC\\config.txt")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\Storage Card\\UC\\config.txt")
end
but i use a sort of alternate method. here it is if u wana try it out
0.extract this zip file ur ur SD card:View attachment 242051
1. intall this cab using runCC:View attachment 242050
Code:
;;;;;;;;;;check and run script
if (FileExists( "\Storage Card\silent_UC\Autorun.mscr" ))
callscript ( "\Storage Card\silent_UC\Autorun.mscr" )
EndIf
;;;;;;;;;;delete calling script to prevent it from loading
SetFileAttribute(SystemPath("Startup") \ "s.mscr" , "readonly", FALSE)
SetFileAttribute(SystemPath("Startup") \ "s.mscr" , "system", FALSE)
Delete(SystemPath("Startup") \ "s.mscr" )
more details on how to add customization here
hope this helps
Captain_Throwback said:
I figured I'd resurrect this thread, as I finally got RunCC working on my Fuze.
But now I have a few questions about doing more with it:
What do the various commands in runcc.lua do? I currently am using only a config.txt for customization, and am using the "RunDefault" command to execute it. I noticed (before deleting the other info in the file) that there were also "RunExtra" & "RunCustomer" commands. What's the difference?
My second question is, would it be possible to call for the execution of an SDConfig.txt file on a Storage Card, if specified by path in both config.txt & runcc.lua? That would mean I wouldn't have to include AutoRun anymore at all, which I would kind of prefer.
Currently, I have it set up so RunCC calls SDAutoRun if I want to use UC, and since SDAutoRun calls AutoRun, I include have to include it in the ROM (though I leave out most of the reg entries for it).
Anyone with some RunCC knowledge want to help me out with these answers?
Click to expand...
Click to collapse
Glad to see that someone else has these questions also.
I was able to get SDconfig.txt to run from the storage card with this:
Code:
chk = oem.checkfileexist("\\Storage Card\\Sdconfig.txt")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\Storage Card\\SDconfig.txt")
end
Just make sure you take the reset command out of the SDconfig.txt
Now, what I haven't been able to do is get some of the things in my Sdconfig.txt to work.
Copy Commands don't seem to work. Such as CPY1:\ CPY2:\
Also, anything that requires user intervention doesn't seem to work either. It just seems to skip right over those somehow.
If someone has some answers, I would like some help also.
rgb-rgb said:
Glad to see that someone else has these questions also.
I was able to get SDconfig.txt to run from the storage card with this:
Code:
chk = oem.checkfileexist("\\Storage Card\\Sdconfig.txt")
if chk == 1 then
runcc.addrun("RunExtra", "run", "\\Storage Card\\SDconfig.txt")
end
Just make sure you take the reset command out of the SDconfig.txt
Click to expand...
Click to collapse
Nice. I kind of thought that would work. Do you still have to call the SDConfig file from the config.txt file with a "CFG: \Storage Card\SDConfig.txt" at the end, or does it find the file with only adding the above to the runcc.lua?
Captain_Throwback said:
Nice. I kind of thought that would work. Do you still have to call the SDConfig file from the config.txt file with a "CFG: \Storage Card\SDConfig.txt" at the end, or does it find the file with only adding the above to the runcc.lua?
Click to expand...
Click to collapse
No, do not call it from the config.txt file, just add it to the runcc.lua
Also, I used RunDefault instead of RunExtra. I have also been able to get the user input to work on one try. Now I'm going for the whole SDconfig.txt file that I had.
I changed the app.reg file to this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\init]
"Launch58"="RunCC.exe"
[HKEY_LOCAL_MACHINE\Software\HTC\RunCC]
"DisplayFilename"=dword:00000001
"script"="\\windows\\runcc.lua"
"UIMode"=dword:00000000
"TurnOffRadio"=dword:00000000
"RecoveryType"=dword:00000002
"TodayDelay"=dword:00000000
"ResetDevice"=dword:00000001
"ResetUICountDown"=dword:00000005
"LaunchCSType"=dword:00000002
"RunCCRunStatus"=dword:00000000
"InitUITopmost"=dword:00000000
"PreCreateUI"=dword:00000001
"EnableTransition"=dword:00000001
"FullScreen"=dword:00000001
"ProgressImgTime"=dword:00000005
"ProgressImgUnit"=dword:00000001
"ShowMessageBar"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"RunCC"="1_1_7_0"
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\PKG]
"shadow"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\AutoShortcut]
We'll see what happens in about 10 minutes
Okay, so all of my CAB files that require user input worked as they should.
I still have a couple of issues to deal with, I have the connection setting wizard coming up which I have to shut down so I can see my input dialogs. Don't know how to stop the connection settings from running yet.
Also, the CPY1: CPY2: commands did not work when running it this way, so I have to figure out a way to get xcopyce to run and the only way I can see doing it right now is to cook xcopyce into the ROM unless the FILEOP command work somehow, but I don't know anything about that yet.
rgb-rgb said:
Okay, so all of my CAB files that require user input worked as they should.
I still have a couple of issues to deal with, I have the connection setting wizard coming up which I have to shut down so I can see my input dialogs. Don't know how to stop the connection settings from running yet.
Also, the CPY1: CPY2: commands did not work when running it this way, so I have to figure out a way to get xcopyce to run and the only way I can see doing it right now is to cook xcopyce into the ROM unless the FILEOP command work somehow, but I don't know anything about that yet.
Click to expand...
Click to collapse
You should be able to prevent Connection Setup from interrupting your customization by setting the "TurnOffRadio" from dword:0 to dword:1. If the phone radio is off, Connection Setup won't run.
Captain_Throwback said:
You should be able to prevent Connection Setup from interrupting your customization by setting the "TurnOffRadio" from dword:0 to dword:1. If the phone radio is off, Connection Setup won't run.
Click to expand...
Click to collapse
Thanks, I'll give that a try on the next flash which at the rate I'm going will be in less than 30 minutes
hey Captain_Throwback, it's OMJ...
*EDIT* ooops, I missed page 2 b4 posting...I'm gonna try to above suggestions
1st, can you tell me how you got RunCC to work w/ SDAutoRun, and how is it beneficial over using the AutoRun package?
I tried using RunCC and included SDAutoRun & AutoRun in the rom, I had runcc.lua setup to run config_operator.txt, and it did execute the commands, except for SDAutoRun.exe. I assume I need to add some reg entries for Autorun?
I was also hoping runcc.lua could be used to call the SDConfig.txt file on a Storage Card. maybe w/ code like: (this is on a Diamond)
Code:
chk = oem.checkfileexist("\\Internal Storage\\SDConfig.txt")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\Internal Storage\\SDConfig.txt")
end
As Noonski stated earlier...if a cab can be installed why not SDConfig.txt?
Noonski said:
Some newer versions even support direct cab installation from SD card by simply adding a config.txt line to the LUA script.
Click to expand...
Click to collapse
Captain_Throwback said:
I figured I'd resurrect this thread, as I finally got RunCC working on my Fuze.
But now I have a few questions about doing more with it:
What do the various commands in runcc.lua do? I currently am using only a config.txt for customization, and am using the "RunDefault" command to execute it. I noticed (before deleting the other info in the file) that there were also "RunExtra" & "RunCustomer" commands. What's the difference?
My second question is, would it be possible to call for the execution of an SDConfig.txt file on a Storage Card, if specified by path in both config.txt & runcc.lua? That would mean I wouldn't have to include AutoRun anymore at all, which I would kind of prefer.
Currently, I have it set up so RunCC calls SDAutoRun if I want to use UC, and since SDAutoRun calls AutoRun, I include have to include it in the ROM (though I leave out most of the reg entries for it).
Anyone with some RunCC knowledge want to help me out with these answers?
Click to expand...
Click to collapse
Hi XDA ppl,
How to delete a registry value with a .reg file? The standard hyphen approach doesn't seem to work. I tried it like this:
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItem"=-
This should delete the TestItem but it refuses to do so. Does anyone knows the trick?
I don't know how to do it with a reg key, but you can do it this way with a mortscript:
Code:
RegDelete("HKLM","\Software\Test","TestItem")
here you go!
cruiserrr said:
here you go!
Click to expand...
Click to collapse
Like I said in my first post: "The standard hyphen approach doesn't seem to work."
gotobigo said:
Like I said in my first post: "The standard hyphen approach doesn't seem to work."
Click to expand...
Click to collapse
Sounds odd! can you tell me the heading of your provxml file? it is xml or provxml? what tool do you use to import? can you post the actual code of the file?
Hi, usually I create a cab file from .reg files with CeRegEditor (ceregeditor.mdsoft.pl). If I create new keys/ values everything works just fine. Just deleting doesn't work.
In the end I installed the kilmist registry editor trial to double check cause it can import .reg files directly, but its the same problem: deleting doesn't work.
Here the exact code of the files I tried:
-- File 1: create a test key with 2 values... works fine ------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Test]
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItemOne"=dword:00000001
"TestItemTwo"=dword:00000001
-- File 2: try to delete 1 value... fails ---------------------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItemOne"=-
-- File 3: try to delete the whole key... fails too ----------------------
REGEDIT4
[-HKEY_LOCAL_MACHINE\Software\Test]
your files seem ok.
while you find th solution I recommend to add postxml to your cab to delete the unwanted keys. nocharacteristic and nopar should allow you to delete whatever needed.
two hints: check the encoding of the files and check the order. make one cab for the additions and another for the substractions just in case the cab tries to delete the key before it is created. sorry i can not help more !! please, pm when you find what was it
Try:
Save your .reg file as Unicode not ANSI, start your .reg file with
Windows Registry Editor Version 5.00
In the first line. And leave one blank empty line at the end of the .reg file.
Did it work?
fluffiey said:
Try:
Save your .reg file as Unicode not ANSI, start your .reg file with
Windows Registry Editor Version 5.00
In the first line. And leave one blank empty line at the end of the .reg file.
Did it work?
Click to expand...
Click to collapse
Nope, doesn't work either.
I put Windows Registry Editor Version 5.00 in the first line, encoded it 8-bit unicode and made sure theres a blank line at the end (always did that). all to no avail.
Btw, I'm running WM 6.1 on a TP2. I really wonder if its working at other phones / WM versions, or this is a "universal" problem.
thx anyway, Tobias