cvpilot-tool/apps/desktop/scripts/installer.nsh
2024-09-03 16:40:09 +08:00

11 lines
386 B
Plaintext

;安装时写入
!macro customInstall
WriteRegStr HKCR "Directory\shell\cvpilot" "" "使用cvpilot分析"
WriteRegStr HKCR "Directory\shell\cvpilot" "Icon" "$INSTDIR\cvpilot.exe"
WriteRegStr HKCR "Directory\shell\cvpilot\command" "" '"$INSTDIR\cvpilot.exe" "read" "%1"'
!macroend
;卸载时清除
!macro customUninstall
DeleteRegKey HKCR "Directory\shell\cvpilot"
!macroend