Skip to content

Commit 60bfc25

Browse files
committed
Set icon
1 parent eb41d07 commit 60bfc25

File tree

7 files changed

+26
-6
lines changed

7 files changed

+26
-6
lines changed

InstallerCustomActions/CustomActions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021, Yasumasa Suenaga
2+
* Copyright (C) 2021, 2026, Yasumasa Suenaga
33
*
44
* This program is free software; you can redistribute it and/or
55
* modify it under the terms of the GNU General Public License
@@ -33,7 +33,8 @@ public class CustomActions : Installer
3333
""profiles"": [
3434
{
3535
""name"": ""SimpleCom"",
36-
""commandline"": ""{PATH}""
36+
""commandline"": ""{PATH}"",
37+
""icon"": ""{PATH}""
3738
}
3839
]
3940
}

SimpleCom.ico

34.2 KB
Binary file not shown.

SimpleCom/SimpleCom.rc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUSD)
2020
LANGUAGE LANG_NEUTRAL, SUBLANG_SYS_DEFAULT
2121

22+
/////////////////////////////////////////////////////////////////////////////
23+
//
24+
// Icon
25+
//
26+
27+
// Icon with lowest ID value placed first to ensure application icon
28+
// remains consistent on all systems.
29+
IDI_ICON1 ICON "../SimpleCom.ico"
30+
2231
#ifdef APSTUDIO_INVOKED
2332
/////////////////////////////////////////////////////////////////////////////
2433
//

SimpleCom/SimpleCom.vcxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@
216216
<ItemGroup>
217217
<Manifest Include="app.manifest" />
218218
</ItemGroup>
219+
<ItemGroup>
220+
<Image Include="..\SimpleCom.ico" />
221+
</ItemGroup>
219222
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
220223
<ImportGroup Label="ExtensionTargets">
221224
</ImportGroup>
222-
</Project>
225+
</Project>

SimpleCom/SimpleCom.vcxproj.filters

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,9 @@
116116
<ItemGroup>
117117
<Manifest Include="app.manifest" />
118118
</ItemGroup>
119-
</Project>
119+
<ItemGroup>
120+
<Image Include="..\SimpleCom.ico">
121+
<Filter>リソース ファイル</Filter>
122+
</Image>
123+
</ItemGroup>
124+
</Project>

SimpleCom/resource.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//
55
#define IDD_SETUP 102
66
#define IDD_WAIT_DEVICE 103
7+
#define IDI_ICON1 105
78
#define IDC_BAUD_RATE 1001
89
#define IDC_BYTE_SIZE 1002
910
#define IDC_PARITY 1004
@@ -30,7 +31,7 @@
3031
//
3132
#ifdef APSTUDIO_INVOKED
3233
#ifndef APSTUDIO_READONLY_SYMBOLS
33-
#define _APS_NEXT_RESOURCE_VALUE 105
34+
#define _APS_NEXT_RESOURCE_VALUE 106
3435
#define _APS_NEXT_COMMAND_VALUE 40001
3536
#define _APS_NEXT_CONTROL_VALUE 1021
3637
#define _APS_NEXT_SYMED_VALUE 101

fragments.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"profiles": [
33
{
44
"name": "SimpleCom",
5-
"commandline": "C:\\path\\to\\SimpleCom.exe --show-dialog --wait-serial-device 60"
5+
"commandline": "C:\\path\\to\\SimpleCom.exe --show-dialog --wait-serial-device 60",
6+
"icon": "C:\\path\\to\\SimpleCom.exe"
67
}
78
]
89
}

0 commit comments

Comments
 (0)