Skip to content

Commit

Permalink
use the AvNav icons for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed May 17, 2024
1 parent e132865 commit 92227d6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Binary file removed windows/service/Chart60.ico
Binary file not shown.
Binary file removed windows/service/Chart60Inact.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions windows/service/avnavservice.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ $serverError="$logDir\service-err.log"
$defaultUpdateUrl="https://wellenvogel.de/software/avnav/downloads/release/latest/avnav-latest.zip"
$regKey="HKCU:\Software\Wellenvogel\AvNav"

$icon = Join-Path $PSScriptRoot 'Chart60.ico'
$iconInact = Join-Path $PSScriptRoot 'Chart60Inact.ico'
$icon = Join-Path $PSScriptRoot 'sailboat256x96.ico'
$iconInact = Join-Path $PSScriptRoot 'sailboat256x96Inact.ico'

#import dialogs
. "$PSScriptRoot\Dialogs.ps1"
Expand Down
14 changes: 8 additions & 6 deletions windows/service/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
!endif
!define PATH_OUT "../build"
!system 'mkdir ${PATH_OUT}'
!define ICON sailboat256x96.ico
!define ICONINACT sailboat256x96Inact.ico
OutFile "${PATH_OUT}/avnav-service-${VERSION}.exe"
!macro InstFiles cmd prfx
${cmd} ${prfx}avnavservice.cmd
${cmd} ${prfx}Chart60.ico
${cmd} ${prfx}Chart60Inact.ico
${cmd} ${prfx}${ICON}
${cmd} ${prfx}${ICONINACT}
${cmd} ${prfx}Dialogs.ps1
${cmd} ${prfx}downloadAndInstall.ps1
${cmd} ${prfx}avnavservice.ps1
Expand All @@ -37,12 +39,12 @@ WriteRegStr HKCU "${UNINST_KEY}" "DisplayName" "avnavservice"
WriteRegStr HKCU "${UNINST_KEY}" "UninstallString" \
"$\"$INSTDIR\uninstaller.exe$\" /CurrentUser"
WriteRegStr HKCU "${UNINST_KEY}" "DisplayIcon" \
"$INSTDIR\Chart60Inact.ico"
"$INSTDIR\${ICON}"
WriteRegStr HKCU "${UNINST_KEY}" "QuietUninstallString" \
"$\"$INSTDIR\uninstaller.exe$\" /CurrentUser /S"
CreateShortCut "$SMPROGRAMS\avnavservice.lnk" $INSTDIR\avnavservice.cmd "" $INSTDIR\Chart60.ico 0
CreateShortCut "$SMSTARTUP\avnavservice.lnk" $INSTDIR\avnavservice.cmd "" $INSTDIR\Chart60.ico 0
CreateShortCut "$SMPROGRAMS\avnavuninstall.lnk" $INSTDIR\uninstaller.exe "" $INSTDIR\Chart60Inact.ico 0
CreateShortCut "$SMPROGRAMS\avnavservice.lnk" $INSTDIR\avnavservice.cmd "" $INSTDIR\${ICON} 0
CreateShortCut "$SMSTARTUP\avnavservice.lnk" $INSTDIR\avnavservice.cmd "" $INSTDIR\${ICON} 0
CreateShortCut "$SMPROGRAMS\avnavuninstall.lnk" $INSTDIR\uninstaller.exe "" $INSTDIR\${ICONINACT} 0

#-------
# default section end
Expand Down
Binary file added windows/service/sailboat256x96.ico
Binary file not shown.
Binary file added windows/service/sailboat256x96Inact.ico
Binary file not shown.

0 comments on commit 92227d6

Please sign in to comment.