Related
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
serfboreds said:
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
Click to expand...
Click to collapse
This is actually something I've been wondering about and kinda 'working on'.
I'm trying to find out how certain applications store registration info (registry, files, etc.)
Just a few in question that I'm trying to auto-register on flash:
Resco Tools: Backup and Explorer
Handmark Games (Yahtzee and Scrabble)
serfboreds said:
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
Click to expand...
Click to collapse
It's simple. If you bought WinCE you will then be able to use the option to export and import REG Keys.
So all you would need to do is open a CAB from any program -- Export the REG -- and close it out.
Then open the CAB project you made and import the REG key and your good.
But you must first buy WinCE. The evaluation copy doesn't let you do this. Well it didn't let me.
For cabs that are just changing reg keys for you and not actually installing anything...it's easier to just create an xml file. Name the xml file _setup.xml and use makecab from the command line like this:
Code:
makecab _setup.xml yourcab.cab
CeREgistryEditor also makes cabs from registry files. Free program.
studentjunk said:
CeREgistryEditor also makes cabs from registry files. Free program.
Click to expand...
Click to collapse
The two aspects i was looking for are solved by this program and GC's suggestion. Thanks!
studentjunk said:
CeREgistryEditor also makes cabs from registry files. Free program.
Click to expand...
Click to collapse
So, I need to give a little more explanation for my question.
I am pretty sure that I know how to change registry keys one by one using XML.
I am not sure if it is possible to export everything from a folder in a way that it can be combined with other registry exports and ultimately cabbed. Say I am looking to replace every key in HKLM/Software/Microsoft/Today after a new flash so that certain things are enabled and disabled.
My hope is that I will be able to export the entire "today" in such a way that I can add those to a wince cab. It would be nice to be able to export several of these "folders" at one time and drag them over.
Like I said, I am trying to prevent having to do this one key at a time so that in the future even if I change the setup I don't have to change the strategy for export/import.
So, I need to give a little more explanation for my question.
I am pretty sure that I know how to change registry keys one by one using XML.
I am not sure if it is possible to export everything from a folder in a way that it can be combined with other registry exports and ultimately cabbed. Say I am looking to replace every key in HKLM/Software/Microsoft/Today after a new flash so that certain things are enabled and disabled.
My hope is that I will be able to export the entire "today" in such a way that I can add those to a wince cab. It would be nice to be able to export several of these "folders" at one time and drag them over.
Like I said, I am trying to prevent having to do this one key at a time so that in the future even if I change the setup I don't have to change the strategy for export/import.
Click to expand...
Click to collapse
Read my email and take a look at the registry cab I attached.
gc14 said:
Read my email and take a look at the registry cab I attached.
Click to expand...
Click to collapse
Thanks GC, this is what I needed.
Final XML
Here is my final XML for anyone who cares to share theirs, I learned a lot by looking at GC's (credit where it is due). I put my sdconfig.txt on here too.
Feel free to let me know if there is a better way to do any of this. I will be testing tonight to see how it does after a flash. This should save me 20 minutes of tinkering if everything goes right.
Other than the background not being possible (that seems hard to believe there is no way to do this), I will only have a few things to set up when flashing if all goes well. This will be so worth the hour time it took to create.
Any way to register devices via XML (wifi, bluetooth)?
PS. Though I didn't do it here, I have cabbed the _setup.xml file for installation with UC.
All those CPY commands are still unnecessary. You could make one cab to do all of that very easily.
Also, why do you have LOCK/HIDE commands around the reg cab?
gc14 said:
All those CPY commands are still unnecessary. You could make one cab to do all of that very easily.
Also, why do you have LOCK/HIDE commands around the reg cab?
Click to expand...
Click to collapse
Got those two things cleared up, cabbed the files to copy which works great.
Can't seem to figure two things out:
1. xml didn't install registry keys. Did I miss some setting in WinCE (I just set it as universal, added to files, and set the location to %InstallDir%). I had all of the files I was going to copy in UC in this same created cab as _setup.xml; the copied files went across fine, but no registry keys were changed. This leads me to believe that xml didn't load correctly or at all.
2. Copying folders. I cant seem to copy folders directly into WinCE so I would think that the folder must be created then the files must be copied across. How do you create these folders (I want to copy across AstroGPSLauncher and HTC Home icons to root). I tried using the copy command in UC as well but I think the syntax was wrong by using backslash after folder name in CPY1 and no slash after new folder in CPY2.
Thanks, I am so close to getting this.
Got those two things cleared up, cabbed the files to copy which works great.
Can't seem to figure two things out:
1. xml didn't install registry keys. Did I miss some setting in WinCE (I just set it as universal, added to files, and set the location to %InstallDir%). I had all of the files I was going to copy in UC in this same created cab as _setup.xml; the copied files went across fine, but no registry keys were changed. This leads me to believe that xml didn't load correctly or at all.
2. Copying folders. I cant seem to copy folders directly into WinCE so I would think that the folder must be created then the files must be copied across. How do you create these folders (I want to copy across AstroGPSLauncher and HTC Home icons to root). I tried using the copy command in UC as well but I think the syntax was wrong by using backslash after folder name in CPY1 and no slash after new folder in CPY2.
Thanks, I am so close to getting this.
Click to expand...
Click to collapse
1. You don't use WinCE to create cabs from provxml. You use makecab as I previously stated.
2. Get rid of the CPY commands, don't use them at all. If you want to install youricon.png to root, you just add youricon.png as a file in the cab and set the location to root. Default install directory doesn't matter, you can specify install location for each file separately.
gc14 said:
1. You don't use WinCE to create cabs from provxml. You use makecab as I previously stated.
2. Get rid of the CPY commands, don't use them at all. If you want to install youricon.png to root, you just add youricon.png as a file in the cab and set the location to root. Default install directory doesn't matter, you can specify install location for each file separately.
Click to expand...
Click to collapse
So, makecab worked to create the cab but it states that the installation of the cab was unsuccessful. Here is the zip of the setup file and the cab I created (I kept yourcab.cab naming for fun).
P.S. I got rid of all copy commands, but still can't figure out how to create a new folder on the device using xml or wince. Please explain how I can cab a folder with all its contents, or create a new folder in xml, then UC a cab to install the contents.
That version of WinCE doesn't allow for import of complete folders. Later versions do.
You can also try QuickCab. Don't remember the user's name, but it is being developed by an XDA member. I believe it allows for copying complete folders, and has a simple GUI.
Edit: If you are just looking to do it for AstroGPS it should be fairly easy. Isn't it just one or two files in /AstroGPS... and a shortcut in /windows/start menu/programs? If so, just drag the file (or two) into WinCE, and it will ask you where you want it to be installed. Then just choose /AstroGPSLauncher (you have to create a new folder, but the option is right there).
bedoig said:
That version of WinCE doesn't allow for import of complete folders. Later versions do.
You can also try QuickCab. Don't remember the user's name, but it is being developed by an XDA member. I believe it allows for copying complete folders, and has a simple GUI.
Edit: If you are just looking to do it for AstroGPS it should be fairly easy. Isn't it just one or two files in /AstroGPS... and a shortcut in /windows/start menu/programs?
Click to expand...
Click to collapse
Thanks for looking into the second issue.
Right, but I need to have that in a folder called AstroGPSLauncher on the root. I also am looking to install the HTC Home folder (overwrite the other one). I will get a newer copy of WinCE.
Anyone have any idea why this cab won't install?
serfboreds said:
Other than the background not being possible (that seems hard to believe there is no way to do this)...
Click to expand...
Click to collapse
Are you talking about your Today screen background? You are basically looking to have a certain theme selected? If so, then that is no problem. TSK's are basically just cabs themselves. The Theme selection app in WM just reads the TSK, imports the registry color info, and copies tdywater.gif/.jpg and stwater.gif/.jpg to /windows. At startup, WM reads those image files and assigns them as your Today and Start Menu wallpapers. Just use WinCE to export the contents of the TSK. Then use whatever method you like to update your registry and copy those files to /windows.
serfboreds said:
Any way to register devices via XML (wifi, bluetooth)?
Click to expand...
Click to collapse
I'd like to know this as well. I might look into it, but please let me know if you find a solution. Thanks!
Serf, do you have AIM? If so pm me your sn so we can talk over that. This is a really really simple process, and I know exactly why the cab isn't installing, but it sucks to explain over forums/email.
gc14 said:
Serf, do you have AIM? If so pm me your sn so we can talk over that. This is a really really simple process, but sucks to explain over forums/email.
Click to expand...
Click to collapse
serfboreds7777 and I am online now.
I have this mostly figured out for my needs, a few tweaks and some new ideas since getting things flashed with UC / XML / Cabbed files. If anyone wants to get some help setting up their xml and UC I will do my best to help you through the process.
Props to GC, the man knows his stuff.
hey there...i was wondering if anyone could take a sec to help a n00b out...
i've been working on a rom (6.5 build 23544) using Ervius visual Kitchen for gene by BesFen for a few days...i've finally found all the packages i want and made a few ones myself...i made a test rom and its running well...
but there's still one huge hole left in my finished build...so i just needed some help i.e. needed to know a few things
1. where do i change the the default splash screen (the orange windows image) that pops up after the boot screen
2. where to replace the startup gif image and wav sound
3. how to set an external theme as my default and removing the inbuilt themes that come bundled with the 6.5 builds
4. how to change the default icons (i have an icon pack as well a cab file of the same)
5. if there is a way to set up a shutdown animation and splash screen in the kitchen before creating the rom
6. edit any other settings and tweaks while still in the kitchen phase
7. change the start menu icons for the softkey buttons and start menu
8. edit the taskbar and softkey bar to make it transparent on the today screen as well as inside the menu
9. remove default ringtones and replace them with our own
i tried searching the net and going through the posts here but i'm drawing blanks...
i'd appreciate any solutions that come my way!!
solutions!!
found a few solutions myself...a lil' help from the boards...
if anyone else is interested in them, here they are-
1. the splash screen can be changed by replacing the welcomehead.96.png in the "SYS\28230\dpi_96_resh_240_resv_320\COMMON\Redist_dpi_96_resh_240_resv_320\" folder file with your own
while you're at it, you could replace the complete.96.gif file too
*but make sure that you have edited your images to the correct format and resolution before making the changes
2. the animated.gif and bootuphtc.wav files in the "kitchen\OEM\OLDGENE\COMMON\OEMOPERATORS" folder can be replaced with your own
4. add your icons in the "kitchen\SYS\28230\dpi_96\COMMON\Base_DPI_96" folder thereby replacing the default icons
*make sure that the names of the icons you add to this folder is the same as the default icons
6. to change the rom's date and give it your own name, make changes in the "mxipupdate_OEMVERSION_100.provxml" file in the "kitchen\OEM\OLDGENE\COMMON\OEMVERSION" folder,
this can be done by opening the file in notepad and making your changes in the 'value' section
do correct me or suggest an easier method if known to you
as for problems 3,5,7,8 and 9...research and testing is underway...hope to get past that hurdle soon...
use the attached folder and put it inside OEM
solve your ringtone by editing the *.rgu file and initflashfiles.txt file available in this folder
solve your theme problem by editing the *.rgu file and initflashfiles.txt file available in this folder
Note: I have used two different mp3 file for ringtone n message notification
vaibhav_batra_the_techguy said:
use the attached folder and put it inside OEM
solve your ringtone by editing the *.rgu file and initflashfiles.txt file available in this folder
solve your theme problem by editing the *.rgu file and initflashfiles.txt file available in this folder
Note: I have used two different mp3 file for ringtone n message notification
Click to expand...
Click to collapse
tried it out and yeah it works...thanx!!
any idea about gettin transparent task bars and menu bars??
i wanted to make them completely transparent, not transluscent...
i've gotten transluscent ones working in the start menu but i can't do anything about the today screen!!
i am also searching how to add new theme...but i found this is..
http://forum.xda-developers.com/showthread.php?t=650463&highlight=theme
saurabh88 said:
i am also searching how to add new theme...but i found this is..
http://forum.xda-developers.com/showthread.php?t=650463&highlight=theme
Click to expand...
Click to collapse
you could just add the theme you want ( in .tsk format) in the kitchen\SYS\Themes_Lang_0409_DPI_96_RESH_240_RESV_320 folder...
tried it out and worked well...
all you have to do is go into settings\today\ when the phone starts and select which one you want...
as for setting your own theme as default...clueless...
guessing you have to extract all files from the theme and place them in the kitchen\dpi_96\COMMON\Base_DPI_96 folder and edit dsm and rgu's from somewhere to set it as default
personally...i've found a loophole to the whole theme problem (pardon the pun) so i don't bother with it anymore
more solutions...
3. to remove the inbuilt themes like dvf green, vera wang red, etc. etc. just delete the theme_dpi_96 folder in the kitchen\SYS\23544\dpi_96\COMMON folder...
to add your own themes copy the .tsk files into the kitchen\SYS\23544\dpi_96_resh_240_resv_320\0409\Themes_Lang_0409_DPI_96_RESH_240_RESV_320 folder and delete the inbuilt .tsk files you'll find there
*NOTE*
for those who want to have a modified theme, i suggest editing the .png images in the folder mentioned below...the ones with "classicblue" "default" and "black" at the start of their name to your preference and leaving the classicblue.tsk file untouched so that this theme becomes your own in case you install another theme and want to go back to your edited theme
7. edit the .png images in the kitchen\SYS\23544\dpi_96\COMMON\Base_DPI_96 folder...
the softkey icons are the ones with names like default_toolbarIconBubbleButton.png...they're all around the same area, so easy to find...
for editing, i suggest using photoshop of you have it, else an easier alternative is the paint.net editor available at http://paint.net
8. now i couldn't get a transparent taskbar and softkey bar on the today screen without using titanium but i did manage to get it to be fractionally more translucent but editing the .png files found in the folder mentioned above
i'll attach the files if needed...
my ROM's coming along so i'll keep you posted with more solutions as they come along...have fun cooking!!
Suggestion
Remove all landscape theme files, bcs no-one uses the GENE in landscape mode and it will make the ROM lighter in weight
vaibhav_batra_the_techguy said:
Remove all landscape theme files, bcs no-one uses the GENE in landscape mode and it will make the ROM lighter in weight
Click to expand...
Click to collapse
the rom i'm working on (and using for testing purposes) doesn't have landscape theme files...i've just added the wallpaper for kicks...
thanx for the input though...its weird getting 275 views and just 3 replies...
If so, can you explain how you did it because I haven't been able to figure it out yet. By the way, I've already tried all of the standard methods explained here on the forums.
I figured it out!
In Dinkn's glassy icons the facebook file name is: Start_Icon_HTC_facebook.png. This file resides in the windows folder. When you change the icon lt doesn't create a facebook.bmg in the cash. The solution is to make a copy of the original file, rename it to facebook.png and past it to the folder of your choice. Now when you use one of the icon changing programs to change the icon it will create the bmg file in the cash and the new icon will show in the quicklinks menu--sweet
i just used that ICON changer and it worked 1st time...
just hit the show all default icons...then from there..replace it with the one you want
Here is a simple app I wrote to create shortcuts to items inside the Control Panel.
On Windows 6.1 it was quite easy to create link to items such as "Remove Programs" or "Connections", it was a matter of finding the correct command line that launch the cpl applet and use the same icon. (e.g: "#ctlpnl.exe cplmain.cpl,23?\Windows\shell.dll,13")
On Windows 6.5, Microsoft has decided to use PNG for icons, which makes the job a little bit more complicate.
While you can create the link in the same way, to get a picture you have to convert the PNG file into an ICO file and move it into some binary as a resource file (exe or dll)
This tool allows you to create links to items inside the "Settings" keeping the original icon, so you can use them as QuickLinks.
What it does is pick the PNG associated with a particular item, converted it to ICO (64x64-8bit) and create a small executable to hold the picture.
The executable also contains the command line so you can launch the specific Settings item running the exe.
I wrote it for my HD2, but it should work on any other device with WM 6.5 (at least it does with the emulator)
Reqs:
The main binary (link2cpl.exe) needs .NET CF 3.5 to run.
The exe it creates are stand alone binaries, so you can use create the files once, and remove the tool.
Any feedback welcome (if is good of course 8)
Couple of screenshots to give you an idea:
good idea. I wonder: how do you create .exe files?
it works good, except backlight doesn't work and it seems that some parts are targetting wwe-Roms.
Great work!
Micha
Thanks for testing 8)
What I did was to create a "generic" exe in c++, with an icon of the size size (64x64 8-bit) inside and enough space for a big command line.
Then, the application loads whatever PNG associated with the settings entry and convert it to ICO format (which was a little tricky because .NET CF does not have any direct conversion, so I have to write the ICON manually (header,bits and mask).
After the ICON is created (in memory) I put it inside the .EXE file.
First it writes the first part of the .EXE, then replace the command line with the one from the registry for that particular item, and finally writes the ICON as a resource.
I found that some of the entries in the registry are not been display (I'm running an Energy Rom in my HD2, and I see more items in my list than the ones that appear in the "Settings" menu. for example, the "Beam" item.
I guess those are the ones that don't do anything at all.
If you choose to not create an exe file, the link (.LNK) it generates contains the command line (e.g: cntlpnl.exe cplmain.cpl,23) which can be used to see if it does something or not.
The main reason I create it, is beacuse I wanted to have an direct link to the "Usb2PC" so I can disable the ActiveStorage while connected with just one click. I guess I'm a lazy b*st*rd 8)
Thanks. Work great for TP2
dubidu said:
What I did was to create a "generic" exe in c++, with an icon of the size size (64x64 8-bit) inside and enough space for a big command line..................
The main reason I create it, is beacuse I wanted to have an direct link to the "Usb2PC" so I can disable the ActiveStorage while connected with just one click. I guess I'm a lazy b*st*rd 8)
Click to expand...
Click to collapse
Thank you. It worked great for my TP2 with Energy ROM. I always use quickmenu (now compact menu in NRG ROMs) for which I had created the shortcuts for all the setting menu items without any icons. Now that I have all the exe with original icons, it will stay in my UC folder and I can use it anywhere as you did. Thank you again.
Glad that it works, I only tested on my HD2 and with the VM emulators.
There are a couple of apps out there that allow you to create links, but don't work on WM6.5 due the "new" png files.
As far as I know, the only way to provide a image for a link file is if it embedded as an ICO inside a library (or exe). You can get the link easily, but not the original image, that's why I wrote this one, so it's easy to obtain icons from PNGs files 8)
8)
Just notice that backlight settings lnk does not work for me.
Did you test it?
Just notice that backlight settings lnk does not work for me.
Did you test it?
Ummm...
I'm using Energy rom in my HD2, and I don't have a BackLight icon in my 'settings', but it's possible that other roms got it.
The tool goes through the registry and gets all the entries corresponding to CPL items.
The key is 'KLM\Security\Shell\StartInfo\Start'
The links and exes are created using the information from the regsitry, so depends on the version of WM (vaniala, rom, etc).
for example, you may have:
KLM\Security\Shell\StartInfo\Start\cplmain.cpl,13 (use for the Today icon)
Icon=\Windows\Start_Icon_today.png
This tool takes all the entries, puts the .png into a .exe (converting it an icon), and creates a link pointing to the created exe.
If executing 'cntlpnl.exe cplmain.cpl,13' doesn't bring the Today settings, it's something outside the link it self.
I notice there are some items with a 'Redirect' key.
Inside 'KLM\ControlPanel\BackLight' key I can see a String key 'Redirect' with the value: 'BackLight.exe' so I guess the control panel will automatically execute that binary rather than load a control panel library (cpl) as it does for the rest of items.
If that's the case, you can just create the lnk to that exe which will also give you the icon, the idea of the Link2CPL was to access the .cpl items directly, and to have the proper icon which since WM 6.5 is not as easy as it looks 8)
Yes I see that in registry too but cannot find backlight.exe to create a shortcut. I actually don't know what does Redirect mean.
Anyway, very good job Dubidu!
Quack2 said:
Yes I see that in registry too but cannot find backlight.exe to create a shortcut. I actually don't know what does Redirect mean.
Anyway, very good job Dubidu!
Click to expand...
Click to collapse
Redirect means to run the exe instead of use the original/default.
I will check tomorrow in one of the emulators, my HD2 doesn't have a BackLigth in the settings, so that entry is not there.
You can create 'manual' links with the notepad, or with something like totalcommander, so if you can find the exe that does the backligth.exe on your WM, should be easy.
I will keep you posted 8)
I don't access to backlight directly from settings but using power settings. I had just tried to create a shortcut from the backlight item shown in the list displayed in your app.
Older phones have backlight settings as a separate item in the control panel, but newer ones have it as a tab in power settings.
If the backlight settings you want to access is the one in the first attached picture (tab in power settings), that it's a external executable.
On my HD2 (Energy), the name of the exe is powerexe.exe in the \windows directory.
there are a couple of links (power.lnk and power settings.lnk) to that exe.
unfortunately, the exe does not bring you directly to the 'backlight' option, it shows both battery and backlight (second capture)
btw, today one friend at work asked me for a simple app to enable and disable the
"dim backlight if devide is not used for:" checkbox, with a just one click.
Maybe that's was the reason why you wanted a link to that backlight settings.
attached is the simple program which does that, check/uncheck that option.
Is it possible to make additional tab to put own path to application and path to .png file? Because sometimes it is necessary to link executable without icon with png, or ico file. It will be very useful function. Thank you in advance.
hi,
I can add that option, shouldn't take too long, but the icon will not be "inserted" in the original exe, that would require lot of work to rebuild/recreate the resource section inside the executable.
The icon (png converted to icon) would be put inside a separate exe or a dll.
the new generated exe would contain the command line to execute the original exe, and the png icon, so when you create a link to that one, it will automatically pick the embedded image.
Would that help?
Yes, it is the same that I mean. To link together exe without icon and png or ico files. Because if you put icons in dll file you must sign it. For exe it is more convinient.
check this out.
Png2Exe 8)
I will try to change the FileDialog and use something different because the default .NET ones are rubbish 8)
Thank you! It is the same that I mean. File dialogue really bad, it is impossible to find exe everywhere. If it possible to meke normal one it will be really great program.
I had artemis rom and i was able to change the sequence of my icons by holding them and dragging them, is there a cab for that? and is it possible to create folders in the start menu and put apps in ther ??? thanks
yoaddictable said:
I had artemis rom and i was able to change the sequence of my icons by holding them and dragging them, is there a cab for that? and is it possible to create folders in the start menu and put apps in ther ??? thanks
Click to expand...
Click to collapse
Ehh; ok.
What do you mean with "was able to change the sequence of my icons by holding them and dragging them"
Do you mean this in the home screen??
In case of yes, this is possible in the latest stock Rom 3.14; ore when you used CHT. Of course beside Artemis rom there are other cooked rom who have build this in. (No there isn't a cab file present, as long I know)
If you mean to have the option drag and move in your start menu; each WM6.5.X have this possibility. and no this isn't possible on a WM 6.5
Creating folders in start menu is easy.
Open your explorer, navigate to: \Windows\StartMenu\Programs\
There you can add folders and shortcuts.
umm bro u thanks for everything it was rly helpfull! however u didnt understand what i ment by dragging the thing in start menu, ive seen a cab before but i dont have the link here.. its just another way for re arranging ur icons
winmo 6.5 you can only move start items to the top, winmo 6.5.x you can drag them around. There is no cab to enable it on 6.5 roms.