Results 1 to 2 of 2

Thread: Registry and FileExtensions?

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Registry and FileExtensions?

    Hey all,

    i wrote a small (very small) app in c# that will deploy my assemblies to the gac. Now i created an shortcut to my app, and put that shortcut in my sendto folder. So if I rightclick on an .dll file and point to my app in the sendto popup, it will add the dll to the gac.

    So heres my question:

    What do I need to do, to be able to just right click a .dll File and see my app in the context menu? I guess there are some keys in the registry i need to add, but just cant find them.
    Hope that makes sense,

    Thanks in advance,


    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    See if this helps:

    Code:
    REGEDIT4
    
    [HKEY_CLASSES_ROOT\dllfile\Shell]
    @="Register"
    
    [HKEY_CLASSES_ROOT\dllfile\Shell\Register]
    
    [HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
    @="regsvr32.exe %1"
    
    [HKEY_CLASSES_ROOT\dllfile\Shell\Unregister]
    
    [HKEY_CLASSES_ROOT\dllfile\Shell\Unregister\command]
    @="regsvr32.exe /u %1"
    
    [HKEY_CLASSES_ROOT\.ocx]
    @="ocxfile"
    
    [HKEY_CLASSES_ROOT\ocxfile]
    @="OCX File"
    "EditFlags"=hex:00,00,01,00
    
    [HKEY_CLASSES_ROOT\ocxfile\Shell]
    @="Register"
    
    [HKEY_CLASSES_ROOT\ocxfile\Shell\Register]
    
    [HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
    @="regsvr32.exe %1"
    
    [HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister]
    
    [HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister\command]
    @="regsvr32.exe /u %1"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width