Add your app in each EXE in the context menu

From NSIS Wiki

Author: Joel (talk, contrib)


The Script

; This example will add the item "UPX" to each .exe file
; context menu. The item will then run the program
; with upx.exe if it's selected.
 
; ....
!define NameStr "UPX" ; The string that the context menu will display
 
Section "ADDME"
  SetOutPath "$INSTDIR"
  WriteRegStr HKCR "exefile\shell\${NameStr}\command" "" "$INSTDIR\upx.exe -9 $\"%1$\""
  File "upx.exe"
SectionEnd
Personal tools
donate
ads