Menu

integrate to shell context menu without admin permissions

Help
2017-02-17
2019-06-26
  • Boyko Arsov

    Boyko Arsov - 2017-02-17

    Hi guys,

    Is there a way to manually integrate the 7zip context menu commands for my account only as I'm a non-admin user on the machine I'm using?

    screenshot

    As you can see in the screenshot, the option to integrate to the shell is grayed out, so is there a way to do that manually? Maybe a registry edit for the current user only?

    Thanks!

    Regards,
    Boyko

     
  • Igor Pavlov

    Igor Pavlov - 2017-02-17

    I don't know any way to do it.
    You can use 7-zip file manager instead of explorer.

     
  • Boyko Arsov

    Boyko Arsov - 2017-02-22

    Hi Igor,

    I found this in stackoverflow. It describes how to add context menu entries for non-admin users as well as for admins:

    Context menu for right click on folders in left panel of Windows Explorer or on background of a directory in right panel:

    HKEY_CLASSES_ROOT\Directory\Background\shell if you are administrator
    HKEY_CURRENT_USER\Software\Classes\directory\Background\shell if you are a normal user
    

    Context menu for right click on folders in right panel of Windows Explorer:

    HKEY_CLASSES_ROOT\Directory\shell if you are administrator
    HKEY_CURRENT_USER\Software\Classes\directory\shell if you are a normal user
    

    Context menu for any file:

    HKEY_CLASSES_ROOT\*\shell if you are administrator
    HKEY_CURRENT_USER\Software\Classes\*\shell if you are a normal user
    

    In all cases:

    add a new key under "shell", naming it as you want to name the context menu item
    add a new key inside this key, named command (mandatory name)
    edit the "default" property in "command" to myprogrampath\path\path\executable.exe %1 to pass the file path and name of the selected file to your custom program
    

    Based on the above, can I use the HKEY_CURRENT_USER to add the 7zip context menu entries as a non-privileged user in Windows? If it can be done, what are the exact settings that have to be added?

    Thanks!

    Regards,
    Boyko

     
  • Igor Pavlov

    Igor Pavlov - 2017-02-22

    Create in notepad the following reg file (with 7-zip_user.reg name) and try to register it:

    REGEDIT4
    
    [HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]
    @="7-Zip Shell Extension"
    
    [HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]
    @="C:\\Program Files\\7-Zip\\7-zip.dll"
    "ThreadingModel"="Apartment"
    
    [HKEY_CURRENT_USER\Software\Classes\*\shellex\ContextMenuHandlers\7-Zip]
    @="{23170F69-40C1-278A-1000-000100020000}"
    
    [HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]
    @="{23170F69-40C1-278A-1000-000100020000}"
    
    [HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]
    @="{23170F69-40C1-278A-1000-000100020000}"
    

    You can change C:\\Program Files\\7-Zip to path that you need.

    Please write here, if it works OK in your case

     
  • Boyko Arsov

    Boyko Arsov - 2017-02-23

    Hi Igor,

    Thank you so much - works like a charm!

    Best regards,
    Boyko

     
  • Peda V Murukutla

    Are you able to provide a command line option to register shell extensions and possibly with a 'user only' mode (i.e. works without admin rights)?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.