Skip to content

Commit 89c2acb

Browse files
committed
start working on an installer
1 parent 5736919 commit 89c2acb

6 files changed

+40
-0
lines changed

wix/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/obj

wix/Folders.wxs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<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>
7+
</Wix>

wix/LanMouseComponents.wxs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<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>
9+
</Wix>

wix/LanMouseMsi.wixproj

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="WixToolset.Sdk/5.0.2">
2+
<PropertyGroup>
3+
<InstallerPlatform>x64</InstallerPlatform>
4+
</PropertyGroup>
5+
</Project>

wix/Package.en-us.wxl

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--
2+
This file contains the declaration of all the localizable strings.
3+
-->
4+
<WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US">
5+
6+
<String Id="DowngradeError" Value="A newer version of [ProductName] is already installed." />
7+
8+
</WixLocalization>

wix/package.wxs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2+
<Package Name="Lan Mouse" Manufacturer="Ferdinand Schober" Version="1.0.0.0" UpgradeCode="a330cd60-4c35-4a54-8bb6-75b3049b46c6">
3+
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
4+
5+
<Feature Id="Main">
6+
<ComponentGroupRef Id="LanMouseComponents" />
7+
</Feature>
8+
</Package>
9+
</Wix>

0 commit comments

Comments
 (0)