esempio reg file
Windows Registry Editor Version 5.00
; REGEntries.AddRegSection
[HKEY_CLASSES_ROOT\Directory]
[HKEY_CLASSES_ROOT\Directory\Background]
[HKEY_CLASSES_ROOT\Directory\Background\Shell]
[HKEY_CLASSES_ROOT\Directory\Background\Shell\PietroUtilities]
"MUIVerb"="Pietro Utilities"
"SubCommands"="Pietro.Regedit;Pietro.Run;Pietro.Taskmgr"
"Icon"="wbemcntl.dll,-44"
"Position"="Middle"
[HKEY_LOCAL_MACHINE\SOFTWARE]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit]
@=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,\
65,00,2c,00,2d,00,31,00,36,00,00,00
"Position"="Middle"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,\
65,00,2c,00,2d,00,31,00,30,00,30,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit\command]
@="%systemroot%\\regedit.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run]
@=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\
68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
00,32,00,37,00,31,00,30,00,00,00
"Position"="Middle"
"Icon"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,\
00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
00,31,00,36,00,30,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run\command]
@="explorer shell:::{2559A1F3-21D7-11D4-BDAF-00C04F60B9F0}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Taskmgr]
@="@%systemroot%\\system32\\Taskmgr.exe,-32420"
"icon"="Taskmgr.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Taskmgr\command]
@="Taskmgr.exe"
Oppure inf file
[Version]
Signature="$Windows NT$"
[Optional Components]
MyRegTweaks
[DefaultInstall]
AddReg =REGEntries.AddReg
DelReg =REGEntries.DelReg
[MyRegTweaks]
OptionDesc ="Registry Entries"
Tip ="Registry Entries"
Modes =0,1,2,3
AddReg =REGEntries.AddReg
DelReg =REGEntries.DelReg
[REGEntries.AddReg]
HKCR, "Directory\Background\Shell\PietroUtilities", "MUIVerb", 0x0, "Pietro Utilities"
HKCR, "Directory\Background\Shell\PietroUtilities", "SubCommands", 0x0, "Pietro.Regedit;Pietro.Run;Pietro.Taskmgr"
HKCR, "Directory\Background\Shell\PietroUtilities", "Icon", 0x0, "wbemcntl.dll,-44"
HKCR, "Directory\Background\Shell\PietroUtilities", "Position", 0x0, "Middle"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit", , 0x20000, "@%%systemroot%%\regedit.exe,-16"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit", "Position", 0x0, "Middle"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit", "Icon", 0x20000, "%%systemroot%%\regedit.exe,-100"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Regedit\command", , ,"%%systemroot%%\regedit.exe"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run", , 0x20000, "@%%systemroot%%\system32\shell32.dll,-12710"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run", "Position", 0x0, "Middle"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run", "Icon", 0x20000, "@%%systemroot%%\system32\shell32.dll,-160"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Run\command", , ,"explorer shell:::{2559A1F3-21D7-11D4-BDAF-00C04F60B9F0}"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Taskmgr", , ,"@%%systemroot%%\system32\Taskmgr.exe,-32420"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Taskmgr", "icon", 0x0, "Taskmgr.exe"
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Pietro.Taskmgr\command", , ,"Taskmgr.exe"
[REGEntries.DelReg]
; Customized by DX Reg2Inf Tool
Ciao.