Skip to content

Commit 2f824d8

Browse files
committed
add startmenu entry
1 parent 4397ce9 commit 2f824d8

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

wix/Folders.wxs

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

wix/LanMouseComponents.wxs

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2-
<Fragment>
3-
<ComponentGroup Id="LanMouseComponents" Directory="INSTALLFOLDER">
4-
<Component>
5-
<File Source="..\target\release\lan-mouse.exe" />
6-
</Component>
7-
</ComponentGroup>
8-
</Fragment>
2+
<Fragment>
3+
<ComponentGroup Id="LanMouseComponents" Directory="INSTALLFOLDER">
4+
<Component>
5+
<File Source="..\target\release\lan-mouse.exe"/>
6+
</Component>
7+
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder">
8+
<Shortcut Id="ApplicationStartMenuShortcut"
9+
Name="!(bind.Property.ProductName)"
10+
Description ="Mouse and Keyboard sharing Software"
11+
Target="[INSTALLFOLDER]lan-mouse.exe"
12+
WorkingDirectory="INSTALLFOLDER"/>
13+
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
14+
<RegistryValue Root="HKCU" Key="Software\Feschber\LanMouse" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
15+
</Component>
16+
</ComponentGroup>
17+
</Fragment>
918
</Wix>

wix/LanMouseMsi.wixproj

-5
This file was deleted.

wix/package.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<MediaTemplate EmbedCab="yes"/>
1010
<Feature Id="Main">
11-
<ComponentGroupRef Id="LanMouseComponents" />
11+
<ComponentGroupRef Id="LanMouseComponents"/>
1212
</Feature>
1313
</Package>
1414
</Wix>

0 commit comments

Comments
 (0)