Skip to content

Commit ed0a032

Browse files
committed
add icons
1 parent 5f91126 commit ed0a032

File tree

6 files changed

+5654
-4
lines changed

6 files changed

+5654
-4
lines changed

icons/icon-128.png

5.85 KB
Loading

icons/[email protected]

13.6 KB
Loading

icons/icon.ai

Lines changed: 5597 additions & 0 deletions
Large diffs are not rendered by default.

icons/icon.ico

15 KB
Binary file not shown.

icons/icon.png

77.3 KB
Loading

wix/main.wxs

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
Schedule='afterInstallInitialize'
8484
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>
8585

86+
<Icon Id='SetupIcon' SourceFile='.\icons\icon.ico'/>
87+
8688
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
8789
<Property Id='DiskPrompt' Value='serial-monitor-rust Installation'/>
8890

@@ -126,8 +128,36 @@
126128
</Directory>
127129
</Directory>
128130
</Directory>
129-
</Directory>
131+
<Directory Id="ProgramMenuFolder">
132+
<Directory Id="ApplicationProgramsFolder" Name="Serial Monitor"/>
133+
</Directory>
134+
<Directory Id="DesktopFolder" Name="Desktop">
135+
</Directory> </Directory>
136+
<DirectoryRef Id="ApplicationProgramsFolder">
137+
<Component Id="AppStart" Guid="d5886d8d-009d-4468-9db3-1ebc72f7c201">
138+
<Shortcut Id="AppStartShortcut"
139+
Name="Serial Monitor"
140+
Description="Serial Monitor and Plotter written in rust."
141+
Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe"
142+
WorkingDirectory="APPLICATIONROOTDIRECTORY"
143+
Icon="SetupIcon"/>
144+
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
145+
<RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="StartShortcut" Type="integer" Value="1" KeyPath="yes"/>
146+
</Component>
147+
</DirectoryRef>
130148

149+
<DirectoryRef Id="DesktopFolder">
150+
<Component Id="AppDesk" Guid="e7261bca-c8c3-4f7f-be81-eb3a7470bc7d">
151+
<Shortcut Id="AppDeskShortcut"
152+
Name="Serial Monitor"
153+
Description="Serial Monitor and Plotter written in rust."
154+
Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe"
155+
WorkingDirectory="APPLICATIONROOTDIRECTORY"
156+
Icon="SetupIcon"/>
157+
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
158+
<RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="DeskShortcut" Type="integer" Value="1" KeyPath="yes"/>
159+
</Component>
160+
</DirectoryRef>
131161
<Feature
132162
Id='Binaries'
133163
Title='Application'
@@ -155,17 +185,40 @@
155185
</Feature>
156186
</Feature>
157187

188+
<Feature
189+
Id='StartShort'
190+
Title='Start menu shortcut'
191+
Description='Add a shortcut to the start menu'
192+
Level='1'
193+
AllowAdvertise='no'
194+
Display='expand'
195+
Absent='disallow'>
196+
197+
<ComponentRef Id="AppStart" />
198+
</Feature>
199+
200+
<Feature
201+
Id='DeskShort'
202+
Title='Desktop shortcut'
203+
Description='Add a shortcut to the desktop'
204+
Level='1'
205+
AllowAdvertise='no'
206+
Display='expand'
207+
Absent='disallow'>
208+
209+
<ComponentRef Id="AppDesk" />
210+
</Feature>
211+
158212
<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
159213

160-
214+
161215
<!--
162216
Uncomment the following `Icon` and `Property` tags to change the product icon.
163217
164218
The product icon is the graphic that appears in the Add/Remove
165219
Programs control panel for the application.
166220
-->
167-
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>-->
168-
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />-->
221+
<Icon Id='ProductICO' SourceFile='.\icons\icon.ico'/>
169222

170223
<Property Id='ARPHELPLINK' Value='https://github.com/hacknus/serial-monitor-rust'/>
171224

0 commit comments

Comments
 (0)