xref: /freebsd/contrib/pkgconf/pkgconf.wxs.in (revision a3cefe7f2b4df0f70ff92d4570ce18e517af43ec)
1<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3
4  <?define Arch = "@WIXL_ARCH@"?>
5  <?if $(var.Arch) = "x64"?>
6      <?define GLIB_ARCH = "win64"?>
7      <?define ArchString = "64-bit"?>
8      <?define ArchProgramFilesFolder = "ProgramFiles64Folder"?>
9      <?define Win64 = "yes"?>
10  <?else?>
11      <?define GLIB_ARCH = "win32"?>
12      <?define ArchString = "32-bit"?>
13      <?define ArchProgramFilesFolder = "ProgramFilesFolder"?>
14      <?define Win64 = "no"?>
15  <?endif?>
16
17
18  <Product Id="*"
19           Name="pkgconf @VERSION@ ($(var.ArchString))"
20           Language="1033"
21           Version="@VERSION@"
22           Manufacturer="pkgconf"
23           UpgradeCode="4faedad2-3f9d-45cc-89a7-3732ad2db0f7">
24
25      <Package InstallerVersion="200"
26               Compressed="yes"
27               InstallScope="perMachine" />
28
29      <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
30      <MediaTemplate EmbedCab="yes" />
31
32      <Feature Id="ProductFeature" Title="pkgconf" Level="1">
33          <ComponentGroupRef Id="ProductComponents" />
34      </Feature>
35
36      <Directory Id="TARGETDIR" Name="SourceDir">
37          <Directory Id="$(var.ArchProgramFilesFolder)">
38              <Directory Id="INSTALLFOLDER" Name="pkgconf @VERSION@" />
39          </Directory>
40      </Directory>
41
42      <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
43          <Component Id="PkgconfExe" Guid="*" Win64="$(var.Win64)">
44              <File Id="PkgconfExeFile"
45                    Source="@EXE@"
46                    KeyPath="yes" />
47              <File Id="PkgconfigExeFile"
48                    Name="pkg-config.exe"
49                    Source="@EXE@"/>
50              <File Id="PkgconfDllFile"
51                    Source="@DLL@"/>
52              <Environment Id="PATH"
53                           Name="PATH"
54                           Value="[INSTALLFOLDER]"
55                           Permanent="no"
56                           Part="last"
57                           Action="set"
58                           System="yes" />
59          </Component>
60      </ComponentGroup>
61
62      <UIRef Id="WixUI_Minimal" />
63   </Product>
64</Wix>
65