|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
3 | 3 |
|
4 |
| -<!-- Default to x86 platform --> |
5 |
| -<?ifndef var.Platform ?> |
6 |
| - <?define Platform = "x86" ?> |
7 |
| -<?else?> |
8 |
| - <?if $(var.Platform) != x64 and $(var.Platform) != x86 ?> |
9 |
| - <?error Invalid Platform variable ?> |
10 |
| - <?endif?> |
11 |
| -<?endif?> |
12 |
| - |
13 | 4 | <?ifndef var.BINBASE ?>
|
14 | 5 | <?define BINBASE = ".." ?>
|
15 | 6 | <?endif?>
|
16 | 7 |
|
17 |
| -<?if $(var.Platform) = x64 ?> |
18 |
| - <?define ModuleName = "psqlODBC_$(var.Platform)" ?> |
| 8 | +<?if $(sys.BUILDARCH) = x64 ?> |
| 9 | + <?define Platform = "x64" ?> |
| 10 | + <?define ModuleName = "psqlODBC_x64" ?> |
19 | 11 | <?define BIT64 = "yes" ?>
|
20 | 12 | <?define ANSIFOLDER = "x64_ANSI_Release" ?>
|
21 | 13 | <?define UNICODEFOLDER = "x64_Unicode_Release" ?>
|
|
26 | 18 | <?else?>
|
27 | 19 | <?define SysFolder = "$(env.SystemRoot)\sysnative" ?>
|
28 | 20 | <?endif?>
|
29 |
| -<?else?> |
| 21 | +<?elseif $(sys.BUILDARCH) = x86 ?> |
| 22 | + <?define Platform = "x86" ?> |
30 | 23 | <?define ModuleName = "psqlODBC" ?>
|
31 | 24 | <?define BIT64 = "no" ?>
|
32 | 25 | <?define ANSIFOLDER = "x86_ANSI_Release" ?>
|
|
38 | 31 | <?else?>
|
39 | 32 | <?define SysFolder = "$(env.SystemRoot)\system32" ?>
|
40 | 33 | <?endif?>
|
| 34 | +<?else?> <!-- sys.BUILDARCH --> |
| 35 | + <?error Invalid build architecture ?> |
41 | 36 | <?endif?>
|
42 | 37 |
|
43 | 38 | <Module
|
|
51 | 46 | Keywords="PostgreSQL, ODBC"
|
52 | 47 | Manufacturer="PostgreSQL Global Development Group"
|
53 | 48 | InstallerVersion="$(var.InstallerVersion)"
|
54 |
| - Platform="$(var.Platform)" |
55 | 49 | Languages="1033"
|
56 | 50 | SummaryCodepage="1252" />
|
57 | 51 |
|
|
71 | 65 | -->
|
72 | 66 | <Directory Id="BINDIR" Name="." ComponentGuidGenerationSeed="495CEE94-BDB9-4309-9544-D98783259CD8">
|
73 | 67 | <!-- PostgreSQL -->
|
74 |
| - <Component Id="psqlodbc.psqlodbc30a.dll" Win64="$(var.BIT64)"> |
| 68 | + <Component Id="psqlodbc.psqlodbc30a.dll"> |
75 | 69 | <File Name="psqlodbc30a.dll" Source="$(var.BINBASE)\$(var.ANSIFOLDER)\psqlodbc30a.dll">
|
76 | 70 | <ODBCDriver Id="Psqlodbc_9.0_Driver_ANSI" Name="PostgreSQL ANSI($(var.Platform))">
|
77 | 71 | <Property Id="CPTimeout" Value="60"/>
|
|
81 | 75 | </ODBCDriver>
|
82 | 76 | </File>
|
83 | 77 | </Component>
|
84 |
| - <Component Id="psqlodbc.pgenlista.dll" Win64="$(var.BIT64)"> |
| 78 | + <Component Id="psqlodbc.pgenlista.dll"> |
85 | 79 | <File Name="pgenlista.dll" Source="$(var.BINBASE)\$(var.ANSIFOLDER)\pgenlista.dll" />
|
86 | 80 | </Component>
|
87 | 81 | <?if $(var.NoPDB) != True ?>
|
88 |
| - <Component Id="psqlodbc.psqlodbc30a.pdb" Win64="$(var.BIT64)"> |
| 82 | + <Component Id="psqlodbc.psqlodbc30a.pdb"> |
89 | 83 | <File Name="psqlodbc30a.pdb" Source="$(var.BINBASE)\$(var.ANSIFOLDER)\psqlodbc30a.pdb" />
|
90 | 84 | </Component>
|
91 |
| - <Component Id="psqlodbc.pgenlista.pdb" Win64="$(var.BIT64)"> |
| 85 | + <Component Id="psqlodbc.pgenlista.pdb"> |
92 | 86 | <File Name="pgenlista.pdb" Source="$(var.BINBASE)\$(var.ANSIFOLDER)\pgenlista.pdb" />
|
93 | 87 | </Component>
|
94 | 88 | <?endif?>
|
95 |
| - <Component Id="psqlodbc.psqlodbc35w.dll" Win64="$(var.BIT64)"> |
| 89 | + <Component Id="psqlodbc.psqlodbc35w.dll"> |
96 | 90 | <File Name="psqlodbc35w.dll" Source="$(var.BINBASE)\$(var.UNICODEFOLDER)\psqlodbc35w.dll">
|
97 | 91 | <ODBCDriver Id="Psqlodbc_9.0_Driver" Name="PostgreSQL Unicode($(var.Platform))">
|
98 | 92 | <Property Id="CPTimeout" Value="60"/>
|
|
102 | 96 | </ODBCDriver>
|
103 | 97 | </File>
|
104 | 98 | </Component>
|
105 |
| - <Component Id="psqlodbc.pgenlist.dll" Win64="$(var.BIT64)"> |
| 99 | + <Component Id="psqlodbc.pgenlist.dll"> |
106 | 100 | <File Name="pgenlist.dll" Source="$(var.BINBASE)\$(var.UNICODEFOLDER)\pgenlist.dll" />
|
107 | 101 | </Component>
|
108 | 102 | <?if $(var.NoPDB) != True ?>
|
109 |
| - <Component Id="psqlodbc.psqlodbc35w.pdb" Win64="$(var.BIT64)"> |
| 103 | + <Component Id="psqlodbc.psqlodbc35w.pdb"> |
110 | 104 | <File Name="psqlodbc35w.pdb" Source="$(var.BINBASE)\$(var.UNICODEFOLDER)\psqlodbc35w.pdb" />
|
111 | 105 | </Component>
|
112 |
| - <Component Id="psqlodbc.pgenlist.pdb" Win64="$(var.BIT64)"> |
| 106 | + <Component Id="psqlodbc.pgenlist.pdb"> |
113 | 107 | <File Name="pgenlist.pdb" Source="$(var.BINBASE)\$(var.UNICODEFOLDER)\pgenlist.pdb" />
|
114 | 108 | </Component>
|
115 | 109 | <?endif?>
|
116 | 110 |
|
117 | 111 | <!-- MSVC Runtime -->
|
118 | 112 | <?if "$(var.PODBCMSVCDLL)" != "" ?>
|
119 |
| - <Component Id="vcredist.vcruntime.dll.psqlodbc" Win64="$(var.BIT64)"> |
| 113 | + <Component Id="vcredist.vcruntime.dll.psqlodbc"> |
120 | 114 | <File Source="$(var.PODBCMSVCDLL)" />
|
121 | 115 | </Component>
|
122 | 116 | <?endif?>
|
123 | 117 | <?if "$(var.PODBCMSVPDLL)" != "" ?>
|
124 |
| - <Component Id="vcredist.msvcp.dll.psqlodbc" Win64="$(var.BIT64)"> |
| 118 | + <Component Id="vcredist.msvcp.dll.psqlodbc"> |
125 | 119 | <File Source="$(var.PODBCMSVPDLL)" />
|
126 | 120 | </Component>
|
127 | 121 | <?endif?>
|
128 | 122 | <?if "$(var.PODBCMSVCSYS)" != "" ?>
|
129 |
| - <Component Id="system.vcruntime.dll.psqlodbc" Win64="$(var.BIT64)"> |
| 123 | + <Component Id="system.vcruntime.dll.psqlodbc"> |
130 | 124 | <File Source="$(var.SysFolder)\$(var.PODBCMSVCSYS)" />
|
131 | 125 | </Component>
|
132 | 126 | <?endif?>
|
133 | 127 | <?if "$(var.PODBCMSVPSYS)" != "" ?>
|
134 |
| - <Component Id="system.msvcp.dll.psqlodbc" Win64="$(var.BIT64)"> |
| 128 | + <Component Id="system.msvcp.dll.psqlodbc"> |
135 | 129 | <File Source="$(var.SysFolder)\$(var.PODBCMSVPSYS)" />
|
136 | 130 | </Component>
|
137 | 131 | <?endif?>
|
138 | 132 | <?if "$(var.LIBPQMSVCDLL)" != "" ?>
|
139 |
| - <Component Id="vcredist.vcruntime.dll.libpq" Win64="$(var.BIT64)"> |
| 133 | + <Component Id="vcredist.vcruntime.dll.libpq"> |
140 | 134 | <File Source="$(var.LIBPQMSVCDLL)" />
|
141 | 135 | </Component>
|
142 | 136 | <?endif?>
|
143 | 137 | <?if "$(var.LIBPQMSVCSYS)" != "" ?>
|
144 |
| - <Component Id="system.vcruntime.dll.libpq" Win64="$(var.BIT64)"> |
| 138 | + <Component Id="system.vcruntime.dll.libpq"> |
145 | 139 | <File Source="$(var.SysFolder)\$(var.LIBPQMSVCSYS)" />
|
146 | 140 | </Component>
|
147 | 141 | <?endif?>
|
148 | 142 |
|
149 | 143 | <!-- libpq -->
|
150 |
| - <Component Id="libpq.libpq.dll" Win64="$(var.BIT64)"> |
| 144 | + <Component Id="libpq.libpq.dll"> |
151 | 145 | <File Id="libpq.dll" Name="libpq.dll" Source="$(var.LIBPQBINDIR)\libpq.dll" />
|
152 | 146 | </Component>
|
153 | 147 | <?if "$(var.LIBPQMEM0)" != "" ?>
|
154 |
| - <Component Id="libpq.related0.dll" Win64="$(var.BIT64)"> |
| 148 | + <Component Id="libpq.related0.dll"> |
155 | 149 | <File Source="$(var.LIBPQMEM0)" />
|
156 | 150 | </Component>
|
157 | 151 | <?endif ?>
|
158 | 152 | <?if "$(var.LIBPQMEM1)" != "" ?>
|
159 |
| - <Component Id="libpq.related1.dll" Win64="$(var.BIT64)"> |
| 153 | + <Component Id="libpq.related1.dll"> |
160 | 154 | <File Source="$(var.LIBPQMEM1)" />
|
161 | 155 | </Component>
|
162 | 156 | <?endif ?>
|
163 | 157 | <?if "$(var.LIBPQMEM2)" != "" ?>
|
164 |
| - <Component Id="libpq.related2.dll" Win64="$(var.BIT64)"> |
| 158 | + <Component Id="libpq.related2.dll"> |
165 | 159 | <File Source="$(var.LIBPQMEM2)" />
|
166 | 160 | </Component>
|
167 | 161 | <?endif ?>
|
168 | 162 | <?if "$(var.LIBPQMEM3)" != "" ?>
|
169 |
| - <Component Id="libpq.related3.dll" Win64="$(var.BIT64)"> |
| 163 | + <Component Id="libpq.related3.dll"> |
170 | 164 | <File Source="$(var.LIBPQMEM3)" />
|
171 | 165 | </Component>
|
172 | 166 | <?endif ?>
|
173 | 167 | <?if "$(var.LIBPQMEM4)" != "" ?>
|
174 |
| - <Component Id="libpq.related4.dll" Win64="$(var.BIT64)"> |
| 168 | + <Component Id="libpq.related4.dll"> |
175 | 169 | <File Source="$(var.LIBPQMEM4)" />
|
176 | 170 | </Component>
|
177 | 171 | <?endif ?>
|
178 | 172 | <?if "$(var.LIBPQMEM5)" != "" ?>
|
179 |
| - <Component Id="libpq.related5.dll" Win64="$(var.BIT64)"> |
| 173 | + <Component Id="libpq.related5.dll"> |
180 | 174 | <File Source="$(var.LIBPQMEM5)" />
|
181 | 175 | </Component>
|
182 | 176 | <?endif ?>
|
183 | 177 | <?if "$(var.LIBPQMEM6)" != "" ?>
|
184 |
| - <Component Id="libpq.related6.dll" Win64="$(var.BIT64)"> |
| 178 | + <Component Id="libpq.related6.dll"> |
185 | 179 | <File Source="$(var.LIBPQMEM6)" />
|
186 | 180 | </Component>
|
187 | 181 | <?endif ?>
|
188 | 182 | <?if "$(var.LIBPQMEM7)" != "" ?>
|
189 |
| - <Component Id="libpq.related7.dll" Win64="$(var.BIT64)"> |
| 183 | + <Component Id="libpq.related7.dll"> |
190 | 184 | <File Source="$(var.LIBPQMEM7)" />
|
191 | 185 | </Component>
|
192 | 186 | <?endif ?>
|
193 | 187 | <?if "$(var.LIBPQMEM8)" != "" ?>
|
194 |
| - <Component Id="libpq.related8.dll" Win64="$(var.BIT64)"> |
| 188 | + <Component Id="libpq.related8.dll"> |
195 | 189 | <File Source="$(var.LIBPQMEM8)" />
|
196 | 190 | </Component>
|
197 | 191 | <?endif ?>
|
198 | 192 | <?if "$(var.LIBPQMEM9)" != "" ?>
|
199 |
| - <Component Id="libpq.related9.dll" Win64="$(var.BIT64)"> |
| 193 | + <Component Id="libpq.related9.dll"> |
200 | 194 | <File Source="$(var.LIBPQMEM9)" />
|
201 | 195 | </Component>
|
202 | 196 | <?endif ?>
|
|
206 | 200 | 32bit machines. We had better register the XA DLL on
|
207 | 201 | installation.
|
208 | 202 | -->
|
209 |
| - <Component Id="pgxalib.files" Win64="$(var.BIT64)"> |
| 203 | + <Component Id="pgxalib.files"> |
210 | 204 | <?if $(var.BIT64) = no ?> <!-- On x64 OS only install from x64 package. -->
|
211 | 205 | <Condition>
|
212 | 206 | <![CDATA[NOT VersionNT64]]>
|
|
0 commit comments