在右键菜单第一项下面加入菜单项
[HKEY_CLASSES_ROOT/myprogfile/shell/myprogcmd]
@="myprog"
[HKEY_CLASSES_ROOT/myprogfile/shell/myprogcmd/command]
@="/"C://Program Files//myprog//myprog.exe/" /"%L/""
在右键菜单打开方式中加入菜单项
strRightMenuExt := 'Software/Microsoft/Windows/CurrentVersion/Explorer/FileExts/' + strExt + '/OpenWithProgids';
RegWriteBinaryValue(HKEY_CURRENT_USER, strRightMenuExt,
'myprogfile', '');