cvpilot-tool/apps/desktop/scripts/installer.nsh

11 lines
386 B
Plaintext
Raw Normal View History

2024-09-03 16:40:09 +08:00
;安装时写入
2024-09-03 15:28:30 +08:00
!macro customInstall
2024-09-03 16:40:09 +08:00
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"'
2024-09-03 15:28:30 +08:00
!macroend
2024-09-03 16:40:09 +08:00
;卸载时清除
2024-09-03 15:28:30 +08:00
!macro customUninstall
2024-09-03 16:40:09 +08:00
DeleteRegKey HKCR "Directory\shell\cvpilot"
2024-09-03 15:28:30 +08:00
!macroend