Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Feb 9, 2023
1 parent 5f91126 commit ed0a032
Show file tree
Hide file tree
Showing 6 changed files with 5,654 additions and 4 deletions.
Binary file added icons/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,597 changes: 5,597 additions & 0 deletions icons/icon.ai

Large diffs are not rendered by default.

Binary file added icons/icon.ico
Binary file not shown.
Binary file added icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 57 additions & 4 deletions wix/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
Schedule='afterInstallInitialize'
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>

<Icon Id='SetupIcon' SourceFile='.\icons\icon.ico'/>

<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
<Property Id='DiskPrompt' Value='serial-monitor-rust Installation'/>

Expand Down Expand Up @@ -126,8 +128,36 @@
</Directory>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Serial Monitor"/>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop">
</Directory> </Directory>
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="AppStart" Guid="d5886d8d-009d-4468-9db3-1ebc72f7c201">
<Shortcut Id="AppStartShortcut"
Name="Serial Monitor"
Description="Serial Monitor and Plotter written in rust."
Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe"
WorkingDirectory="APPLICATIONROOTDIRECTORY"
Icon="SetupIcon"/>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="StartShortcut" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>

<DirectoryRef Id="DesktopFolder">
<Component Id="AppDesk" Guid="e7261bca-c8c3-4f7f-be81-eb3a7470bc7d">
<Shortcut Id="AppDeskShortcut"
Name="Serial Monitor"
Description="Serial Monitor and Plotter written in rust."
Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe"
WorkingDirectory="APPLICATIONROOTDIRECTORY"
Icon="SetupIcon"/>
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="DeskShortcut" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<Feature
Id='Binaries'
Title='Application'
Expand Down Expand Up @@ -155,17 +185,40 @@
</Feature>
</Feature>

<Feature
Id='StartShort'
Title='Start menu shortcut'
Description='Add a shortcut to the start menu'
Level='1'
AllowAdvertise='no'
Display='expand'
Absent='disallow'>

<ComponentRef Id="AppStart" />
</Feature>

<Feature
Id='DeskShort'
Title='Desktop shortcut'
Description='Add a shortcut to the desktop'
Level='1'
AllowAdvertise='no'
Display='expand'
Absent='disallow'>

<ComponentRef Id="AppDesk" />
</Feature>

<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>


<!--
Uncomment the following `Icon` and `Property` tags to change the product icon.
The product icon is the graphic that appears in the Add/Remove
Programs control panel for the application.
-->
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>-->
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />-->
<Icon Id='ProductICO' SourceFile='.\icons\icon.ico'/>

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

Expand Down

0 comments on commit ed0a032

Please sign in to comment.