Files
NetMesh/build/installer.nsh
zhaolei c64e00d835 feat: 新增设备巡检模块实现完整的巡检告警功能
新增设备巡检模块核心功能,包括:
- 巡检数据存储与调度系统
- 华为/H3C交换机及Linux服务器采集器
- 设备扩展配置与告警规则管理
- 主机详情页巡检配置入口
- 产品名称自定义设置功能
- 网络设备SSH exec通道兼容处理
2026-10-09 10:37:48 +08:00

20 lines
1.2 KiB
NSIS

!macro customInstall
; Open a selected folder in a new NetMesh local terminal.
; Args go after `--` so Electron/Chromium does not swallow them. Use
; `--open-terminal-path="%1."` so paths with spaces stay one token and drive
; roots (`C:\`) do not break Windows quote parsing.
WriteRegStr SHCTX "Software\Classes\Directory\shell\NetMesh" "MUIVerb" "在 NetMesh 中打开终端"
WriteRegStr SHCTX "Software\Classes\Directory\shell\NetMesh" "Icon" "$INSTDIR\${APP_EXECUTABLE_FILENAME},0"
WriteRegStr SHCTX "Software\Classes\Directory\shell\NetMesh\command" "" '"$INSTDIR\${APP_EXECUTABLE_FILENAME}" -- --open-terminal-path="%1."'
; Open the directory currently displayed by Explorer.
WriteRegStr SHCTX "Software\Classes\Directory\Background\shell\NetMesh" "MUIVerb" "在 NetMesh 中打开终端"
WriteRegStr SHCTX "Software\Classes\Directory\Background\shell\NetMesh" "Icon" "$INSTDIR\${APP_EXECUTABLE_FILENAME},0"
WriteRegStr SHCTX "Software\Classes\Directory\Background\shell\NetMesh\command" "" '"$INSTDIR\${APP_EXECUTABLE_FILENAME}" -- --open-terminal-path="%V."'
!macroend
!macro customUnInstall
DeleteRegKey SHCTX "Software\Classes\Directory\shell\NetMesh"
DeleteRegKey SHCTX "Software\Classes\Directory\Background\shell\NetMesh"
!macroend