|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 3 | + <?define Version = "{IntegrationVersion}" ?> |
| 4 | + <?define ProductId = "*" ?> |
| 5 | + <?define UpgradeCode = "{f42aa489-e590-429d-a1c2-4ebd97cf8c3e}" ?> |
| 6 | + |
| 7 | + <Product Id="$(var.ProductId)" |
| 8 | + Name="New Relic Infrastructure Integration, nri-{IntegrationName}" |
| 9 | + Language="1033" |
| 10 | + Version="$(var.Version)" |
| 11 | + Manufacturer="New Relic, Inc." |
| 12 | + UpgradeCode="$(var.UpgradeCode)"> |
| 13 | + <Package Id="*" |
| 14 | + InstallerVersion="200" |
| 15 | + Compressed="yes" |
| 16 | + InstallScope="perMachine" |
| 17 | + Platform="x64" |
| 18 | + Manufacturer="New Relic, Inc." |
| 19 | + Comments="(c) {Year} New Relic, Inc." |
| 20 | + Keywords="infrastructure,MSI,on-host,{IntegrationName}"/> |
| 21 | + |
| 22 | + <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."/> |
| 23 | + <MediaTemplate EmbedCab="yes"/> |
| 24 | + |
| 25 | + <Feature Id="ProductFeature" Title="New Relic Infrastructure Integration, nri-{IntegrationName}" Level="1"> |
| 26 | + <ComponentRef Id="CMP_V1_PLUGIN_CONFIGS"/> |
| 27 | + <ComponentRef Id="CMP_V1_CUSTOM_PLUGINS"/> |
| 28 | + <ComponentRef Id="CMP_V1_CUSTOM_PLUGINS_BIN"/> |
| 29 | + <ComponentGroupRef Id="CustomPluginsBinComponent"/> |
| 30 | + <ComponentGroupRef Id="CustomPluginsComponent"/> |
| 31 | + <ComponentGroupRef Id="PluginConfigsComponent"/> |
| 32 | + </Feature> |
| 33 | + </Product> |
| 34 | + |
| 35 | + <Fragment> |
| 36 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 37 | + <Directory Id="ProgramFiles64Folder"> |
| 38 | + <Directory Id="CompanyFolder" Name="New Relic"> |
| 39 | + <Directory Id="AgentBinaryFolder" Name="newrelic-infra"> |
| 40 | + <Directory Id="PluginConfigsFolder" Name="integrations.d"/> |
| 41 | + <Directory Id="CustomPluginsFolder" Name="newrelic-integrations"> |
| 42 | + <Directory Id="CustomPluginsBinFolder" Name="bin"/> |
| 43 | + </Directory> |
| 44 | + </Directory> |
| 45 | + </Directory> |
| 46 | + </Directory> |
| 47 | + </Directory> |
| 48 | + </Fragment> |
| 49 | + |
| 50 | + <Fragment> |
| 51 | + <DirectoryRef Id="PluginConfigsFolder"> |
| 52 | + <Component Id="CMP_V1_PLUGIN_CONFIGS" Guid="803C978C-B2A1-47C7-BB17-A2DE9E6D3145" KeyPath="yes"> |
| 53 | + <CreateFolder/> |
| 54 | + </Component> |
| 55 | + </DirectoryRef> |
| 56 | + <DirectoryRef Id="CustomPluginsFolder"> |
| 57 | + <Component Id="CMP_V1_CUSTOM_PLUGINS" Guid="0EE4AAF4-9923-499C-A1D0-FF55B205A76C" KeyPath="yes"> |
| 58 | + <CreateFolder/> |
| 59 | + </Component> |
| 60 | + </DirectoryRef> |
| 61 | + <DirectoryRef Id="CustomPluginsBinFolder"> |
| 62 | + <Component Id="CMP_V1_CUSTOM_PLUGINS_BIN" Guid="e4509a7a-409e-4a38-8705-37de9cf0d72d" KeyPath="yes"> |
| 63 | + <CreateFolder/> |
| 64 | + </Component> |
| 65 | + </DirectoryRef> |
| 66 | + </Fragment> |
| 67 | + |
| 68 | + <Fragment> |
| 69 | + <ComponentGroup Id="CustomPluginsBinComponent" Directory="CustomPluginsBinFolder"> |
| 70 | + <Component Id="CMP_NRI_{IntegrationName}_EXE" Guid="eea30c6e-7a14-4cc5-97c5-88a742041643" Win64="yes"> |
| 71 | + <File Id="FILE_NRI_{IntegrationName}_EXE" |
| 72 | + Source="$(var.BinariesPath){IntegrationExe}" |
| 73 | + KeyPath="yes"/> |
| 74 | + </Component> |
| 75 | + </ComponentGroup> |
| 76 | + <ComponentGroup Id="CustomPluginsComponent" Directory="CustomPluginsFolder"> |
| 77 | + <Component Id="CMP_NRI_{IntegrationName}_DEFINITION_YML" Guid="35c84fd9-7b1a-4871-a706-390ea19252b1" Win64="yes" |
| 78 | + NeverOverwrite="yes" Permanent="yes"> |
| 79 | + <File Id="FILE_NRI_{IntegrationName}_DEFINITION_YML" |
| 80 | + Name="{IntegrationName}-definition.yml" |
| 81 | + Source="$(var.ProjectRootPath){IntegrationName}-win-definition.yml" |
| 82 | + KeyPath="yes"/> |
| 83 | + </Component> |
| 84 | + </ComponentGroup> |
| 85 | + <ComponentGroup Id="PluginConfigsComponent" Directory="PluginConfigsFolder"> |
| 86 | + <Component Id="CMP_NRI_{IntegrationName}_CONFIG_YML" Guid="ae131e4c-7ec5-42c5-b21b-b454979f28ee" Win64="yes" |
| 87 | + NeverOverwrite="yes" Permanent="yes"> |
| 88 | + <File Id="FILE_NRI_{IntegrationName}_CONFIG_YML" |
| 89 | + Name="{IntegrationName}-config.yml.sample" |
| 90 | + Source="$(var.ProjectRootPath){IntegrationName}-config.yml.sample" |
| 91 | + KeyPath="yes"/> |
| 92 | + </Component> |
| 93 | + </ComponentGroup> |
| 94 | + </Fragment> |
| 95 | + |
| 96 | +</Wix> |
0 commit comments