Adapting .REG Files.

Page 5 of 13 FirstFirst ... 34567 ... LastLast

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #41

    Thanks FreeBooter,

    FreeBooter said:
    In Windows 10, all of the Ribbon commands are stored in the Registry under one single key for Explorer called "CommandStore".
    Code:
    Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ProgramsAndFeatures" /ve /t REG_SZ /d "ProgramsAndFeatures" /f
    Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ProgramsAndFeatures" /v "icon" /t REG_SZ /d "appwiz.cpl" /f
    Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ProgramsAndFeatures\command" /ve /t REG_SZ /d "control appwiz.cpl" /f
    I should have worked that out!
      My Computer


  2. Posts : 5,330
    Windows 11 Pro 64-bit
       #42

    Paul Black said:
    Thanks FreeBooter,


    I should have worked that out!
      My Computer


  3. Posts : 17,838
    Windows 10
       #43

    I manually created the reg entries, I think everything is proper...,

    Adapting .REG Files.-003488.png

    you can try it if you want...

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools]
    "Position"="Bottom"
    "Icon"="imageres.dll,104"
    "Subcommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell]
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\001flyout]
    @="All Tasks"
    "Icon"="control.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\001flyout\command]
    @="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\002flyout]
    @="Computer Management"
    "Icon"="Mycomput.dll,-204"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\002flyout\command]
    @="C:\\Windows\\system32\\mmc.exe /s C:\\Windows\\system32\\compmgmt.msc"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\003flyout]
    @="Control Panel"
    "Icon"="control.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\003flyout\command]
    @="control.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\004flyout]
    @="Device Manager"
    "Icon"="devmgr.dll,-201"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\004flyout\command]
    @="explorer shell:::{74246bfc-4c96-11d0-abef-0020af6b0b7a}"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\005flyout]
    @="Local Group Policy Editor"
    "Icon"="gpedit.dll"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\005flyout\command]
    @="mmc.exe /s gpedit.msc"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\006flyout]
    "Icon"="wsecedit.dll"
    @="Local Security Policy"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\006flyout\command]
    @="mmc.exe /s secpol.msc"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\007flyout]
    @="MSConfig"
    "Icon"="msconfig.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\007flyout\command]
    @="msconfig.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\008flyout]
    @="Programs and Features"
    "Icon"="%SystemRoot%\\System32\\appwiz.cpl"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\008flyout\command]
    @="explorer shell:::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\009flyout]
    @="Registry Editor"
    "Icon"="regedit.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\009flyout\command]
    @="regedit.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\010flyout]
    @="Run"
    "Icon"="imageres.dll,-100"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\010flyout\command]
    @="explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\011flyout]
    "Icon"="filemgmt.dll"
    @="Services"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\011flyout\command]
    @="mmc.exe /s services.msc"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\012flyout]
    @="Snipping Tool"
    "Icon"="SnippingTool.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\012flyout\command]
    @="SnippingTool.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\013flyout]
    @="Task Manager"
    "Icon"="taskmgr.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\System Tools\shell\013flyout\command]
    @="taskmgr.exe"
      My Computer


  4. Posts : 17,838
    Windows 10
       #44

    Granted, it's a little more time consuming this way but, easier to modify...,

    for instance, if you want to change the order of the menu, just change the flyout name...

    Adapting .REG Files.-003490.png Adapting .REG Files.-003489.png
      My Computer


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #45

    Edwin said:
    Granted, it's a little more time consuming this way but, easier to modify...,

    for instance, if you want to change the order of the menu, just change the flyout name...
    Yes, I agree!

    Adapting .REG Files.-image.png

    The only problem was with the Programs and Features. This is what is produced by your code, and this is what is produced when I open Control Panel => Programs and Features . . .

    Adapting .REG Files.-image.png

    I did look to see if the CLSID {7b81be6a-ce2b-4676-a29e-eb907a5126c5} was correct and it was!

    Thanks in advance.
      My Computer


  6. Posts : 17,838
    Windows 10
       #46

    Weird!!!
      My Computer


  7. Posts : 989
    Microsoft Windows 10 Home
       #47

    Paul Black said:
    Yes, I agree!
    The only problem was with the Programs and Features. This is what is produced by your code, and this is what is produced when I open Control Panel => Programs and Features . . .

    I did look to see if the CLSID {7b81be6a-ce2b-4676-a29e-eb907a5126c5} was correct and it was!
    Thanks in advance.

    Use
    :

    Code:
    explorer "::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\::{7B81BE6A-CE2B-4676-A29E-EB907A5126C5}"
    I got this path from a bit of recursive PowerShell. Copy & paste. You'll love the output.

    Code:
    $Shell = New-Object -ComObject shell.application
    $DT = $Shell.Namespace(0)
    
    Function Unfold ($oFolder) {
    $oFolder.Items() | ?{ ($_.IsFolder -eq $True) -and ($_.Name -notLike 'Fonts') } | ForEach{
    UnFold $_.GetFolder
    }
    $_.GetFolder.Items() | select Name, Path
    }
    
    $DT.Items() | ?{($_.IsFolder -eq $True) -and
            ($_.Name -match 'Control Panel')} | % {
                Unfold $_.GetFolder
    } | Select Name, Path -unique | Sort Path | Out-Gridview
    Adapting .REG Files.-screenshot-622-.png
    Last edited by KeithM; 22 Feb 2020 at 11:51.
      My Computer


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #48

    Thanks for the reply KeithM,

    KeithM said:
    Code:
    explorer "::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\::{7B81BE6A-CE2B-4676-A29E-EB907A5126C5}"
    That worked!

    KeithM said:
    I got this path from a bit of recursive PowerShell. Copy & paste. You'll love the output.

    Code:
    $Shell = New-Object -ComObject shell.application
    $DT = $Shell.Namespace(0)
    
    Function Unfold ($oFolder) {
    $oFolder.Items() | ?{ ($_.IsFolder -eq $True) -and ($_.Name -notLike 'Fonts') } | ForEach{
    UnFold $_.GetFolder
    }
    $_.GetFolder.Items() | select Name, Path
    }
    
    $DT.Items() | ?{($_.IsFolder -eq $True) -and
            ($_.Name -match 'Control Panel')} | % {
                Unfold $_.GetFolder
    } | Select Name, Path -unique | Sort Path | Out-Gridview
    You were right!

    I copied it into Notepad for future reference.
    I like the way you can copy the last bit and put it AFTER Computer\HKEY_CLASSES_ROOT\CLSID\ to get the FULL details, very nice.
      My Computer


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #49

    As I have mentioned in previous posts, I am compiling a working solution that I can implement [Context menus] using REG files after the clean install so that the OS is pretty much exactly what I want, hence the use of several third-party software, although these third-party softwares will NOT be used. I can then IMPORT them [run them as a REG file] into the clean installed OS.

    I have this one below [third-party software] which I will find extremely useful [on right-clicking a Folder it selects ALL the files within the Folder and saves it to the Clipboard], and I would like to know how to convert it to a normal REG file so it can be used please . . .

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\Z002AAN]
    "MUIVerb"="Copy Folder Contents List"
    "Icon"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
      00,65,00,73,00,25,00,5c,00,45,00,61,00,73,00,79,00,20,00,43,00,6f,00,6e,00,\
      74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,45,00,63,00,4d,\
      00,65,00,6e,00,75,00,2e,00,65,00,78,00,65,00,2c,00,33,00,33,00,00,00
    
    [HKEY_CLASSES_ROOT\Directory\shell\Z002AAN\command]
    @=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
      00,65,00,73,00,25,00,5c,00,45,00,61,00,73,00,79,00,20,00,43,00,6f,00,6e,00,\
      74,00,65,00,78,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,45,00,63,00,4d,\
      00,65,00,6e,00,75,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,43,00,6f,00,\
      70,00,79,00,46,00,6f,00,6c,00,64,00,65,00,72,00,43,00,6f,00,6e,00,74,00,65,\
      00,6e,00,74,00,73,00,20,00,22,00,25,00,31,00,22,00,00,00

    At present, it uses hex which I am not familiar with!

    Thanks in advance.
    Last edited by Paul Black; 23 Feb 2020 at 08:57.
      My Computer


  10. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #50

    OK, please don't laugh but I have put this together that I think might work. Can someone just have a look and see what mistakes I have made please.

    This is for the File Names, Date, and Size within a Folder to be copied to the Clipboard in HKEY_CLASSES_ROOT\Directory\shell\ . . .

    Code:
    [HKEY_CLASSES_ROOT\Directory\shell\CopyFolderFileNames+]
    @="Copy Folder File Names, Date, Size To Clipboard"
    "MUIverb"="Copy Folder File Names, Date, Size To Clipboard"
    "Icon"="cmd.exe"
    "Position"="Top"
    
    [HKEY_CLASSES_ROOT\Directory\shell\CopyFolderFileNames+\command]
    @="cmd /c dir \"%1\" /b /a:-d /o:n | Clip"

    For removing it I would use . . .

    Code:
    [-HKEY_CLASSES_ROOT\Directory\shell\CopyFolderFileNames+]

    If I want these available when I click ANY Folder ANYWHERE, do I need to add it to somewhere else also. I am still a bit confused about that aspect.

    Thanks in advance.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:46.
Find Us




Windows 10 Forums