none
Need to write a shell extension RRS feed

  • Question

  • Hello All,

    I have  a requirement to write a shell extension. Infact I found one shell extension readily available in All in one code framework.

    bUt I haev a problem now. since its written in .net 4 , i cannot use the same.

    is there a way where we add an entry to the registry with a ID and the shell extension appears?
    pls help.

    I need to have a shell extension on text files so that, upon right mouse click the shell extension should appear and it should start an external program by passing the name of the file on which it is clicked as the argument.

     

    pls help thanks

    sandeep

    Sunday, January 2, 2011 12:33 PM

Answers

  • In .NET 4, with the ability to have multiple runtimes in process with any other runtime, this specific limitation is no longer an issue.  However, this programming scenario has not been fully tested by the Windows Shell team and there are other known issues.  It is not supported to write Windows Shell Extension using .NET 4 today.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by eryang Monday, January 10, 2011 6:53 AM
    Wednesday, January 5, 2011 1:15 AM

All replies

  •  

    Hi SandepKU,

     

    May I know why the .NET 4.0 sample doesn't satisfy your requirement? are you using .NET2.0/3.5?

    .NET 4.0 introduces in-process SxS,  so it is safe to write a managed Shell Extension, but, for .NET2.0/3.5, you may want to read this: Don't do Shell Extension Handlers in .NET


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Edited by eryang Wednesday, January 5, 2011 1:16 AM update
    Monday, January 3, 2011 4:03 AM
  • Hi Eryang,

    I am using .net 3.5 so  I am told not to use .net 4.0.

    so pls help.

    is it possible to add an entry in the registry by hand so taht shell extension shows up.

    thanks

    Monday, January 3, 2011 7:33 AM
  • In .NET 4, with the ability to have multiple runtimes in process with any other runtime, this specific limitation is no longer an issue.  However, this programming scenario has not been fully tested by the Windows Shell team and there are other known issues.  It is not supported to write Windows Shell Extension using .NET 4 today.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by eryang Monday, January 10, 2011 6:53 AM
    Wednesday, January 5, 2011 1:15 AM