Problem with a Reg File, custom context menu add options Windows 10


  1. Posts : 1
    Win10
       #1

    Problem with a Reg File, custom context menu add options Windows 10


    I'm trying to make a small and very basic program to install a custom menu to the desktop right click menu on Windows 10 Pro 64 bits. That would start a program, launch a web page and others simple tasks when triggered. The install process seems to be doing fine but there seems to be a problem with my reg file since the options appears on the desktop right click menu but they don't trigger but the files are copied to the %HOMEPATH% dir (See bellow) correctly, i have double checked. I tried finding the solution on the net in vain. I would need help from someone who is use to write reg files. It may be a problem with the address location target that i'm using in the reg file (%HOMEPATH%\Documents) but at this point i can't tell.

    Reg File:

    Windows Registry Editor Version 5.00

    ; Created by: Luxe
    ; Created on: December 4th 2019
    ; Updated on: December 12th 2019

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Planet Zoo]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\1.ico"
    "MUIVerb"="Planet Zoo"
    "Position"="Bottom"
    "SubCommands"=""


    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\001flyout]
    "MUIVerb"="Play Planet Zoo"
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\5.ico"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\001flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Start_PZ.bat"


    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\002flyout]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\7.ico"
    "MUIVerb"="Workshop"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\002flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Workshop_PZ.bat"


    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\003flyout]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\4.ico"
    "MUIVerb"="Backup"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\003flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Backup_PZ.bat"


    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\004flyout]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\6.ico"
    "MUIVerb"="Screenshots"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\004flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Screenshots_PZ.bat"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\005flyout]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\R.ico"
    "MUIVerb"="Restart PZ"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\005flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Restart_PZ.bat"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\006flyout]
    "Icon"="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\3.ico"
    "MUIVerb"="Close PZ"

    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Project\shell\006flyout\command]
    @="%HOMEPATH%\Documents\Planet_Zoo_Context_Menu\Close_PZ.bat"
    Last edited by WZNI; 21 Dec 2019 at 21:35.
      My Computer


  2. Posts : 42,991
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, if it's any help there are various small utilities that make adding context menu entries with parameters in the appopriate place in the context menu relatively easy.

    E.g. Easy context menu
    Problem with a Reg File, custom context menu add options Windows 10-1.png

    Right click context menu adder

    https://www.askvg.com/right-click-co...-context-menu/
      My Computers


 

  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 18:47.
Find Us




Windows 10 Forums