Windows: Add app icon

This commit is contained in:
kichikuou
2020-08-02 13:41:34 +09:00
parent 05cacb170f
commit bfd8e3e55a
4 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -13,6 +13,13 @@ UninstPage instfiles
LicenseData ..\COPYING
!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0
Function RefreshShellIcons
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
(${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd
Section
SetOutPath $INSTDIR
FILE ${BUILDDIR}\src\xsystem35.exe
@@ -33,8 +40,9 @@ LangString FileAssociation ${LANG_JAPANESE} ".ALD ファイルに関連付け"
Section "$(FileAssociation)"
WriteRegStr HKCR ".ald" "" "System35Archive"
WriteRegStr HKCR "System35Archive" "" "AliceSoft System 3.x archive"
WriteRegStr HKCR "System35Archive\DefaultIcon" "" "$INSTDIR\xsystem35.exe,1"
WriteRegStr HKCR "System35Archive\DefaultIcon" "" "$INSTDIR\xsystem35.exe,0"
WriteRegStr HKCR "System35Archive\shell\open\command" "" '"$INSTDIR\xsystem35.exe" "%1"'
Call RefreshShellIcons
SectionEnd
LangString DesktopIcon ${LANG_ENGLISH} "Create Desktop icon"
+1 -1
View File
@@ -65,7 +65,7 @@ target_sources(xsystem35 PRIVATE
network.c)
if (WIN32)
target_sources(xsystem35 PRIVATE win/dialog.c)
target_sources(xsystem35 PRIVATE win/dialog.c win/resources.rc)
endif()
if (EMSCRIPTEN)
+1
View File
@@ -0,0 +1 @@
100 ICON DISCARDABLE "xsystem35.ico"
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB