We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.

Add your app in each EXE in the context menu

From NSIS Wiki
Jump to navigationJump to search
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