Skip to content

Commit b9a4497

Browse files
committed
add application icon
1 parent 2f824d8 commit b9a4497

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

wix/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/bin
2-
/obj
2+
/obj
3+
icon.ico

wix/LanMouseComponents.wxs

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@
99
Name="!(bind.Property.ProductName)"
1010
Description ="Mouse and Keyboard sharing Software"
1111
Target="[INSTALLFOLDER]lan-mouse.exe"
12-
WorkingDirectory="INSTALLFOLDER"/>
12+
WorkingDirectory="INSTALLFOLDER">
13+
<Icon Id="LanMouse" SourceFile=".\icon.ico"/>
14+
</Shortcut>
1315
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
14-
<RegistryValue Root="HKCU" Key="Software\Feschber\LanMouse" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
16+
<RegistryValue
17+
Root="HKCU"
18+
Key="Software\Feschber\LanMouse"
19+
Name="installed"
20+
Type="integer"
21+
Value="1"
22+
KeyPath="yes"/>
1523
</Component>
1624
</ComponentGroup>
1725
</Fragment>

wix/build.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
magick -background none -density 384 ..\lan-mouse-gtk\resources\de.feschber.LanMouse.svg -trim -define icon:auto-resize icon.ico
2+
dotnet build

wix/package.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
UpgradeCode="a330cd60-4c35-4a54-8bb6-75b3049b46c6">
77
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
88

9-
<MediaTemplate EmbedCab="yes"/>
9+
<MediaTemplate EmbedCab="yes"/>
1010
<Feature Id="Main">
1111
<ComponentGroupRef Id="LanMouseComponents"/>
1212
</Feature>

0 commit comments

Comments
 (0)