Archive: right mouse popup


right mouse popup
Hello,

How Can I add that if I select *.htm
files and click right mouse that my programm in
the popup.
If click it. Thake the HTM file as %1 or ParamStr(1).

Thank


1) Get the default value of .htm key in HKCR (HKEY_CLASSES_ROOT):
ReadRegStr $0 HKCR .htm ""
2) Add your key to the key you just got:
WriteRegStr HKCR $0 "shell\myProgKey" "this will show in the right click menu so keep it short :)"
WriteRegStr HKCR $0 "shell\myProgKey\command" "$INSTDIR\myProg.exe %1"