importing registry keys - Touch HD Themes and Apps

hey guys, after miri's recent v19 rom release, i've got to the point where manually reinstalling stuff is getting more of a chore than a pleasure, so i've been playing around with sdconfig.txt and self-built .cab files...
however, there are some things i cant configure due to them being in the registry.
so far this is what ive done:
- used 'CeRegEditor' to capture the active registry (both stock rom, and fully configured the way i want it to be)
- compared the 2 files, and saved the output to another file
- copied this file (i've tried both .cereg, and .reg formats) to sd card, and attempted to run. when executed from my HD, the file format is unrecognised and will not import the registry values.
so, what have i missed? why wont a .cereg or .reg file 'install' on my HD?
the idea is to have this registry file in the sdconfig.txt (or a cab, and exec'd from sdconfig.txt), so on hard reset it is a completely 'hands-off' re-install.

Create a Cab file. You can create Cab files that only install registry settings. Take the '2_Way_Plus_InCall_Recording' cab file and build upon that maybe. Edit the '_Setup.xml' to include your registry settings and then you can install them just as you would install a Cab file.
How many registry setting do you want to change?

.reg file is 260 line file - 25kb.
while there seems to be a limit on what the registry is holding, it is configuring some of the more simplier and silly things...
- Device name
- Owner info
- Manila Weather
- power settings
- 'changescreen' app settings (app found on these forums)
- 'HD tweak' app settings (again, found on these forums)
at this point in time, it's more of a proof of concept, rather than finalized version. now i know how to get things working, i can fine tune the reg settings and provision my phone.
it seems 'ceregedit' does not correctly convert reg > XML (or reg > CAB).
however, i found another tool called 'SDConfigGen', which does correctly convert reg > XML. i've been able to use the XML in my sdconfig.txt, which is what i wanted!
while the above reg keys work, it's not an exact build of how i had my phone before...
there are some things i would like to automatically configure:
- pre-configured Wifi profiles (theres maybe 4 AP's i use)
- automatically set 'touchflo 3d' as the default theme.
- a complete hands-off install. (things like pre-setup the HTC auto-configure "sim card change")
- automatically accept a security certificate from our activesync server (i have activesync config in a .cab file, but it requires you to manually click 'yes' to the security cert install box)
im sure a google will help with a few points above!

Ok I'm not sure if you program at all or if this would really easy your pain much but you can download a trial version of Visual Studio 2008. It has a project option to build cab files for ppc devices. Might be worth a look if you have a lot of keys to do. Its not much better than doing them by hand though. I've included a screen shot of VS doing it so you can see. BTW its obviously been scrunched up.

Try this
veehexx said:
hey guys, after miri's recent v19 rom release, i've got to the point where manually reinstalling stuff is getting more of a chore than a pleasure, so i've been playing around with sdconfig.txt and self-built .cab files...
however, there are some things i cant configure due to them being in the registry.
so far this is what ive done:
- used 'CeRegEditor' to capture the active registry (both stock rom, and fully configured the way i want it to be)
- compared the 2 files, and saved the output to another file
- copied this file (i've tried both .cereg, and .reg formats) to sd card, and attempted to run. when executed from my HD, the file format is unrecognised and will not import the registry values.
so, what have i missed? why wont a .cereg or .reg file 'install' on my HD?
the idea is to have this registry file in the sdconfig.txt (or a cab, and exec'd from sdconfig.txt), so on hard reset it is a completely 'hands-off' re-install.
Click to expand...
Click to collapse
I used this to do what your trying to do, it will not import .reg files on the trial version but theres an older version on piratebay that will:
Heres a link to a trial for 30 days: http://www.ocpsoftware.com/products.php?nm=cecabmgr

SDConfig Builder
Hi,
try SDConfig Builder

Related

automatic install without hacking rom!

Hi Folks,
i found a trick to make an autoinstall from strorage card (like from extended Rom)!
autorun.exe looks for the file config.txt on the place is in registry stored in:
"HKLM\Comm"
"AutoRunCFG" = "\Speicherkarte\Autoinstall\config.txt"
so i changed the registry entry and now i am able to put config.txt and the files to install on every place i want.
on windows Mobile 2003 devices this works wonderful!
on problem i have now with windows mobile 5 devices:
when installing a question appears where to store files (device or storage card)!
can anybody help me to get rid of this question during automatic cab install??
i want install all cab files to device without any questions!!
pbelcl: apologies for my ignorance, but is this very different to a 2577 folder?
with a 2577 cab we could use this info:
http://forum.xda-developers.com/viewtopic.php?p=225375#225375
and choose a default install folder I think for WM5.
V
Thanks for your quick answer!
i read the other tread and if i understood it right i have to remove the .dll file from my cabs?
i'll try this and tell you if it worked ....
I think the other way round.
I've never done it before, but you need to make a custom cab and .inf file, and specify the installation location in therere, and then the "choose a location" dialog doesn't come up. I'm not sure, I'll try this at home later.
V
vijay555 said:
...I'll try this at home later.
Click to expand...
Click to collapse
Thanks, that would be interesting for me because i cant generate cab files because i hav no developer software for this.
i also have access to a cab file manager (at a customer) where i can edit the cab files and change them as i need it.
if it is possible to generate an "empty" cab file for me that would be nice ....
pbelcl: I never use the cabwizard either, I use cab manager. To make an empty cab, take any normal cab (download one of mine?) and just remove all the files from it. That's what I always do!
V
vijay555 said:
.just remove all the files from it. That's what I always do!V
Click to expand...
Click to collapse
ok, this is also my way to get an empty cab file
there is one question interesting:
Sometimes there is a "CheckFile.exe" and a "CeSetup.dll" in the cab file.
Do i need them for any work during install this cabfile or can i delete them also?
I remove everything from my cabs, and then use cab manager and drag and drop stuff. So I've never used those files. I will have to read up on how to make a "normal", but I don't think they're necessary if you didn't put them in there!
V
Hi folks,
again my last problem with automatic install on WM5 devices:
when my automatism starts to install the cab files (from where ever) each time there comes a popup windows where to install the cabfile (storage card or device).
for my routines it is not important becaue most of my cab files only set some registry keys and dont install files on the device!
Does anybody know how i can get rid of this window and install the files to device WITHOUT question popup window??

ROM Customization Tool - Pandora PreConfig Launcher

So here's the scoop. You got this killer rom, but it loads a whole bunch of stuff that you don't want. You get around this by resetting before the configuration starts after aligning the screen.
You might have a host of cabs that you always load, and after you flash you need to run each one. Every rom you use it's the same thing - flash the rom, then load all your cabs.
Or, you may have a program you want to execute, such as enabling SetHSDPA.
Here's a way to "automate" it so you can use the power and flexibility of the PreConfig funtion as an "after the flash" customization tool, and make subsequent installations much faster.
You'll need a folder on your storage card called CABS, and in that folder put the attached file called CFG.txt as well as the cabs / exe's etc (unless they're already in the ROM, then just point the config file to the correct path) that you want to run. The CFT.txt is the file that will tell it what to install, and is exactly like the PreConfig.txt file - see my extended rom thread for ideas on what you can do with it.
Basically, here's the contents of the CFG.txt file I attached:
LOCK:Enabled
CAB: \Storage Card\CABS\A2DPFix.CAB
CAB: \Storage Card\CABS\ATIFix.cab
CAB: \Storage Card\CABS\Cingular_WAP_MediaNet_MMS_Settingsv2_No_ICON_Change.cab
CAB: \Storage Card\CABS\Google Maps Cell.CAB
CAB: \Storage Card\CABS\Monopoly.cab
CAB: \Storage Card\CABS\NETCFv2.wm.armv4i.cab
CAB: \Storage Card\CABS\S2U2-0.72-WM5.cab
CAB: \Storage Card\CABS\Solitare.cab
CAB: \Storage Card\CABS\StartClean.cab
LOCKisabled
RST: Reset
Just list out your cabs or actions in this file - and be sure the files you are referring to are in the destination path.
To use this setup:
Edit the CFG.txt file and place in \Storage Card\CABS (if the folder isn't there, create it)
Copy your cabs/exes into this folder, being sure they are set to READ ONLY.
Install the attached cab, and after you reset it'll start the installation!
Once the installation is complete and the phone resets - you can remove the program from Settings-Remove Programs.
Important Notes:
Don't forget to make your CABs READ ONLY - or they'll delete after installing. YOU HAVE BEEN WARNED!!!
Ensure that the cabs you're installing does not require any user input. If it does, it will hang the installation process, you'll need to reset the phone, and not all of your stuff will get installed.
Known list of NOT COMPATIBLE files:
MS Reader
Sweet bro!!! I am all over it, will give it a go and let you know my results!!! Very cool stuff!
You Rock!
Downloading Now!
Can I put this on My Treo?
berdinkerdickle said:
You Rock!
Downloading Now!
Can I put this on My Treo?
Click to expand...
Click to collapse
sure, if it's WM5/6.
mattk_r said:
sure, if it's WM5/6.
Click to expand...
Click to collapse
Jokes on Me.
Seriously Though,
This is Great!
mattk_r said:
...clip...
Ensure that the cabs you're installing does not require any user input. If it does, it will hang the installation process, you'll need to reset the phone, and not all of your stuff will get installed.
Click to expand...
Click to collapse
We do want to be sure not to use apps that require a reset.
great! That's what I was looking for recently
Is there a way to get cab files to default to installing on a Storage Card? I'm trying to prevent it from asking me where I want to install it and thus causing this tool from hanging up.
Nevermind, I made a bad assumption (yes, I know what they say about assuming things) that the PreConfig Launcher would hang up waiting for input for where to install something. I just tested it out on a cab that allows a user to override the installation directory and everything worked fine.
Sorry.
kc_hubbard said:
Is there a way to get cab files to default to installing on a Storage Card? I'm trying to prevent it from asking me where I want to install it and thus causing this tool from hanging up.
Nevermind, I made a bad assumption (yes, I know what they say about assuming things) that the PreConfig Launcher would hang up waiting for input for where to install something. I just tested it out on a cab that allows a user to override the installation directory and everything worked fine.
Sorry.
Click to expand...
Click to collapse
You could edit your cabs and have them install to the storage card by default - or at least I think you could. I'm thinking something like %storage card%. If I get a chance I'll poke around WinCE Cab Manager and see if it's possible.
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.
mattk_r said:
I just tested it by building a cab to install to the folder /Storage Card, and it worked fine.
Click to expand...
Click to collapse
Matt,
While I'm not quite the noob the number of posts would indicate I am, I admit that I haven't done much w/ building cab's. In an attempt to build one to install directly to the storage card, I've used WinCE to alter the default directory and have altered _setup.xml file, both to no avail.
While my pride says not to ask you to tell me how you set the cab up to install to storage, I'm not above asking you to post the example you created to test this so that I can look it over and try to figure this out for myself.
Would you mind attaching a cab file that installs directly to storage for me? Please?
kc_hubbard said:
Matt,
While I'm not quite the noob the number of posts would indicate I am, I admit that I haven't done much w/ building cab's. In an attempt to build one to install directly to the storage card, I've used WinCE to alter the default directory and have altered _setup.xml file, both to no avail.
While my pride says not to ask you to tell me how you set the cab up to install to storage, I'm not above asking you to post the example you created to test this so that I can look it over and try to figure this out for myself.
Would you mind attaching a cab file that installs directly to storage for me? Please?
Click to expand...
Click to collapse
I could - but this is super easy. When you add a file, you get a window with three tabs, one being location. In that tab, you'll have the folder view. Click on the root '/' folder and press 'new folder'. Call it Storage Card.
That's it!
mattk_r said:
I could - but this is super easy. When you add a file, you get a window with three tabs, one being location. In that tab, you'll have the folder view. Click on the root '/' folder and press 'new folder'. Call it Storage Card.
That's it!
Click to expand...
Click to collapse
I must be an idiot to not have been able to figure that out (and my day job is computer programming, albeit on IBM Mainframes). Will work on this again once I'm back home. I'm sure big brother is already not too happy w/ all the time I spend on the forums anyway.
Thanks Matt!
so, if i were flashing a ROM i would flash, install the cab and then, assuming i already have my cabs and config files on my card, i hard reset and this should launch ok?
thanks,
mark
AximMarkSD said:
so, if i were flashing a ROM i would flash, install the cab and then, assuming i already have my cabs and config files on my card, i hard reset and this should launch ok?
thanks,
mark
Click to expand...
Click to collapse
From what I've done/learned no hard reset is required. You install the Pandora PreConfig Launcher and let your phone Restart. When it restarts, your cabs in the CFG.TXT file will be installed.
so after a flash or a hard reset (for whatever reason) you just install the cab and then soft reset and it will install your cabs?
AximMarkSD said:
so after a flash or a hard reset (for whatever reason) you just install the cab and then soft reset and it will install your cabs?
Click to expand...
Click to collapse
correct - as long as your cabs and the configuration file reside in the CABS folder on your storage card
mattk_r said:
correct - as long as your cabs and the configuration file reside in the CABS folder on your storage card
Click to expand...
Click to collapse
right.
thanks. that's a great tool.
pardon the ignorance but i've never played w/ the WinCE cab manager. can i change the default install location on commercial cabs that i've purchased (assuming they require no interaction during install)?
AximMarkSD said:
right.
thanks. that's a great tool.
pardon the ignorance but i've never played w/ the WinCE cab manager. can i change the default install location on commercial cabs that i've purchased (assuming they require no interaction during install)?
Click to expand...
Click to collapse
Yes you can change the default install directory.
Matt,
Thanks for this great program. It makes changing roms SOOO much easier!! When combined with WinCE cab manager, you can autoinstall just about any program. This thread should be stickied.
Quick guide on how to get programs to install to storage card used WinCE Cab Manager. This guide was modified from K's FlexiRom instructions:
Preparing the cabs
---------------------------
- To set the cabs to a static path, install WinCECab Manager.
- Open a cab with WinCE Cab Manager and click on "CAB Information".
- Double click on "Default Install Dir" then select "Installation Directory"
- Change the default install directory to what every use desire. Do this by creating new directories under "/". For most users wanting to install on storage card, change path to "/Storage Card/Program Files/cabname". Before moving on to the next step, make sure that once you make the folders, click the desired installation path and click "APPLY".
- After applying the new default installation path, choose "Do not allow user to select installation directory"
- Check if there "Setup dll" is present under Cab Information. If setup dll is present, delete it off. [this step is from K's instructions, not sure if it is necessary or not. I've been doing it.]
- Save the cab then right click on the can and select "Read Only" and click apply/OK.
- Check and prepare all the cabs you want to auto install and place them into the CABS Folder of your storage card.
PS Using WinCE Cab manager, you can also modify the shortcuts of the program.

How do I associate a reg file to load automatically?

I created a reg file using task manager when I had Meschle's Touct 3.1 ROM installed because I needed to run a registry hack every morning to correct a registry setting change my Exchange server was forcing on me.
I've since moved to Meschles Vanilla 2.1 ROM, but there's no application associated with the REG files so my registry file won't load any more when I click on the file.
I've loaded both HTC and fpb Task Managers bu tthey don't associate the ".reg" file suffix.
I've installed Regedit, which associates the .reg files, but tha tjust opens the files for editing rather than running and loading the registry changes.
Can anyone advise what I need to do so that I can easily "load" my registry change ".reg" file again?
Thanks,
Graham
Hi there,
I use Resco Explorer with the built-in registry editor. It will solve your two problems in one: RE will let you 'associate' files so they open with an app of your choice, and the registry editor will let you import/export keys.
You could even put a shortcut to this .reg file in your startup folder so that after a soft-reset it would be imported again!
Hope this helps.

CAB file to change File Locations?

I apologize if this is the wrong location for this question. Please move if it is.
I am looking to see if anyone has yet created a CAB file that would modify the File Locations as detailed in the WM5_Tweaks_Other Wiki.
I'm interested in the following tweaks:
Change the location of My Documents
Change the location of email and attachments
Change the location of temporary internet files
The reason I'm asking for a CAB file is so that I can change these automatically when I burn a new ROM without having to install a registry editor each time and make all those registry changes. It's getting old to have to modify those each and every time.
Any assistance would be greatly appreciated!
Greg
As it is only changing keys in the registry, it can be done with a cabfile.
The trial of WinCE CAB Manager can do that.
Dude use Schaps_AdvancedConfig, It has those options plus MANY more.
joshkoss said:
Dude use Schaps_AdvancedConfig, It has those options plus MANY more.
Click to expand...
Click to collapse
Actually it doesn't seem to have all of those. I tried 2.02.1.0. It allows you to change the location of the IE cache and temporary files, but it does not allow you to change "My documents", and it does not allow you to change the location of email and attachments. At least not that I can find.
Maybe I'm blind and not seeing those though. Can you point them out for me please?
Thanks!
Greg
Advanced Config, 1 or 2, is a wonderful tool, but if you make a cab file that takes care of your own preferences all in one go, including ones Adv Config doesn't cover (it can't cover everything) thenit's a good idea.
I did the same thing with an xml file rather than a cab a while ago. All I actually did was edit the pre-existing orange xml file that set up my network connections.
Might be easier than creating a cab as requires no tools but Notepad.
write all the registry tweaks into one single text file, save it as <whatever>.reg and install dotfred's task manager (which is a single exe-file).
this taskmanager can easily imoprt reg-files.
if you need a template for the reg-file's syntax use dotfred's task manager to export the required reg-keys...
Final Result
I have decided to go with the CAB file. It was a BREEZE! And the resulting CAB file is less than 3k, and take just a second to install. In case anyone is interested in it, I am attaching it here. Feel free to request anything in addition as I can add registry entries very easily.
All this small CAB does is set "My Documents" to be on your storage card, and set email and email attachments to your storage card. 3 registry keys added. Nothing more.
Enjoy.

Howto Uninstall Max Manila?

I tried installing Max manila on my TP2, but I must have used the wrong version. When the phone boots, it gets stuck at the "Touch here to launch HTC Sense" prompt.
I can get into the programs menu, but not into Settings. How can I uninstall this CAB if I can't get into Settings?
Tried looking at the original thread, but at 96 pages, the signal-to-noise ratio is just too low, and you can't find anything! Hence this new thread.
I really don't want to have to do a hard-reset!
if it is getting stuck at starting manilla you should still be able to click on the windows start button where you can get into the settings/home sections. From here untick sense and restart the device so it starts properly without starting sense. Remove manmanilla from remove programs option and then reinstall the working version.
Alternatively reflash your rom.
stoolzo said:
if it is getting stuck at starting manilla you should still be able to click on the windows start button where you can get into the settings/home sections. From here untick sense and restart the device so it starts properly without starting sense. Remove manmanilla from remove programs option and then reinstall the working version.
Alternatively reflash your rom.
Click to expand...
Click to collapse
In WM6.5, there is no settings entry on the start menu. There must be a series of steps for deleting files and changing registry sessions that could be done manually if only one knew how.
There is a settings shortcut in WM 6.5, however in some roms the chefs have this shortcut pointing to the manila settings tab instead of WM settings dir. Obviously if manila won't load then this shortcut won't work for you anyway. Unfortunately I have no idea how to get that settings shortcut back on the start menu and working for you :/ You could use Total Commander to manually delete all of the files altered by MaxManila and then soft reset - your phone will then restore the rom's original files. There are a lot of files in MaxManila though, so it might take a while to hunt them all down. Use aiCabExplorer to open MaxManila's cab file and get the names of all the files to delete.
millski said:
There is a settings shortcut in WM 6.5, however in some roms the chefs have this shortcut pointing to the manila settings tab instead of WM settings dir. Obviously if manila won't load then this shortcut won't work for you anyway. Unfortunately I have no idea how to get that settings shortcut back on the start menu and working for you :/ You could use Total Commander to manually delete all of the files altered by MaxManila and then soft reset - your phone will then restore the rom's original files. There are a lot of files in MaxManila though, so it might take a while to hunt them all down. Use aiCabExplorer to open MaxManila's cab file and get the names of all the files to delete.
Click to expand...
Click to collapse
I tried renaming all the files and registry keys obviously associated with MaxManila, with no luck. I don't know how the files in the CAB get installed, but I searched for half a dozen of them and they were nowhere to be found.
klausner said:
I tried renaming all the files and registry keys obviously associated with MaxManila, with no luck. I don't know how the files in the CAB get installed, but I searched for half a dozen of them and they were nowhere to be found.
Click to expand...
Click to collapse
Did you use Total Commander? File explorer isn't powerful enough to edit system files
millski said:
Did you use Total Commander? File explorer isn't powerful enough to edit system files
Click to expand...
Click to collapse
TC for the registry, Resco for the files, but I have it set to show all types.
Well I've just checked - I can see and delete all of the MaxManila files in my windows dir except the homeservice.dll using TC. Don't know what else to suggest; there must be a way to get back the settings shortcut (?)
To get settings, change registry as shown:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000000

Categories

Resources