Jump to content

issue about associating media type


Recommended Posts


easiest way i'd say is to export your current registry (if u like the way they are right now)

then import them when setup'ing

so go to these values in your regedit

HKEY_CLASSES_ROOT\.WMA

HKEY_CLASSES_ROOT\wmafile

HKEY_CLASSES_ROOT\.MP3

HKEY_CLASSES_ROOT\mp3file

HKEY_CLASSES_ROOT\DVD
Link to comment
Share on other sites

What you want to do is go to your HKEY_CLASSES_ROOT (HKCR) section of your registry.

What you want to do is go to the extension of the file you are looking at. For example .mp3, go to .mp3. What you want to do is associate that to a program. If you look under the default section of .mp3 you will find mp3file. I would change this to Winamp.File, or so other naming convention you choose. Do this for each extension you want associated with Winamp.

Now add a Winamp.File registry key under HKCR. Under the Winamp.File you are worried about two things here. The icon, and the opening command. For the icon, add a DefaultIcon key under Winamp.File. Under the default section, add the path to the icon, and index, if any. For the command to open, you will need to add a Shell key under Winamp.File, followed by and Open, then by a command. Under the default section of the Command, is where you put your command to execute. It should default to open. If you have other commands, such as enqueue, which you want as default, under the shell key, you should set the default section to enqueue.

The best way to get an understanding of this is by looking at the other registry keys.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.mp3]
@="Winamp.File"

[HKEY_CLASSES_ROOT\Winamp.File]
[HKEY_CLASSES_ROOT\Winamp.File\DefaultIcon]
@="C:\\Program Files\\Winamp\winamp.exe,11"

[HKEY_CLASSES_ROOT\Winamp.File\shell]
@="Enqueue"

[HKEY_CLASSES_ROOT\Winamp.File\shell\open]
[HKEY_CLASSES_ROOT\Winamp.File\shell\open\command]
@="\"C:\\Program Files\\Winamp\winamp.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Winamp.File\shell\Enqueue]
[HKEY_CLASSES_ROOT\Winamp.File\shell\Enqueue\command]
@="\"C:\\Program Files\\Winamp\winamp.exe\" /ADD \"%1\""

There is still a lot more to it, but this is the jist of it. Hope this helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...