Customizing XP 'Autorun' & 'My Computer'

Discussion in 'Software Q&A' started by adit_sen, Oct 2, 2006.

Thread Status:
Not open for further replies.
  1. adit_sen

    adit_sen New Member

    Joined:
    Feb 8, 2004
    Messages:
    342
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Perth, A*stralia
    Hi all...

    Now when a CD/DVD/Media is inserted in winXP, a autorun pop's up. I want to know how to add my custom application in that autorun menu. Say for example, when I insert a DVD, I get options to play with WMP and so on. How do I add my own application there, say Media Player Classic? Or anything else for that matter? I'm sure it can be done via some registry hack, as some program installations do add themeselves into the autorun.

    Another thing, in My Computer, certain programs such as like messenger add their custom links within my computer, for eg, 'My Shared Folders'. How to I add / remove links from there?

    Cheers
    Aditya
     
  2. blueshift

    blueshift Wise Old Crow

    Joined:
    Apr 17, 2005
    Messages:
    1,227
    Likes Received:
    17
    Trophy Points:
    0
    Location:
    Inside the Pixel
    1. Use TweakUI for adding the application name.
    2. Use XP Context tools to add menu to 'My Computer'
    or in Registry editor,
    goto HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\, You can add or remove items under it.
     
  3. serendipiti

    serendipiti New Member

    Joined:
    Sep 26, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    asansol,West Bengal
  4. Vishal Gupta

    Vishal Gupta Microsoft MVP

    Joined:
    Jul 28, 2005
    Messages:
    5,173
    Likes Received:
    121
    Trophy Points:
    0
    Location:
    AskVG.com
    1.) Its a 2 step task:

    a.) First u'll hv to add ur application.
    b.) Then u'll hv to register it.

    a.) Copy/paste following code in notepad and save the file with .REG extension and then run it:

    Code:
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open]
    @="Play CD"
     
    [HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open\command]
    @="\"C:\\Program Files\\Winamp\\Winamp.exe %1\""
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
    "Action"="Play CD"
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
    "Provider"="Winamp"
     
    [HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open\command]
    @="\"C:\\Program Files\\Winamp\\Winamp.exe %1\""
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_CustomHandler1]
    "DefaultIcon"="\"C:\\Program Files\\Winamp\\Winamp.exe,0\""
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
    "InvokeProgID"="My_AutoPlay_CustomHandler1"
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_CustomHandler1]
    "InvokeVerb"="open"
     
    
    It'll add the application, u can change the path to ur desired one. :)

    2.) Now to register the application, again Copy/paste following code in notepad and save the file with .REG extension and then run it:

    Code:
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival]
    "My_AutoPlay_CustomHandler1"=""
     
    
    U can do the same for "Music, Pictures, DVD, etc" section, which u'll get under the same key!

    PS: U can add other applications in the same manner, just change the "My_AutoPlay_CustomHandler1" to something else, like "My_AutoPlay_CustomHandler2" or nething else. also change the action, provider, path, etc.

    2.) For adding the desired folder into My Computer, u hv to register the CLASSID into Regitry. Just tell me the name and path of ur desired folder and i'll post the code :)
     
  5. OP
    OP
    adit_sen

    adit_sen New Member

    Joined:
    Feb 8, 2004
    Messages:
    342
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Perth, A*stralia
    Thanks for all the replies. I must say TweakUI has gotten most of my work done for me. I've managed to add/remove autorun features with just a click of a button. I had also wanted to get rid of some of the application folders that pop up in my computer after a program installation, such as Live Messenger & Nero Scout. That too has been taken care of by TweakUI. Now the only problem is I could remove these from My Computer but not add new ones.

    @Vishal Gupta: Insted of me giving you the path for each folder, if you could teach me (and everyone else reading this) how to add these folders, it'll be very helpful.

    Cheers
    Aditya
     
  6. Vishal Gupta

    Vishal Gupta Microsoft MVP

    Joined:
    Jul 28, 2005
    Messages:
    5,173
    Likes Received:
    121
    Trophy Points:
    0
    Location:
    AskVG.com
  7. OP
    OP
    adit_sen

    adit_sen New Member

    Joined:
    Feb 8, 2004
    Messages:
    342
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Perth, A*stralia
    Cheers man!
     
Thread Status:
Not open for further replies.

Share This Page