File: pkgconf.wxs.in

package info (click to toggle)
pkgconf 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,820 kB
  • sloc: ansic: 8,111; sh: 6,689; makefile: 247; python: 157
file content (64 lines) | stat: -rw-r--r-- 2,213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?define Arch = "@WIXL_ARCH@"?>
  <?if $(var.Arch) = "x64"?>
      <?define GLIB_ARCH = "win64"?>
      <?define ArchString = "64-bit"?>
      <?define ArchProgramFilesFolder = "ProgramFiles64Folder"?>
      <?define Win64 = "yes"?>
  <?else?>
      <?define GLIB_ARCH = "win32"?>
      <?define ArchString = "32-bit"?>
      <?define ArchProgramFilesFolder = "ProgramFilesFolder"?>
      <?define Win64 = "no"?>
  <?endif?>


  <Product Id="*"
           Name="pkgconf @VERSION@ ($(var.ArchString))"
           Language="1033"
           Version="@VERSION@"
           Manufacturer="pkgconf"
           UpgradeCode="4faedad2-3f9d-45cc-89a7-3732ad2db0f7">

      <Package InstallerVersion="200"
               Compressed="yes"
               InstallScope="perMachine" />

      <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
      <MediaTemplate EmbedCab="yes" />

      <Feature Id="ProductFeature" Title="pkgconf" Level="1">
          <ComponentGroupRef Id="ProductComponents" />
      </Feature>

      <Directory Id="TARGETDIR" Name="SourceDir">
          <Directory Id="$(var.ArchProgramFilesFolder)">
              <Directory Id="INSTALLFOLDER" Name="pkgconf @VERSION@" />
          </Directory>
      </Directory>

      <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
          <Component Id="PkgconfExe" Guid="*" Win64="$(var.Win64)">
              <File Id="PkgconfExeFile"
                    Source="@EXE@"
                    KeyPath="yes" />
              <File Id="PkgconfigExeFile"
                    Name="pkg-config.exe"
                    Source="@EXE@"/>
              <File Id="PkgconfDllFile"
                    Source="@DLL@"/>
              <Environment Id="PATH"
                           Name="PATH"
                           Value="[INSTALLFOLDER]"
                           Permanent="no"
                           Part="last"
                           Action="set"
                           System="yes" />
          </Component>
      </ComponentGroup>

      <UIRef Id="WixUI_Minimal" />
   </Product>
</Wix>