add application icon

This commit is contained in:
Ferdinand Schober
2025-03-17 02:39:08 +01:00
parent 2f824d8bd3
commit b9a4497fa4
4 changed files with 15 additions and 4 deletions

3
wix/.gitignore vendored
View File

@@ -1,2 +1,3 @@
/bin /bin
/obj /obj
icon.ico

View File

@@ -9,9 +9,17 @@
Name="!(bind.Property.ProductName)" Name="!(bind.Property.ProductName)"
Description ="Mouse and Keyboard sharing Software" Description ="Mouse and Keyboard sharing Software"
Target="[INSTALLFOLDER]lan-mouse.exe" Target="[INSTALLFOLDER]lan-mouse.exe"
WorkingDirectory="INSTALLFOLDER"/> WorkingDirectory="INSTALLFOLDER">
<Icon Id="LanMouse" SourceFile=".\icon.ico"/>
</Shortcut>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Feschber\LanMouse" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue
Root="HKCU"
Key="Software\Feschber\LanMouse"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component> </Component>
</ComponentGroup> </ComponentGroup>
</Fragment> </Fragment>

2
wix/build.ps1 Normal file
View File

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

View File

@@ -6,7 +6,7 @@
UpgradeCode="a330cd60-4c35-4a54-8bb6-75b3049b46c6"> UpgradeCode="a330cd60-4c35-4a54-8bb6-75b3049b46c6">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" /> <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<MediaTemplate EmbedCab="yes"/> <MediaTemplate EmbedCab="yes"/>
<Feature Id="Main"> <Feature Id="Main">
<ComponentGroupRef Id="LanMouseComponents"/> <ComponentGroupRef Id="LanMouseComponents"/>
</Feature> </Feature>