mirror of
https://github.com/seemueller-io/yachtpit.git
synced 2025-09-08 22:46:45 +00:00
51 lines
2.2 KiB
XML
51 lines
2.2 KiB
XML
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
|
<Package
|
|
Name="yachtpit"
|
|
Manufacturer="gsio"
|
|
UpgradeCode="ac8709c2-1d6f-4440-b424-386e4e315425"
|
|
Version="0.0.1"
|
|
|
|
Scope="perUserOrMachine">
|
|
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
|
|
|
|
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" />
|
|
|
|
<Property Id="ApplicationFolderName" Value="!(bind.Property.ProductName)" />
|
|
|
|
<!-- Installer Icon -->
|
|
<Icon Id="icon.ico" SourceFile="..\icon.ico"/>
|
|
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
|
|
|
|
<!-- Sets the default installation folder -->
|
|
<StandardDirectory Id="ProgramFiles6432Folder">
|
|
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.ProductName)" />
|
|
</StandardDirectory>
|
|
|
|
<!-- Shows a UI that allows customizing the install location -->
|
|
<ui:WixUI Id="WixUI_CustomInstallDir" InstallDirectory="INSTALLFOLDER" />
|
|
|
|
<Feature Id="Main">
|
|
<ComponentGroupRef Id="MainComponent" />
|
|
<ComponentRef Id="StartMenuShortcut" />
|
|
<ComponentGroupRef Id="AssetsDirectory" />
|
|
<ComponentGroupRef Id="CreditsDirectory" />
|
|
</Feature>
|
|
|
|
<!-- Installs the actual files -->
|
|
<ComponentGroup Id="MainComponent" Directory="INSTALLFOLDER">
|
|
<Component>
|
|
<File Id="Executable" Source="..\..\..\target\dist\yachtpit.exe" Vital="true" />
|
|
</Component>
|
|
</ComponentGroup>
|
|
|
|
<!-- Start menu shortcut -->
|
|
<!-- Source: https://wixtoolset.org/docs/v3/howtos/files_and_registry/create_start_menu_shortcut/ -->
|
|
<StandardDirectory Id="ProgramMenuFolder">
|
|
<Component Id="StartMenuShortcut" Guid="*">
|
|
<Shortcut Id="ApplicationStartMenuShortcut" Name="!(bind.Property.ProductName)" Target="[!Executable]" WorkingDirectory="INSTALLFOLDER" />
|
|
<RegistryValue Root="HKCU" Key="Software\!(bind.Property.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
|
</Component>
|
|
</StandardDirectory>
|
|
</Package>
|
|
</Wix>
|