Windows 10: HKCR\Directory\Background\shell vs HKCR\Directory\Shell

Discus and support HKCR\Directory\Background\shell vs HKCR\Directory\Shell in Windows 10 Customization to solve the problem; 20H2x64 I'd appreciate if someone can explain the differences between these 2 reg locations -- HKCR\Directory\Background\shell vs... Discussion in 'Windows 10 Customization' started by newdev, Dec 18, 2020.

  1. newdev Win User

    HKCR\Directory\Background\shell vs HKCR\Directory\Shell


    20H2x64

    I'd appreciate if someone can explain the differences between these 2 reg locations --

    HKCR\Directory\Background\shell vs HKCR\Directory\Shell

    specifically as regards customizing the context menu --
    and WHERE the context menu is invoked --

    • clicking on the desktop,
    • clicking on a folder "background",
    • clicking on a folder name,
    • clicking on a file name,
    • clicking on a drive

    I've learned alot from studying the various context menu customizations
    both here and on Win7 forum, and I've experimented with creating some of my own.

    Today I looked at these 2 locations and saw some of the same entries,
    but also a few different -

    So basically I want to know -- what kind of entry goes into which location?

    Also, I have searched quite a bit and accumulated some pretty good articles
    concerning customizing the context menu,
    but if anyone can recommend their favorites, I'm always keen to learn more.

    Thank you

    :)
     
    newdev, Dec 18, 2020
    #1

  2. Spyhunter says I should remove HKCR\LocalPathSearchProvider\shell\open\command

    How can i remove HKCR\LocalPathSearchProvider\shell\open\command, my SpyHunter 4 says i should delete this key, but when i try to delete it in the registry i get a message saying i cannot delete the key.

    [Original title: John M. Goforth]
     
    JOHN M GOFORTH, Dec 18, 2020
    #2
  3. ShiftCmdHere


    Hi,
    since the days of Windows NT, I use a tool that I have derived from Windows Power tool CmdHere.
    For Vista I have CmdHere expanded to open CMD as admin and modified to operate with shift key. The tool can be installed via context menu and uninstalled via Control Panel. It makes sense to deactivate the entry by default contained in the context menu. This can be done by ShellMenuView. ShellMenuView can be found at freeware utilities: password recovery, system utilities, desktop utilities - For Windows

    After some testing I realize it's suitable for Windows 10 also.
    I think that this could be a contribution to the tutorials.

    ShiftCmdHere.inf:
    -------------------------------------------------------------------------[version]
    signature="$CHICAGO$"

    [ShiftCmdHereInstall]
    CopyFiles = ShiftCmdHere.Files.Inf
    AddReg = ShiftCmdHere.Reg

    [DefaultInstall]
    CopyFiles = ShiftCmdHere.Files.Inf
    AddReg = ShiftCmdHere.Reg

    [DefaultUnInstall]
    DelFiles = ShiftCmdHere.Files.Inf
    DelReg = ShiftCmdHere.DelReg

    [SourceDisksNames]
    55="CMD Here","",1

    [SourceDisksFiles]
    ShiftCmdHere.INF=55

    [DestinationDirs]
    ShiftCmdHere.Files.Inf = 17

    [ShiftCmdHere.Files.Inf]
    ShiftCmdHere.INF

    [ShiftCmdHere.Reg]
    HKLM,%UDHERE%,DisplayName,,"%ShiftCmdHereName%"
    HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\ShiftCmdHere.inf"

    HKCR,*\Shell\runas,,,"%ShiftCmdHereAccel%"
    HKCR,*\Shell\runas,Extended
    HKCR,*\Shell\runas\command,,,"cmd.exe /k pushd ""%1\.."""

    HKCR,Directory\Shell\runas,,,"%ShiftCmdHereAcce2%"
    HKCR,Directory\Shell\runas,Extended
    HKCR,Directory\Shell\runas\command,,,"cmd.exe /k pushd ""%1"""

    HKCR,Drive\Shell\runas,,,"%ShiftCmdHereAcce2%"
    HKCR,Drive\Shell\runas,Extended
    HKCR,Drive\Shell\runas\command,,,"cmd.exe /k pushd ""%1"""

    HKCR,*\Shell\run,,,"%ShiftCmdHereAcce3%"
    HKCR,*\Shell\run,Extended
    HKCR,*\Shell\run\command,,,"cmd.exe /k pushd ""%1\.."""

    HKCR,Directory\Shell\run,,,"%ShiftCmdHereAcce4%"
    HKCR,Directory\Shell\run,Extended
    HKCR,Directory\Shell\run\command,,,"cmd.exe /k pushd ""%1"""

    HKCR,Drive\Shell\run,,,"%ShiftCmdHereAcce4%"
    HKCR,Drive\Shell\run,Extended
    HKCR,Drive\Shell\run\command,,,"cmd.exe /k pushd ""%1"""

    [ShiftCmdHere.DelReg]
    HKLM,%UDHERE%
    HKCR,*\Shell\runas
    HKCR,Directory\Shell\runas
    HKCR,Drive\Shell\runas

    HKCR,*\Shell\run
    HKCR,Directory\Shell\run
    HKCR,Drive\Shell\run

    [Strings]
    ShiftCmdHereName="CMD Here (Uninstall only)"

    ShiftCmdHereAccel="CMD in Current Folder as Admin"
    ShiftCmdHereAcce2="CMD Here as Admin"

    ShiftCmdHereAcce3="CMD in Current Folder"
    ShiftCmdHereAcce4="CMD Here"
    UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\ShiftCmdHere"-------------------------------------------------------------------------

    Chris
     
    ChrisRaabe, Dec 18, 2020
    #3
  4. HKCR\Directory\Background\shell vs HKCR\Directory\Shell

    Why does this not work

    I prefer commands to REG files.

    (REG Add "HKCR\Directory\Background\Shell\Testing1" /V "Position" /T REG_SZ /D "Top" /F)

    (REG Add "HKCR\Directory\Background\Shell\Testing2" /V "Position" /T REG_SZ /D "Middle" /F)

    (REG Add "HKCR\Directory\Background\Shell\Testing3" /V "Position" /T REG_SZ /D "Bottom" /F)
     
    Matthew Wai, Dec 18, 2020
    #4
Thema:

HKCR\Directory\Background\shell vs HKCR\Directory\Shell