I added the file "C:\Windows\ShellNew\PureBasic.pb" and the ShellNew key in the registry. At the same time, I did not have an item in the explorer menu. I added PureBasic to the PureBasic.exe section following the example of other associations:
Code: Select all
[HKEY_CLASSES_ROOT\PureBasic.exe]
@="PureBasic"
Code: Select all
[HKEY_CLASSES_ROOT\.pb\ShellNew]
"FileName"="PureBasic.pb"
"IconPath"="C:\\Program Files\\PureBasic\\PureBasic 6.02 x64\\PureBasic.exe,1"
"MenuText"="@C:\\path\\text.dll,-1"
"ItemName"="@C:\\path\\text.dll,-1"
IconPath - the icon displayed in the explorer menu
MenuText - the item displayed in the explorer menu
ItemName - the name of the file created in Explorer