[REQ] utility to change the default program assignment - General Questions and Answers

Hi,
i am looking for a utility to change the default program assignment.
So to change the default program for jpg or mp3.
This program is somewhere here, but I can not find it.
with friendly greet
starbase64

Moved as not software release..
Total Commander can change the default app for file extensions.

AdvancedConfig also allows you to change file associations.

Hi,
Thanks for your help, but that's not what I want.
I am looking for a special program that must be here somewhere.
with friendly greet
starbase64

All this info is held in the registry, but it is a two step job.
[HKEY_CLASSES_ROOT\.mp3] has a (Default) data value of 'MP3File'
[HKEY_CLASSES_ROOT\MP3File\Shell\Open\Command] has a value of 'wmplayer.exe "%1"'
The file type has to be converted to a file type string to get to the correct subkey value in order to find the application that will be used to try and open it.
Another example :-
[HKEY_CLASSES_ROOT\.doc] 'docfile'
[HKEY_CLASSES_ROOT\docfile\Shell\Open\Command] 'pword.exe %1'
These values can be changed with any registry editor.

Related

Batch files in CE?

Hello,
Is it possible to write batch files in CE? I would like to create a script to start a sequence of executables. For instance, start bluetooth, checkpoint and then TOMTOM.
Thanks,
Marco
Yes that interests me too
Yes,there was a .cab in Sin-merged Rom 2003se for Himalayas about Dos.
Try check out the post.
PS: Don't use pocket dos.
I find this
MortRunner
"With MortRunner, you can start, close, activate, and hide programs, and even remote control them to a certain degree.
It's more an hacker tool without a nifty interface, which can execute some kind of batch files..."
Here you can d/l the latest beta. There's not much new there, but it might be useful for some...
- Includes a tool to support WM's autorun on storage card insert/remove
- Rotate command
- .mortrun extension only registered when started without parameters (to avoid it's changed to the autorun folder)
(Don't worry about the German forum, the zip includes an English manual)
Mort > Thanks for your work
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
I'd like to do this to be able to use a shortcut to this file and so voice command mute/unmute via Microsoft Voice Command.
See this thread
DocteurN said:
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
Click to expand...
Click to collapse
No.

Making a cab - a small tutorial

Because people asked and didn't find the threat on MoDaCo, a small tutorial here. The example is from my Slide Panther theme, there is another one in make.zip. You have to write an *.inf for each cab you want to create. I t contains all files from a specific location and where they will be copied to. You can also specify reg keys.
[Version]
Signature = "$Windows NT$" <-- no changes needed
CESignature = "$Windows CE$" <-- no changes needed
Provider = "frauhottelmann" <-- change to your name
[CEStrings]
Appname="slide panther" <-- the name that will be displayed in the programs menu in settings
[CEDevice] <-- you don't have to change this for the vox
ProcessorType=0
VersionMin=5.2
VersionMax=6.0
[SourceDisksNames]
1=,"Source1",,"Home" <-- specify the name of your source and then the folder with your files (should be in the same location of the *.ini)
[SourceDisksFiles] <-- All files you want to copy have to be here. The 1 stands for Source1 mentioned above, if you have more than one sources (folders) you have to add it above and add an = 2 ... to the end of the corresponding files!
"Slide Panther.home.xml"= 1
"panther.jpg" = 1
"pantherlc.jpg" = 1
[CopyFiles1] <-- Here you have to list the files for one destination folder on the phone. More than one destiantion means more [CopyFiles2] etc.
"Slide Panther.home.xml"
"panther.jpg"
"pantherlc.jpg"
[DestinationDirs] <-- Specify the destinations for the above
CopyFiles1=0,"\Application Data\Home"
[RegData] <-- add reg data, the following is for string values, I don't know how to add dwords, but I never needed it!
HKCU,ControlPanel\Home,Scheme,,\Application Data\Home\Slide Panther.home.xml
[DefaultInstall] <-- Finally specify what you want to be installed, here every destination dir and reg data should be included
CopyFiles=CopyFiles1
AddReg=RegData
Click to expand...
Click to collapse
Once your done with your *.inf, just drag'n'drop it onto the cabwiz.exe and it'll make a cab with the same name as the *.inf! Now you can install it!
Or the alternative, use this program!
BIIIIIIIIIIIIG thx to the german guy ;D
but don't we have to change the versionmax to 6.1 or we will get this stupid "this prog may not display correctly" message??
No, this is the version of WinCE not Windows Mobile, which is still at 5.2...!
Can this be used to install changes to the registry that will be lost after a hard reset?
Roland
Yes everything you install with a cab is lost after hard reset
Nice work...as always...
/**still waiting for german emulator image......same here for italian's one. **/
could you please be a bit more precise about those regkeys? what are all these commas? what are the folder, keys, values?
HKCU,ControlPanel\Home,Scheme,,\Application Data\Home\Slide Panther.home.xml
Click to expand...
Click to collapse
HKCU = HKEY_CURRENT_USER
then after the comma the "folder" path, after the next comma the key name
then after the next comma comes the reg key type, so none is for a string, for others you have to search, because I don't know them. And finally after the last comma comes the value of the reg key!
funny thing, now that i was looking for th value-types i found the tutorial on modaco.
http://www.modaco.com/content/Smart...iscussion/235885/Tutorial-Creating-Cab-Files/
and here are the flags for diferrent types of registry entries:
[add_registry_section]
registry_root_string , subkey,[value_name], flags, value[,value]
[registry_root_string, subkey,[value_name], flags, value[,value]]
registry_root_strings
String that specifies the registry root location. The following table shows the values that are supported by Windows CE.
Root string Description
HKCR The same as HKEY_CLASSES_ROOT
HKCU The same as HKEY_CURRENT_USER
HKLM The same as HKEY_LOCAL_MACHINE
value_name
Registry value name. If empty, the "(default)" registry value name is used.
flags
Numeric value that specifies information about the registry key. The following table shows the values that are supported by Window CE.
Flag Value Description
FLG_ADDREG_NOCLOBBER 0x00000002 If the registry key exists, do not overwrite it. This flag can be used in combination with any of the other flags in this table.
FLG_ADDREG_TYPE_SZ 0x00000000 The REG_SZ registry data type.
FLG_ADDREG_TYPE_MULTI_SZ 0x00010000 The REG_MULTI_SZ registry data type. The value field that follows can be a list of strings separated by commas.
FLG_ADDREG_TYPE_BINARY 0x00000001 The REG_BINARY registry data type. The value field that follows must be a list of numeric values separated by commas, one byte per field, and must not use the 0x hexadecimal prefix.
FLG_ADDREG_TYPE_DWORD 0x00010001 The REG_DWORD data type. Only the non-compatible format in the Win32 Setup .inf documentation is supported.
The following code example shows a typical [AddReg] section.
AddReg = RegSettings.All
[RegSettings.All]
HKLM,%reg_path%,,0x00000000,alpha ; <default> = "alpha"
got it from here http://www.sundialsoft.freeserve.co.uk/cabinfo.htm
could it be that we need to make a .inF (as it says in the instructions) file and not a .inI file?
Is it possible to delete registry entries??
Yes it's inf sorry. And I am not aware of a way to delete reg key with cabs!
Hi frauhottelmann,
It is realy great starting point for CAB maker. I will use this instructions for making my Sliding Panel Default Green cab for 6.1 ver 1.1 ROM.
I have found something really great for cab makers: http://www.gpcarreon.com/?p=524
Haven't tried it though!
EDIT: Under Vista it does, unfortunately, not work!
It DOES work, in compatibility mode!

Question for ROM cooks - possible to change system folders?

Advanced Config has a section for setting new values for "My Documents", "My Ringtones", etc. but many of them don't actually work.
I'd love to be able to use "\Donny" instead of "\My Documents", etc.
Call it irrational, but I *HATE* the Windows defaults of "My [whatever]". I always change them (via the registry) on my desktop/laptop PCs, and it drives me nuts that I can't do it in WM.
So, is it possible during the ROM cooking process to make such changes? Or are they simply hard-coded into the WM OS.
If they're hard-coded, is it in a single DLL? (That I could maybe hack with a hex editor?)
These are all variables that you can control at the time of cooking, by editing various .rgu's in the system folder. Look to the folders with Lang or 0409 (or your regional code) in the name, as these are the language-localization strings.. all folder names are considered language-localized as "My Documents" is obviously different in each language
Use a text editor that supports unicode such as EmEditor to edit these .rgu's.
Hope it helps!
That's AWESOME! I've been looking for a reason to start cooking... now I have one!
One follow-up question, if I may...
Instead of hard-coding the values, can you tell it to look in the registry (so the "Shell" entries actually work)?
Thanks for the reply!
The .rgu's represent the registry as it's compiled by the ROM kitchen, so editing the .rgu's will have the same effect as editing the registry.
Da_G said:
The .rgu's represent the registry as it's compiled by the ROM kitchen, so editing the .rgu's will have the same effect as editing the registry.
Click to expand...
Click to collapse
Not sure if you're missing my point or if I'm not understanding you.
If the .rgu's represent the registry as it's compiled then the locations for My Documents, Program Files, etc. would all be hard coded in the ROM, and once again, changing the settings in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders won't actually do anything. Right?
So, I'm asking if there's a way to put some sort of magic pointer (or maybe leave it blank?) to say, "If you want to know the location of 'My Documents', check the registry settings at HKCU\....\Shell Folders"

[IDEA] And what about file association ?

When I search in the wp7 forum I see few thread about file association in wp7 but I just remark that it's not so difficult to do using the excellent wp7 root tools SDK:
Code:
string Me = "1ff297cf-853f-4c7c-b9ca-1d255cb4c387".ToUpper(); //our Application's AppId
string Format = ".xml";
//set the defaut file association for .xml to FileAssoc instead of xmlfile
Registry.SetValue(RegistryHyve.ClassesRoot, Format, "Default", "FileAssoc");
//create the corresponding registry key
try { Registry.DeleteKey(RegistryHyve.ClassesRoot, "FileAssoc"); }
catch { }
Registry.CreateKey(RegistryHyve.ClassesRoot, "FileAssoc");
//create the key BrowseInPlace (I don't know why, I just do it, it takes one line)
Registry.SetValue(RegistryHyve.ClassesRoot, "FileAssoc", "BrowseInPlace", 0x0);
//and the app that must open .xml file (our app)
Registry.CreateKey(RegistryHyve.ClassesRoot, "FileAssoc\\shell\\open\\command");
Registry.SetValue(RegistryHyve.ClassesRoot, "FileAssoc\\shell\\open\\command", "Default", "app://" + Me + "/_default?type=FileAssoc&file=%s");
But if each application try to play with those settings it wil be the mess in the phone that's why I suggest that someone create an app that manage file associations for the user to choose what application he want use for a given file type and to support more file type (like .epub or .rar).
moreover the application that create File association must use native code but it's not necessarily the case for the application that read the file it would allow developers to publish this app on the marketplace (by adding an other source like skydrive or url) and the application that create File association would just be a big plus for Interop-unlocked phones.
Here is an app that display xml file in a textbox it's just an exemple of how it works:
fbe.am/8ld ==> xap
fbe.am/8le ==> source
What do you think ?
I actually knocked up an app very similar to this a little while ago, I didn't get around to finishing it but it was fully capable of searching the registry and compiling a list of known file extensions. As well as searching the installation directories of app's for certain .xml which contained the file extension that the app wanted to be associated with.
It was all written as a managed app, and I don't know if someone would want to look at it, but if there is some interest I can put it up.

Do you want Binary and Multistring values registry editor?

Hi friends. I am working on registry plugin for Phone Commander. There is possible to make Binary and Multistring values management, but it will a lot of to do. Could you anybody use it? For example for language changing etc. I found no one WP7 registry editor able to write those values (Schapman's one can read it only, my very old HTC7ProMultistring.xap and Hex2Base64.xap can prepare ProvXML code for importing only). I do not want to lost time for unusing feature, post your mind.

Categories

Resources