start working on an installer

This commit is contained in:
Ferdinand Schober
2025-03-16 11:46:00 +01:00
committed by Ferdinand Schober
parent 5736919f89
commit acb067bfde
7 changed files with 49 additions and 0 deletions

2
wix/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/bin
/obj

7
wix/Folders.wxs Normal file
View File

@@ -0,0 +1,7 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)" />
</StandardDirectory>
</Fragment>
</Wix>

5
wix/LanMouse.wixproj Normal file
View File

@@ -0,0 +1,5 @@
<Project Sdk="WixToolset.Sdk/5.0.2">
<PropertyGroup>
<InstallerPlatform>x64</InstallerPlatform>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,9 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="LanMouseComponents" Directory="INSTALLFOLDER">
<Component>
<File Source="..\target\release\lan-mouse.exe" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>

5
wix/LanMouseMsi.wixproj Normal file
View File

@@ -0,0 +1,5 @@
<Project Sdk="WixToolset.Sdk/5.0.2">
<PropertyGroup>
<InstallerPlatform>x64</InstallerPlatform>
</PropertyGroup>
</Project>

8
wix/Package.en-us.wxl Normal file
View File

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

13
wix/package.wxs Normal file
View File

@@ -0,0 +1,13 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package
Name="Lan Mouse"
Manufacturer="Ferdinand Schober"
Version="0.10.0.0"
UpgradeCode="a330cd60-4c35-4a54-8bb6-75b3049b46c6">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<Feature Id="Main">
<ComponentGroupRef Id="LanMouseComponents" />
</Feature>
</Package>
</Wix>