Skip to content

Commit 2c84c1b

Browse files
committed
add icon
1 parent 7f04064 commit 2c84c1b

File tree

5 files changed

+159
-1
lines changed

5 files changed

+159
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2323
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Charts)
2424
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Charts)
2525

26+
set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/resources/win.rc")
27+
2628
set(PROJECT_SOURCES
2729
src/main.cpp
2830
src/mainwindow.cpp
@@ -38,6 +40,7 @@ set(PROJECT_SOURCES
3840
src/abmarker.h src/abmarker.cpp
3941
src/callout.h src/callout.cpp
4042
resources/icons.qrc
43+
${APP_ICON_RESOURCE_WINDOWS}
4144
)
4245

4346
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)

resources/DataExplorer.ico

66.1 KB
Binary file not shown.

resources/DataExplorer.svg

Lines changed: 154 additions & 0 deletions
Loading

resources/dataexplorer-msys.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ createShortCut "$SMPROGRAMS\${APPNAME}.lnk" \
117117
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
118118
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
119119
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "InstallLocation" "$\"$INSTDIR$\""
120-
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayIcon" "$\"$INSTDIR\logo.ico$\""
120+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayIcon" "$\"$INSTDIR\DataExplorer.ico$\""
121121
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "Publisher" "Jan Sundermeyer"
122122
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "HelpLink" "$\"${HELPURL}$\""
123123
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "URLUpdateInfo" "$\"${UPDATEURL}$\""

resources/win.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IDI_ICON1 ICON DISCARDABLE "DataExplorer.ico"

0 commit comments

Comments
 (0)