extremetuxracer/build/Installer/extremetuxracer.wxs

95 lines
5.4 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<?include productInfo.wxi ?>
<?include config.wxi ?>
<Product Name='$(var.ProductName)' Id='*' UpgradeCode='$(var.ProductUpgradeCode)'
Language='1033' Codepage='utf-8' Version='$(var.ProductVersion)' Manufacturer='$(var.ProductManufacturer)'>
<Package Id='*' Keywords='Installer' Description="$(var.ProductName) Setup"
Comments='$(var.ProductDescription)' Manufacturer='$(var.ProductManufacturer)'
InstallerVersion='405' Languages='1033' Compressed='yes' SummaryCodepage='1252' InstallScope='perMachine'/>
<Media Id='1' Cabinet='ExtremeTuxRacer.cab' EmbedCab='yes' CompressionLevel='high' DiskPrompt='CD-ROM 1' />
<Property Id='DiskPrompt' Value='ExtremeTuxRacer installation [1]' />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='SystemFolder' FileSource='SystemFolder' />
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='$(var.ProductNameShort)'>
<Directory Id='ConfigDir' Name='config'>
<Component Id="Config" Guid='$(var.configGUID)'>
<CreateFolder>
<Permission User="Everyone" GenericAll="yes" />
</CreateFolder>
</Component>
</Directory>
<Component Id='ExtremeTuxRacer.exe' Guid='$(var.etrGUID)'>
<File Id='ExtremeTuxRacer.exe' Name='ExtremeTuxRacer.exe' DiskId='1' Source='$(var.BinDir)\ExtremeTuxRacer.exe' KeyPath='yes' />
</Component>
<Component Id='SFML' Guid='$(var.sfmlGUID)'>
<File Id='openal32.dll' Name='openal32.dll' DiskId='1' Source='$(var.BinDir)\openal32.dll' />
<?if $(var.Platform) = x64 ?>
<File Id='sfml_system_2.dll' Name='sfml-system-64-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-system-64-2.dll' KeyPath='yes' />
<File Id='sfml_window_2.dll' Name='sfml-window-64-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-window-64-2.dll' />
<File Id='sfml_graphics_2.dll' Name='sfml-graphics-64-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-graphics-64-2.dll' />
<File Id='sfml_audio_2.dll' Name='sfml-audio-64-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-audio-64-2.dll' />
<?else?>
<File Id='sfml_system_2.dll' Name='sfml-system-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-system-2.dll' KeyPath='yes' />
<File Id='sfml_window_2.dll' Name='sfml-window-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-window-2.dll' />
<File Id='sfml_graphics_2.dll' Name='sfml-graphics-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-graphics-2.dll' />
<File Id='sfml_audio_2.dll' Name='sfml-audio-2.dll' DiskId='1' Source='$(var.BinDir)\sfml-audio-2.dll' />
<?endif?>
</Component>
</Directory>
<Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" />
</Directory>
<Directory Id='ProgramMenuFolder' Name='Programs' >
<Directory Id='ProgramMenuDir' Name='$(var.ProductName)'>
<Component Id='ProgramMenuDir' Guid='*'>
<Shortcut Id="ApplicationStartMenuShortcut"
Name="Extreme TuxRacer"
Description="Extreme TuxRacer"
Target="[INSTALLDIR]ExtremeTuxRacer.exe"
WorkingDirectory="INSTALLDIR"/>
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
<RegistryValue Root='HKCU' Key='Software\ExtremeTuxRacer\$(var.ProductName)' Type='string' Value='' KeyPath='yes' />
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Title='$(var.ProductName)' Description='The complete package.'
Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' >
<Feature Id='ExtremeTuxRacer' Display='hidden' AllowAdvertise='no' Title='Extreme TuxRacer' Description='Extreme TuxRacer core components' Level='1'>
<ComponentRef Id='ExtremeTuxRacer.exe' />
<ComponentGroupRef Id='Data' />
<ComponentRef Id='Config' />
<ComponentRef Id='SFML' />
</Feature>
<!--<Feature Id='Translations' Title='Translations' AllowAdvertise='no' Description='Translations for other languages than English' Level='1'>
<ComponentRef Id='Translations' />
</Feature>-->
<Feature Id='ProgramMenuEntry' Title='Program menu entry' AllowAdvertise='no' Description='Add entry to program menu' Level='1'>
<ComponentRef Id='ProgramMenuDir' />
</Feature>
<Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2015 Runtime Components">
<MergeRef Id="CRT"/>
</Feature>
</Feature>
<MajorUpgrade DowngradeErrorMessage='Downgrade is not possible' AllowSameVersionUpgrades='yes'/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<UIRef Id="WixUI_FeatureTree"/>
<Icon Id='ExtremeTuxRacer.exe' SourceFile='$(var.BinDir)\ExtremeTuxRacer.exe' />
<Property Id="ARPPRODUCTICON" Value="ExtremeTuxRacer.exe" />
<WixVariable Id="WixUILicenseRtf" Value="GPLv3.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="..\..\resources\banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="..\..\resources\dialog.bmp" />
</Product>
</Wix>