Skip to content

Commit

Permalink
fix: 自定义安装版本增加
Browse files Browse the repository at this point in the history
fix: 自定义安装版本增加
  • Loading branch information
youngster-yj committed Mar 28, 2024
1 parent 4878a4c commit 4b11eb2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions build/yakit_build.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ FunctionEnd
${If} $0 != "" ; ee
StrCpy $INSTALL_PATH_REG_KEY_NAME "EnpriTrace_InstallPath"
StrCpy $EXE_NAME "EnpriTrace"
${Else}
${StrStr} $0 $EXEFILE "单兵武器装备库"
${If} $0 != "" ; ee
StrCpy $INSTALL_PATH_REG_KEY_NAME "Dianxin_InstallPath"
StrCpy $EXE_NAME "单兵武器装备库"
${EndIf}
${EndIf}
${EndIf}

Expand All @@ -118,11 +124,12 @@ FunctionEnd
${If} ${FileExists} `$INSTDIR\EnpriTraceAgent.exe` ; se
StrCpy $INSTALL_PATH_REG_KEY_NAME "EnpriTraceAgent_InstallPath"
StrCpy $EXE_NAME "EnpriTraceAgent"
${Else}
${If} ${FileExists} `$INSTDIR\EnpriTrace.exe` ; ee
${ElseIf} ${FileExists} `$INSTDIR\EnpriTrace.exe` ; ee
StrCpy $INSTALL_PATH_REG_KEY_NAME "EnpriTrace_InstallPath"
StrCpy $EXE_NAME "EnpriTrace"
${EndIf}
${ElseIf} ${FileExists} `$INSTDIR\单兵武器装备库.exe` ; dianxin
StrCpy $INSTALL_PATH_REG_KEY_NAME "Dianxin_InstallPath"
StrCpy $EXE_NAME "单兵武器装备库"
${EndIf}

!insertmacro checkInstalled
Expand Down
4 changes: 2 additions & 2 deletions multibuilder/electron-builder-se.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ nsis:
perMachine: false
deleteAppDataOnUninstall: true
allowToChangeInstallationDirectory: true
installerIcon: app/assets/yakitselogo.ico
uninstallerIcon: app/assets/yakitselogo.ico
installerIcon: app/assets/telecom_logo_small.ico
uninstallerIcon: app/assets/telecom_logo_small.ico
unicode: true
include: build/yakit_build.nsh
license: LICENSE.md
Expand Down

0 comments on commit 4b11eb2

Please sign in to comment.