juicysfplugin/Builds/WixSetup/Product.wxs
2019-08-04 00:20:09 +01:00

89 lines
3.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include $(sys.CURRENTDIR)\Config.wxi?>
<Product Id="*" Name="$(var.Name)" Language="1033" Version="1.0.0.0" Manufacturer="$(var.Manufacturer)" UpgradeCode="e03ac63d-63d8-48d1-ab6c-ba539f7d523f">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="$(var.Platform)" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<WixVariable Id="WixUILicenseRtf" Value="test.rtf" />
<Feature Id="ProductFeature" Title="WixSetup" Level="1">
<ComponentGroupRef Id="StandaloneAppComponents" />
<ComponentGroupRef Id="LicenseComponents" />
<ComponentGroupRef Id="LicenseConcatComponents" />
<ComponentGroupRef Id="LibraryComponents" />
<ComponentGroupRef Id="VSTComponents" />
<ComponentGroupRef Id="VST3Components" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- https://docs.microsoft.com/en-us/windows/win32/msi/programfilesfolder -->
<Directory Id="$(var.PlatformProgramFilesFolder)">
<!-- Create a folder inside program files with Company Name-->
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
<!-- Create a folder inside Company Name folder with Product Name-->
<Directory Id="INSTALLFOLDER" Name="$(var.Name)" >
<Directory Id="LICENSEFOLDER" Name="licenses_of_dependencies" />
</Directory>
</Directory>
</Directory>
<Directory Id="$(var.PlatformCommonFilesFolder)">
<Directory Id="VSTINSTALLFOLDER" Name="VST"/>
<Directory Id="VST3INSTALLFOLDER" Name="VST3"/>
</Directory>
<Directory Id="$(var.PlatformSystemFolder)" />
</Directory>
</Fragment>
<!-- https://www.guidgen.com/ -->
<Fragment>
<ComponentGroup Id="StandaloneAppComponents" Directory="INSTALLFOLDER">
<Component Id="juicysfplugin.exe" Guid="*">
<File Source="$(var.juicysfplugin_StandalonePlugin.TargetPath)" />
</Component>
</ComponentGroup>
<ComponentGroup Id="VSTComponents" Directory="VSTINSTALLFOLDER">
<Component Id="juicysfplugin.dll" Guid="*">
<File Source="$(var.juicysfplugin_VST.TargetPath)" />
</Component>
</ComponentGroup>
<ComponentGroup Id="VST3Components" Directory="VST3INSTALLFOLDER">
<Component Id="juicysfplugin.vst3" Guid="*">
<File Source="$(var.juicysfplugin_VST3.TargetPath)" />
</Component>
</ComponentGroup>
<ComponentGroup Id="LibraryComponents" Directory="$(var.PlatformSystemFolder)">
<Component Guid="*">
<File Source="$(var.LibSrcRoot)libfluidsynth-2.dll" />
</Component>
<?if $(var.Win64) = no ?>
<?warning $(var.Win64) ?>
<?warning $(var.Platform) ?>
<?warning $(var.LibSrcRoot) ?>
<Component Guid="*">
<File Source="$(var.LibSrcRoot)libgcc_s_dw2-1.dll" />
</Component>
<?endif ?>
</ComponentGroup>
<ComponentGroup Id="LicenseConcatComponents" Directory="INSTALLFOLDER">
<Component Id="license_concatenated.txt" Guid="*">
<File Source="$(var.LicenseConcatSrcRoot)license_concatenated.txt" />
</Component>
<Component Id="license_concatenated.rtf" Guid="*">
<File Source="$(var.LicenseConcatSrcRoot)license_concatenated.rtf" />
</Component>
</ComponentGroup>
<ComponentGroup Id="LicenseComponents" Directory="LICENSEFOLDER">
<Component Guid="*">
<File Source="$(var.LicenseSrcRoot)JUCE-framework_GPL3.txt" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>