Skip to content

Commit 6125944

Browse files
committed
fix icons
1 parent b9a4497 commit 6125944

File tree

4 files changed

+46
-5
lines changed

4 files changed

+46
-5
lines changed

wix/Folders.wxs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
22
<Fragment>
33
<StandardDirectory Id="ProgramFiles64Folder">
4-
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)" />
4+
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)">
5+
<Directory Id="SHARE" Name="share"/>
6+
<Directory Id="LIB" Name="lib"/>
7+
</Directory>
58
</StandardDirectory>
69
<StandardDirectory Id="ProgramMenuFolder">
710
<Directory Id="ApplicationProgramsFolder" Name="!(bind.Property.ProductName)"/>

wix/LanMouse.wixproj

+29
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,33 @@
22
<PropertyGroup>
33
<InstallerPlatform>x64</InstallerPlatform>
44
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="WixToolset.Heat">
7+
<Version>5.0.2</Version>
8+
</PackageReference>
9+
</ItemGroup>
10+
<ItemGroup>
11+
<HarvestDirectory Include="C:\gtk-build\gtk\x64\release\bin">
12+
<ComponentGroupName>GTKBIN</ComponentGroupName>
13+
<DirectoryRefId>INSTALLFOLDER</DirectoryRefId>
14+
<SuppressRegistry>true</SuppressRegistry>
15+
</HarvestDirectory>
16+
<BindPath Include="C:\gtk-build\gtk\x64\release\bin" />
17+
</ItemGroup>
18+
<ItemGroup>
19+
<HarvestDirectory Include="C:\gtk-build\gtk\x64\release\share\icons">
20+
<ComponentGroupName>GTKICONS</ComponentGroupName>
21+
<DirectoryRefId>SHARE</DirectoryRefId>
22+
<SuppressRegistry>true</SuppressRegistry>
23+
</HarvestDirectory>
24+
<BindPath Include="C:\gtk-build\gtk\x64\release\share\icons" />
25+
</ItemGroup>
26+
<ItemGroup>
27+
<HarvestDirectory Include="C:\gtk-build\gtk\x64\release\lib\gdk-pixbuf-2.0">
28+
<ComponentGroupName>GTKLIBS</ComponentGroupName>
29+
<DirectoryRefId>LIB</DirectoryRefId>
30+
<SuppressRegistry>true</SuppressRegistry>
31+
</HarvestDirectory>
32+
<BindPath Include="C:\gtk-build\gtk\x64\release\lib\gdk-pixbuf-2.0" />
33+
</ItemGroup>
534
</Project>

wix/LanMouseComponents.wxs

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
22
<Fragment>
3-
<ComponentGroup Id="LanMouseComponents" Directory="INSTALLFOLDER">
4-
<Component>
3+
<ComponentGroup Id="LanMouseComponents" Directory="INSTALLFOLDER" Subdirectory="bin">
4+
<Component Guid="{ECB52D3E-28AD-4BEC-B9DF-E01CCAB356BE}">
5+
<!-- the main binary -->
56
<File Source="..\target\release\lan-mouse.exe"/>
7+
8+
<!-- visual c runtime dll -->
9+
<File Source="C:\windows\system32\VCRUNTIME140.dll"/>
10+
<File Source="C:\windows\system32\VCRUNTIME140_1.dll"/>
611
</Component>
12+
<!-- start menu entry-->
713
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder">
814
<Shortcut Id="ApplicationStartMenuShortcut"
915
Name="!(bind.Property.ProductName)"
1016
Description ="Mouse and Keyboard sharing Software"
11-
Target="[INSTALLFOLDER]lan-mouse.exe"
17+
Target="[INSTALLFOLDER]bin\lan-mouse.exe"
1218
WorkingDirectory="INSTALLFOLDER">
13-
<Icon Id="LanMouse" SourceFile=".\icon.ico"/>
19+
<Icon Id="LanMouse" SourceFile=".\icon.ico"/>
1420
</Shortcut>
1521
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
1622
<RegistryValue

wix/package.wxs

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<MediaTemplate EmbedCab="yes"/>
1010
<Feature Id="Main">
11+
<ComponentGroupRef Id="GTKBIN"/>
12+
<ComponentGroupRef Id="GTKICONS"/>
13+
<ComponentGroupRef Id="GTKLIBS"/>
1114
<ComponentGroupRef Id="LanMouseComponents"/>
1215
</Feature>
1316
</Package>

0 commit comments

Comments
 (0)