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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
|
{******************************************************************************}
{ }
{ Windows Installer API interface Unit for Object Pascal }
{ }
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
{ Corporation. All Rights Reserved. }
{ }
{ The original file is: msiquery.h, released June 2000. The original Pascal }
{ code is: MsiQuery.pas, released June 2001. The initial developer of the }
{ Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
{ }
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
{ Marcel van Brakel. All Rights Reserved. }
{ }
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
{ }
{ You may retrieve the latest version of this file at the Project JEDI }
{ APILIB home page, located at http://jedi-apilib.sourceforge.net }
{ }
{ The contents of this file are used with permission, subject to the Mozilla }
{ Public License Version 1.1 (the "License"); you may not use this file except }
{ in compliance with the License. You may obtain a copy of the License at }
{ http://www.mozilla.org/MPL/MPL-1.1.html }
{ }
{ Software distributed under the License is distributed on an "AS IS" basis, }
{ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
{ the specific language governing rights and limitations under the License. }
{ }
{ Alternatively, the contents of this file may be used under the terms of the }
{ GNU Lesser General Public License (the "LGPL License"), in which case the }
{ provisions of the LGPL License are applicable instead of those above. }
{ If you wish to allow use of your version of this file only under the terms }
{ of the LGPL License and not to allow others to use your version of this file }
{ under the MPL, indicate your decision by deleting the provisions above and }
{ replace them with the notice and other provisions required by the LGPL }
{ License. If you do not delete the provisions above, a recipient may use }
{ your version of this file under either the MPL or the LGPL License. }
{ }
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
{ }
{******************************************************************************}
// $Id: JwaMsiQuery.pas,v 1.11 2007/09/05 11:58:51 dezipaitor Exp $
{$IFNDEF JWA_OMIT_SECTIONS}
unit JwaMsiQuery;
{$WEAKPACKAGEUNIT}
{$ENDIF JWA_OMIT_SECTIONS}
{$HPPEMIT ''}
{$HPPEMIT '#include "msiquery.h"'}
{$HPPEMIT ''}
{$IFNDEF JWA_OMIT_SECTIONS}
{$I jediapilib.inc}
interface
uses
JwaMsi, JwaWinBase, JwaWinType;
{$ENDIF JWA_OMIT_SECTIONS}
{$IFNDEF JWA_IMPLEMENTATIONSECTION}
(*****************************************************************************\
* *
* MsiQuery.h - Interface to running installer for custom actions and tools *
* *
* Version 1.0 - 1.2 *
* *
* NOTES: All buffers sizes are TCHAR count, null included only on input *
* Return argument pointers may be null if not interested in value *
* Returned handles of all types must be closed: MsiCloseHandle(h) *
* Functions with UINT return type return a system error code *
* Designated functions will set or clear the last error record, *
* which is then accessible with MsiGetLastErrorRecord. However, *
* the following argument errors do not register an error record: *
* ERROR_INVALID_HANDLE, ERROR_INVALID_PARAMETER, ERROR_MORE_DATA. *
* *
* Copyright (c) 1999-2000, Microsoft Corp. All rights reserved. *
* *
\*****************************************************************************)
const
MSI_NULL_INTEGER = DWORD($80000000); // integer value reserved for null
{$EXTERNALSYM MSI_NULL_INTEGER}
// MsiOpenDatabase persist predefine values, otherwise output database path is used
MSIDBOPEN_READONLY = LPCTSTR(0); // database open read-only, no persistent changes
{$EXTERNALSYM MSIDBOPEN_READONLY}
MSIDBOPEN_TRANSACT = LPCTSTR(1); // database read/write in transaction mode
{$EXTERNALSYM MSIDBOPEN_TRANSACT}
MSIDBOPEN_DIRECT = LPCTSTR(2); // database direct read/write without transaction
{$EXTERNALSYM MSIDBOPEN_DIRECT}
MSIDBOPEN_CREATE = LPCTSTR(3); // create new database, transact mode read/write
{$EXTERNALSYM MSIDBOPEN_CREATE}
MSIDBOPEN_CREATEDIRECT = LPCTSTR(4); // create new database, direct mode read/write
{$EXTERNALSYM MSIDBOPEN_CREATEDIRECT}
MSIDBOPEN_PATCHFILE = 32 div SizeOf(TCHAR); // add flag to indicate patch file
MSIDBSTATE_ERROR = DWORD(-1); // invalid database handle
{$EXTERNALSYM MSIDBSTATE_ERROR}
MSIDBSTATE_READ = 0; // database open read-only, no persistent changes
{$EXTERNALSYM MSIDBSTATE_READ}
MSIDBSTATE_WRITE = 1; // database readable and updatable
{$EXTERNALSYM MSIDBSTATE_WRITE}
type
MSIDBSTATE = DWORD;
{$EXTERNALSYM MSIDBSTATE}
TMsiDbState = MSIDBSTATE;
const
MSIMODIFY_SEEK = DWORD(-1); // reposition to current record primary key
{$EXTERNALSYM MSIMODIFY_SEEK}
MSIMODIFY_REFRESH = 0; // refetch current record data
{$EXTERNALSYM MSIMODIFY_REFRESH}
MSIMODIFY_INSERT = 1; // insert new record, fails if matching key exists
{$EXTERNALSYM MSIMODIFY_INSERT}
MSIMODIFY_UPDATE = 2; // update existing non-key data of fetched record
{$EXTERNALSYM MSIMODIFY_UPDATE}
MSIMODIFY_ASSIGN = 3; // insert record, replacing any existing record
{$EXTERNALSYM MSIMODIFY_ASSIGN}
MSIMODIFY_REPLACE = 4; // update record, delete old if primary key edit
{$EXTERNALSYM MSIMODIFY_REPLACE}
MSIMODIFY_MERGE = 5; // fails if record with duplicate key not identical
{$EXTERNALSYM MSIMODIFY_MERGE}
MSIMODIFY_DELETE = 6; // remove row referenced by this record from table
{$EXTERNALSYM MSIMODIFY_DELETE}
MSIMODIFY_INSERT_TEMPORARY = 7; // insert a temporary record
{$EXTERNALSYM MSIMODIFY_INSERT_TEMPORARY}
MSIMODIFY_VALIDATE = 8; // validate a fetched record
{$EXTERNALSYM MSIMODIFY_VALIDATE}
MSIMODIFY_VALIDATE_NEW = 9; // validate a new record
{$EXTERNALSYM MSIMODIFY_VALIDATE_NEW}
MSIMODIFY_VALIDATE_FIELD = 10; // validate field(s) of an incomplete record
{$EXTERNALSYM MSIMODIFY_VALIDATE_FIELD}
MSIMODIFY_VALIDATE_DELETE = 11; // validate before deleting record
{$EXTERNALSYM MSIMODIFY_VALIDATE_DELETE}
type
MSIMODIFY = DWORD;
{$EXTERNALSYM MSIMODIFY}
TMsiModify = MSIMODIFY;
const
MSICOLINFO_NAMES = 0; // return column names
{$EXTERNALSYM MSICOLINFO_NAMES}
MSICOLINFO_TYPES = 1; // return column definitions, datatype code followed by width
{$EXTERNALSYM MSICOLINFO_TYPES}
type
MSICOLINFO = DWORD;
{$EXTERNALSYM MSICOLINFO}
TMsiColInfo = MSICOLINFO;
const
MSICONDITION_FALSE = 0; // expression evaluates to False
{$EXTERNALSYM MSICONDITION_FALSE}
MSICONDITION_TRUE = 1; // expression evaluates to True
{$EXTERNALSYM MSICONDITION_TRUE}
MSICONDITION_NONE = 2; // no expression present
{$EXTERNALSYM MSICONDITION_NONE}
MSICONDITION_ERROR = 3; // syntax error in expression
{$EXTERNALSYM MSICONDITION_ERROR}
type
MSICONDITION = DWORD;
{$EXTERNALSYM MSICONDITION}
TMsiCondition = MSICONDITION;
const
MSICOSTTREE_SELFONLY = 0;
{$EXTERNALSYM MSICOSTTREE_SELFONLY}
MSICOSTTREE_CHILDREN = 1;
{$EXTERNALSYM MSICOSTTREE_CHILDREN}
MSICOSTTREE_PARENTS = 2;
{$EXTERNALSYM MSICOSTTREE_PARENTS}
MSICOSTTREE_RESERVED = 3; // Reserved for future use
{$EXTERNALSYM MSICOSTTREE_RESERVED}
type
MSICOSTTREE = DWORD;
{$EXTERNALSYM MSICOSTTREE}
TMsiCostTree = MSICOSTTREE;
const
MSIDBERROR_INVALIDARG = DWORD(-3); // invalid argument
{$EXTERNALSYM MSIDBERROR_INVALIDARG}
MSIDBERROR_MOREDATA = DWORD(-2); // buffer too small
{$EXTERNALSYM MSIDBERROR_MOREDATA}
MSIDBERROR_FUNCTIONERROR = DWORD(-1); // function error
{$EXTERNALSYM MSIDBERROR_FUNCTIONERROR}
MSIDBERROR_NOERROR = 0; // no error
{$EXTERNALSYM MSIDBERROR_NOERROR}
MSIDBERROR_DUPLICATEKEY = 1; // new record duplicates primary keys of existing record in table
{$EXTERNALSYM MSIDBERROR_DUPLICATEKEY}
MSIDBERROR_REQUIRED = 2; // non-nullable column, no null values allowed
{$EXTERNALSYM MSIDBERROR_REQUIRED}
MSIDBERROR_BADLINK = 3; // corresponding record in foreign table not found
{$EXTERNALSYM MSIDBERROR_BADLINK}
MSIDBERROR_OVERFLOW = 4; // data greater than maximum value allowed
{$EXTERNALSYM MSIDBERROR_OVERFLOW}
MSIDBERROR_UNDERFLOW = 5; // data less than minimum value allowed
{$EXTERNALSYM MSIDBERROR_UNDERFLOW}
MSIDBERROR_NOTINSET = 6; // data not a member of the values permitted in the set
{$EXTERNALSYM MSIDBERROR_NOTINSET}
MSIDBERROR_BADVERSION = 7; // invalid version string
{$EXTERNALSYM MSIDBERROR_BADVERSION}
MSIDBERROR_BADCASE = 8; // invalid case, must be all upper-case or all lower-case
{$EXTERNALSYM MSIDBERROR_BADCASE}
MSIDBERROR_BADGUID = 9; // invalid GUID
{$EXTERNALSYM MSIDBERROR_BADGUID}
MSIDBERROR_BADWILDCARD = 10; // invalid wildcardfilename or use of wildcards
{$EXTERNALSYM MSIDBERROR_BADWILDCARD}
MSIDBERROR_BADIDENTIFIER = 11; // bad identifier
{$EXTERNALSYM MSIDBERROR_BADIDENTIFIER}
MSIDBERROR_BADLANGUAGE = 12; // bad language Id(s)
{$EXTERNALSYM MSIDBERROR_BADLANGUAGE}
MSIDBERROR_BADFILENAME = 13; // bad filename
{$EXTERNALSYM MSIDBERROR_BADFILENAME}
MSIDBERROR_BADPATH = 14; // bad path
{$EXTERNALSYM MSIDBERROR_BADPATH}
MSIDBERROR_BADCONDITION = 15; // bad conditional statement
{$EXTERNALSYM MSIDBERROR_BADCONDITION}
MSIDBERROR_BADFORMATTED = 16; // bad format string
{$EXTERNALSYM MSIDBERROR_BADFORMATTED}
MSIDBERROR_BADTEMPLATE = 17; // bad template string
{$EXTERNALSYM MSIDBERROR_BADTEMPLATE}
MSIDBERROR_BADDEFAULTDIR = 18; // bad string in DefaultDir column of Directory table
{$EXTERNALSYM MSIDBERROR_BADDEFAULTDIR}
MSIDBERROR_BADREGPATH = 19; // bad registry path string
{$EXTERNALSYM MSIDBERROR_BADREGPATH}
MSIDBERROR_BADCUSTOMSOURCE = 20; // bad string in CustomSource column of CustomAction table
{$EXTERNALSYM MSIDBERROR_BADCUSTOMSOURCE}
MSIDBERROR_BADPROPERTY = 21; // bad property string
{$EXTERNALSYM MSIDBERROR_BADPROPERTY}
MSIDBERROR_MISSINGDATA = 22; // _Validation table missing reference to column
{$EXTERNALSYM MSIDBERROR_MISSINGDATA}
MSIDBERROR_BADCATEGORY = 23; // Category column of _Validation table for column is invalid
{$EXTERNALSYM MSIDBERROR_BADCATEGORY}
MSIDBERROR_BADKEYTABLE = 24; // table in KeyTable column of _Validation table could not be found/loaded
{$EXTERNALSYM MSIDBERROR_BADKEYTABLE}
MSIDBERROR_BADMAXMINVALUES = 25; // value in MaxValue column of _Validation table is less than value in MinValue column
{$EXTERNALSYM MSIDBERROR_BADMAXMINVALUES}
MSIDBERROR_BADCABINET = 26; // bad cabinet name
{$EXTERNALSYM MSIDBERROR_BADCABINET}
MSIDBERROR_BADSHORTCUT = 27; // bad shortcut target
{$EXTERNALSYM MSIDBERROR_BADSHORTCUT}
MSIDBERROR_STRINGOVERFLOW = 28; // string overflow (greater than length allowed in column def)
{$EXTERNALSYM MSIDBERROR_STRINGOVERFLOW}
MSIDBERROR_BADLOCALIZEATTRIB = 29; // invalid localization attribute (primary keys cannot be localized)
{$EXTERNALSYM MSIDBERROR_BADLOCALIZEATTRIB}
type
MSIDBERROR = DWORD;
{$EXTERNALSYM MSIDBERROR}
TMsiDbError = MSIDBERROR;
const
MSIRUNMODE_ADMIN = 0; // admin mode install, else product install
{$EXTERNALSYM MSIRUNMODE_ADMIN}
MSIRUNMODE_ADVERTISE = 1; // installing advertisements, else installing or updating product
{$EXTERNALSYM MSIRUNMODE_ADVERTISE}
MSIRUNMODE_MAINTENANCE = 2; // modifying an existing installation, else new installation
{$EXTERNALSYM MSIRUNMODE_MAINTENANCE}
MSIRUNMODE_ROLLBACKENABLED = 3; // rollback is enabled
{$EXTERNALSYM MSIRUNMODE_ROLLBACKENABLED}
MSIRUNMODE_LOGENABLED = 4; // log file active, enabled prior to install session
{$EXTERNALSYM MSIRUNMODE_LOGENABLED}
MSIRUNMODE_OPERATIONS = 5; // spooling execute operations, else in determination phase
{$EXTERNALSYM MSIRUNMODE_OPERATIONS}
MSIRUNMODE_REBOOTATEND = 6; // reboot needed after successful installation (settable)
{$EXTERNALSYM MSIRUNMODE_REBOOTATEND}
MSIRUNMODE_REBOOTNOW = 7; // reboot needed to continue installation (settable)
{$EXTERNALSYM MSIRUNMODE_REBOOTNOW}
MSIRUNMODE_CABINET = 8; // installing files from cabinets and files using Media table
{$EXTERNALSYM MSIRUNMODE_CABINET}
MSIRUNMODE_SOURCESHORTNAMES= 9; // source LongFileNames suppressed via PID_MSISOURCE summary property
{$EXTERNALSYM MSIRUNMODE_SOURCESHORTNAMES}
MSIRUNMODE_TARGETSHORTNAMES= 10; // target LongFileNames suppressed via SHORTFILENAMES property
{$EXTERNALSYM MSIRUNMODE_TARGETSHORTNAMES}
MSIRUNMODE_RESERVED11 = 11; // future use
{$EXTERNALSYM MSIRUNMODE_RESERVED11}
MSIRUNMODE_WINDOWS9X = 12; // operating systems is Windows9?, else Windows NT
{$EXTERNALSYM MSIRUNMODE_WINDOWS9X}
MSIRUNMODE_ZAWENABLED = 13; // operating system supports demand installation
{$EXTERNALSYM MSIRUNMODE_ZAWENABLED}
MSIRUNMODE_RESERVED14 = 14; // future use
{$EXTERNALSYM MSIRUNMODE_RESERVED14}
MSIRUNMODE_RESERVED15 = 15; // future use
{$EXTERNALSYM MSIRUNMODE_RESERVED15}
MSIRUNMODE_SCHEDULED = 16; // custom action call from install script execution
{$EXTERNALSYM MSIRUNMODE_SCHEDULED}
MSIRUNMODE_ROLLBACK = 17; // custom action call from rollback execution script
{$EXTERNALSYM MSIRUNMODE_ROLLBACK}
MSIRUNMODE_COMMIT = 18; // custom action call from commit execution script
{$EXTERNALSYM MSIRUNMODE_COMMIT}
type
MSIRUNMODE = DWORD;
{$EXTERNALSYM MSIRUNMODE}
TMsiRunMode = MSIRUNMODE;
const
INSTALLMESSAGE_TYPEMASK = DWORD($FF000000); // mask for type code
{$EXTERNALSYM INSTALLMESSAGE_TYPEMASK}
// Note: INSTALLMESSAGE_ERROR, INSTALLMESSAGE_WARNING, INSTALLMESSAGE_USER are to or'd
// with a message box style to indicate the buttons to display and return:
// MB_OK,MB_OKCANCEL,MB_ABORTRETRYIGNORE,MB_YESNOCANCEL,MB_YESNO,MB_RETRYCANCEL
// the default button (MB_DEFBUTTON1 is normal default):
// MB_DEFBUTTON1, MB_DEFBUTTON2, MB_DEFBUTTON3
// and optionally an icon style:
// MB_ICONERROR, MB_ICONQUESTION, MB_ICONWARNING, MB_ICONINFORMATION
const
MSITRANSFORM_ERROR_ADDEXISTINGROW = $00000001;
{$EXTERNALSYM MSITRANSFORM_ERROR_ADDEXISTINGROW}
MSITRANSFORM_ERROR_DELMISSINGROW = $00000002;
{$EXTERNALSYM MSITRANSFORM_ERROR_DELMISSINGROW}
MSITRANSFORM_ERROR_ADDEXISTINGTABLE = $00000004;
{$EXTERNALSYM MSITRANSFORM_ERROR_ADDEXISTINGTABLE}
MSITRANSFORM_ERROR_DELMISSINGTABLE = $00000008;
{$EXTERNALSYM MSITRANSFORM_ERROR_DELMISSINGTABLE}
MSITRANSFORM_ERROR_UPDATEMISSINGROW = $00000010;
{$EXTERNALSYM MSITRANSFORM_ERROR_UPDATEMISSINGROW}
MSITRANSFORM_ERROR_CHANGECODEPAGE = $00000020;
{$EXTERNALSYM MSITRANSFORM_ERROR_CHANGECODEPAGE}
MSITRANSFORM_ERROR_VIEWTRANSFORM = $00000100;
{$EXTERNALSYM MSITRANSFORM_ERROR_VIEWTRANSFORM}
type
MSITRANSFORM_ERROR = DWORD;
{$EXTERNALSYM MSITRANSFORM_ERROR}
TMsiTransformError = MSITRANSFORM_ERROR;
const
MSITRANSFORM_VALIDATE_LANGUAGE = $00000001;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_LANGUAGE}
MSITRANSFORM_VALIDATE_PRODUCT = $00000002;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_PRODUCT}
MSITRANSFORM_VALIDATE_PLATFORM = $00000004;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_PLATFORM}
MSITRANSFORM_VALIDATE_MAJORVERSION = $00000008;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_MAJORVERSION}
MSITRANSFORM_VALIDATE_MINORVERSION = $00000010;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_MINORVERSION}
MSITRANSFORM_VALIDATE_UPDATEVERSION = $00000020;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_UPDATEVERSION}
MSITRANSFORM_VALIDATE_NEWLESSBASEVERSION = $00000040;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_NEWLESSBASEVERSION}
MSITRANSFORM_VALIDATE_NEWLESSEQUALBASEVERSION = $00000080;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_NEWLESSEQUALBASEVERSION}
MSITRANSFORM_VALIDATE_NEWEQUALBASEVERSION = $00000100;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_NEWEQUALBASEVERSION}
MSITRANSFORM_VALIDATE_NEWGREATEREQUALBASEVERSION = $00000200;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_NEWGREATEREQUALBASEVERSION}
MSITRANSFORM_VALIDATE_NEWGREATERBASEVERSION = $00000400;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_NEWGREATERBASEVERSION}
MSITRANSFORM_VALIDATE_UPGRADECODE = $00000800;
{$EXTERNALSYM MSITRANSFORM_VALIDATE_UPGRADECODE}
type
MSITRANSFORM_VALIDATE = DWORD;
{$EXTERNALSYM MSITRANSFORM_VALIDATE}
TMsiTransformValidate = MSITRANSFORM_VALIDATE;
// -----------------------------------------------------------------------------
// Installer database access functions
// -----------------------------------------------------------------------------
// Prepare a database query, creating a view object
// Returns ERROR_SUCCESS if successful, and the view handle is returned,
// else ERROR_INVALID_HANDLE, ERROR_INVALID_HANDLE_STATE, ERROR_BAD_QUERY_SYNTAX, ERROR_GEN_FAILURE
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseOpenViewA(hDatabase: MSIHANDLE; szQuery: LPCSTR; var phView: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseOpenViewA}
function MsiDatabaseOpenViewW(hDatabase: MSIHANDLE; szQuery: LPCWSTR; var phView: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseOpenViewW}
function MsiDatabaseOpenView(hDatabase: MSIHANDLE; szQuery: LPCTSTR; var phView: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseOpenView}
// Returns the MSIDBERROR enum and name of the column corresponding to the error
// Similar to a GetLastError function, but for the view. NOT the same as MsiGetLastErrorRecord
// Returns errors of MsiViewModify.
function MsiViewGetErrorA(hView: MSIHANDLE; szColumnNameBuffer: LPSTR;
var pcchBuf: DWORD): MSIDBERROR; stdcall;
{$EXTERNALSYM MsiViewGetErrorA}
function MsiViewGetErrorW(hView: MSIHANDLE; szColumnNameBuffer: LPWSTR;
var pcchBuf: DWORD): MSIDBERROR; stdcall;
{$EXTERNALSYM MsiViewGetErrorW}
function MsiViewGetError(hView: MSIHANDLE; szColumnNameBuffer: LPTSTR;
var pcchBuf: DWORD): MSIDBERROR; stdcall;
{$EXTERNALSYM MsiViewGetError}
// Exectute the view query, supplying parameters as required
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_HANDLE_STATE, ERROR_GEN_FAILURE
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiViewExecute(hView: MSIHANDLE; hRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiViewExecute}
// Fetch the next sequential record from the view
// Result is ERROR_SUCCESS if a row is found, and its handle is returned
// else ERROR_NO_MORE_ITEMS if no records remain, and a null handle is returned
// else result is error: ERROR_INVALID_HANDLE_STATE, ERROR_INVALID_HANDLE, ERROR_GEN_FAILURE
function MsiViewFetch(hView: MSIHANDLE; var phRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiViewFetch}
// Modify a database record, parameters must match types in query columns
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_HANDLE_STATE, ERROR_GEN_FAILURE, ERROR_ACCESS_DENIED
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiViewModify(hView: MSIHANDLE; eModifyMode: MSIMODIFY; hRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiViewModify}
// Return the column names or specifications for the current view
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_PARAMETER, or ERROR_INVALID_HANDLE_STATE
function MsiViewGetColumnInfo(hView: MSIHANDLE; eColumnInfo: MSICOLINFO;
var phRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiViewGetColumnInfo}
// Release the result set for an executed view, to allow re-execution
// Only needs to be called if not all records have been fetched
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_HANDLE_STATE
function MsiViewClose(hView: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiViewClose}
// Return a record containing the names of all primary key columns for a given table
// Returns an MSIHANDLE for a record containing the name of each column.
// The field count of the record corresponds to the number of primary key columns.
// Field [0] of the record contains the table name.
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_TABLE
function MsiDatabaseGetPrimaryKeysA(hDatabase: MSIHANDLE; szTableName: LPCSTR;
var phRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGetPrimaryKeysA}
function MsiDatabaseGetPrimaryKeysW(hDatabase: MSIHANDLE; szTableName: LPCWSTR;
var phRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGetPrimaryKeysW}
function MsiDatabaseGetPrimaryKeys(hDatabase: MSIHANDLE; szTableName: LPCTSTR;
var phRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGetPrimaryKeys}
// Return an enum defining the state of the table (temporary, unknown, or persistent).
// Returns MSICONDITION_ERROR, MSICONDITION_FALSE, MSICONDITION_TRUE, MSICONDITION_NONE
function MsiDatabaseIsTablePersistentA(hDatabase: MSIHANDLE; szTableName: LPCSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiDatabaseIsTablePersistentA}
function MsiDatabaseIsTablePersistentW(hDatabase: MSIHANDLE; szTableName: LPCWSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiDatabaseIsTablePersistentW}
function MsiDatabaseIsTablePersistent(hDatabase: MSIHANDLE; szTableName: LPCTSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiDatabaseIsTablePersistent}
// --------------------------------------------------------------------------
// Summary information stream management functions
// --------------------------------------------------------------------------
// Integer Property IDs: 1, 14, 15, 16, 19
// DateTime Property IDs: 10, 11, 12, 13
// Text Property IDs: 2, 3, 4, 5, 6, 7, 8, 9, 18
// Unsupported Propery IDs: 0 (PID_DICTIONARY), 17 (PID_THUMBNAIL)
// Obtain a handle for the _SummaryInformation stream for an MSI database
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetSummaryInformationA(hDatabase: MSIHANDLE; szDatabasePath: LPCSTR;
uiUpdateCount: UINT; var phSummaryInfo: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiGetSummaryInformationA}
function MsiGetSummaryInformationW(hDatabase: MSIHANDLE; szDatabasePath: LPCWSTR;
uiUpdateCount: UINT; var phSummaryInfo: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiGetSummaryInformationW}
function MsiGetSummaryInformation(hDatabase: MSIHANDLE; szDatabasePath: LPCTSTR;
uiUpdateCount: UINT; var phSummaryInfo: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiGetSummaryInformation}
// Obtain the number of existing properties in the SummaryInformation stream
function MsiSummaryInfoGetPropertyCount(hSummaryInfo: MSIHANDLE; var puiPropertyCount: UINT): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoGetPropertyCount}
// Set a single summary information property
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_UNKNOWN_PROPERTY
function MsiSummaryInfoSetPropertyA(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
uiDataType: UINT; iValue: Integer; const pftValue: FILETIME; szValue: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoSetPropertyA}
function MsiSummaryInfoSetPropertyW(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
uiDataType: UINT; iValue: Integer; const pftValue: FILETIME; szValue: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoSetPropertyW}
function MsiSummaryInfoSetProperty(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
uiDataType: UINT; iValue: Integer; const pftValue: FILETIME; szValue: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoSetProperty}
// Get a single property from the summary information
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_UNKNOWN_PROPERTY
function MsiSummaryInfoGetPropertyA(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
var puiDataType: UINT; var piValue: Integer; var pftValue: FILETIME; szValueBuf: LPSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoGetPropertyA}
function MsiSummaryInfoGetPropertyW(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
var puiDataType: UINT; var piValue: Integer; var pftValue: FILETIME; szValueBuf: LPWSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoGetPropertyW}
function MsiSummaryInfoGetProperty(hSummaryInfo: MSIHANDLE; uiProperty: UINT;
var puiDataType: UINT; var piValue: Integer; var pftValue: FILETIME; szValueBuf: LPTSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoGetProperty}
// Write back changed information to summary information stream
function MsiSummaryInfoPersist(hSummaryInfo: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiSummaryInfoPersist}
// --------------------------------------------------------------------------
// Installer database management functions - not used by custom actions
// --------------------------------------------------------------------------
// Open an installer database, specifying the persistance mode, which is a pointer.
// Predefined persist values are reserved pointer values, requiring pointer arithmetic.
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiOpenDatabaseA(szDatabasePath: LPCSTR; szPersist: LPCSTR;
var phDatabase: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiOpenDatabaseA}
function MsiOpenDatabaseW(szDatabasePath: LPCWSTR; szPersist: LPCWSTR;
var phDatabase: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiOpenDatabaseW}
function MsiOpenDatabase(szDatabasePath: LPCTSTR; szPersist: LPCTSTR;
var phDatabase: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiOpenDatabase}
// Import an MSI text archive table into an open database
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseImportA(hDatabase: MSIHANDLE; szFolderPath: LPCSTR;
szFileName: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseImportA}
function MsiDatabaseImportW(hDatabase: MSIHANDLE; szFolderPath: LPCWSTR;
szFileName: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseImportW}
function MsiDatabaseImport(hDatabase: MSIHANDLE; szFolderPath: LPCTSTR;
szFileName: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseImport}
// Export an MSI table from an open database to a text archive file
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseExportA(hDatabase: MSIHANDLE; szTableName: LPCSTR;
szFolderPath: LPCSTR; szFileName: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseExportA}
function MsiDatabaseExportW(hDatabase: MSIHANDLE; szTableName: LPCWSTR;
szFolderPath: LPCWSTR; szFileName: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseExportW}
function MsiDatabaseExport(hDatabase: MSIHANDLE; szTableName: LPCTSTR;
szFolderPath: LPCTSTR; szFileName: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseExport}
// Merge two database together, allowing duplicate rows
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseMergeA(hDatabase: MSIHANDLE; hDatabaseMerge: MSIHANDLE;
szTableName: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseMergeA}
function MsiDatabaseMergeW(hDatabase: MSIHANDLE; hDatabaseMerge: MSIHANDLE;
szTableName: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseMergeW}
function MsiDatabaseMerge(hDatabase: MSIHANDLE; hDatabaseMerge: MSIHANDLE;
szTableName: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseMerge}
// Generate a transform file of differences between two databases
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseGenerateTransformA(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCSTR; iReserved1: Integer; iReserved2: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGenerateTransformA}
function MsiDatabaseGenerateTransformW(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCWSTR; iReserved1: Integer; iReserved2: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGenerateTransformW}
function MsiDatabaseGenerateTransform(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCTSTR; iReserved1: Integer; iReserved2: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseGenerateTransform}
// Apply a transform file containing database difference
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseApplyTransformA(hDatabase: MSIHANDLE; szTransformFile: LPCSTR;
iErrorConditions: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseApplyTransformA}
function MsiDatabaseApplyTransformW(hDatabase: MSIHANDLE; szTransformFile: LPCWSTR;
iErrorConditions: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseApplyTransformW}
function MsiDatabaseApplyTransform(hDatabase: MSIHANDLE; szTransformFile: LPCTSTR;
iErrorConditions: Integer): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseApplyTransform}
// Create summary information of existing transform to include validation and error conditions
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiCreateTransformSummaryInfoA(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCSTR; iErrorConditions: Integer; iValidation: Integer): UINT; stdcall;
{$EXTERNALSYM MsiCreateTransformSummaryInfoA}
function MsiCreateTransformSummaryInfoW(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCWSTR; iErrorConditions: Integer; iValidation: Integer): UINT; stdcall;
{$EXTERNALSYM MsiCreateTransformSummaryInfoW}
function MsiCreateTransformSummaryInfo(hDatabase: MSIHANDLE; hDatabaseReference: MSIHANDLE;
szTransformFile: LPCTSTR; iErrorConditions: Integer; iValidation: Integer): UINT; stdcall;
{$EXTERNALSYM MsiCreateTransformSummaryInfo}
// Write out all persistent table data, ignored if database opened read-only
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiDatabaseCommit(hDatabase: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiDatabaseCommit}
// Return the update state of a database
function MsiGetDatabaseState(hDatabase: MSIHANDLE): MSIDBSTATE; stdcall;
{$EXTERNALSYM MsiGetDatabaseState}
// --------------------------------------------------------------------------
// Record object functions
// --------------------------------------------------------------------------
// Create a new record object with the requested number of fields
// Field 0, not included in count, is used for format strings and op codes
// All fields are initialized to null
// Returns a handle to the created record, or 0 if memory could not be allocated
function MsiCreateRecord(cParams: UINT): MSIHANDLE; stdcall;
{$EXTERNALSYM MsiCreateRecord}
// Report whether a record field is NULL
// Returns TRUE if the field is null or does not exist
// Returns FALSE if the field contains data, or the handle is invalid
function MsiRecordIsNull(hRecord: MSIHANDLE; iField: UINT): BOOL; stdcall;
{$EXTERNALSYM MsiRecordIsNull}
// Return the length of a record field
// Returns 0 if field is NULL or non-existent
// Returns sizeof(Integer) if integer data
// Returns character count if string data (not counting null terminator)
// Returns bytes count if stream data
function MsiRecordDataSize(hRecord: MSIHANDLE; iField: UINT): UINT; stdcall;
{$EXTERNALSYM MsiRecordDataSize}
// Set a record field to an integer value
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_FIELD
function MsiRecordSetInteger(hRecord: MSIHANDLE; iField: UINT; iValue: Integer): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetInteger}
// Copy a string into the designated field
// A null string pointer and an empty string both set the field to null
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_INVALID_FIELD
function MsiRecordSetStringA(hRecord: MSIHANDLE; iField: UINT; szValue: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetStringA}
function MsiRecordSetStringW(hRecord: MSIHANDLE; iField: UINT; szValue: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetStringW}
function MsiRecordSetString(hRecord: MSIHANDLE; iField: UINT; szValue: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetString}
// Return the integer value from a record field
// Returns the value MSI_NULL_INTEGER if the field is null
// or if the field is a string that cannot be converted to an integer
function MsiRecordGetInteger(hRecord: MSIHANDLE; iField: UINT): Integer; stdcall;
{$EXTERNALSYM MsiRecordGetInteger}
// Return the string value of a record field
// Integer fields will be converted to a string
// Null and non-existent fields will report a value of 0
// Fields containing stream data will return ERROR_INVALID_DATATYPE
// Returns ERROR_SUCCESS, ERROR_MORE_DATA,
// ERROR_INVALID_HANDLE, ERROR_INVALID_FIELD, ERROR_BAD_ARGUMENTS
function MsiRecordGetStringA(hRecord: MSIHANDLE; iField: UINT; szValueBuf: LPSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiRecordGetStringA}
function MsiRecordGetStringW(hRecord: MSIHANDLE; iField: UINT; szValueBuf: LPWSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiRecordGetStringW}
function MsiRecordGetString(hRecord: MSIHANDLE; iField: UINT; szValueBuf: LPTSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiRecordGetString}
// Returns the number of fields allocated in the record
// Does not count field 0, used for formatting and op codes
function MsiRecordGetFieldCount(hRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiRecordGetFieldCount}
// Set a record stream field from a file
// The contents of the specified file will be read into a stream object
// The stream will be persisted if the record is inserted into the database
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiRecordSetStreamA(hRecord: MSIHANDLE; iField: UINT; szFilePath: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetStreamA}
function MsiRecordSetStreamW(hRecord: MSIHANDLE; iField: UINT; szFilePath: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetStreamW}
function MsiRecordSetStream(hRecord: MSIHANDLE; iField: UINT; szFilePath: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiRecordSetStream}
// Read bytes from a record stream field into a buffer
// Must set the in/out argument to the requested byte count to read
// The number of bytes transferred is returned through the argument
// If no more bytes are available, ERROR_SUCCESS is still returned
function MsiRecordReadStream(hRecord: MSIHANDLE; iField: UINT; szDataBuf: PChar;
var pcbDataBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiRecordReadStream}
// Clears all data fields in a record to NULL
function MsiRecordClearData(hRecord: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiRecordClearData}
// --------------------------------------------------------------------------
// Functions to access a running installation, called from custom actions
// The install handle is the single argument passed to custom actions
// --------------------------------------------------------------------------
// Return a handle to the database currently in use by this installer instance
function MsiGetActiveDatabase(hInstall: MSIHANDLE): MSIHANDLE; stdcall;
{$EXTERNALSYM MsiGetActiveDatabase}
// Set the value for an installer property
// If the property is not defined, it will be created
// If the value is null or an empty string, the property will be removed
// Returns ERROR_SUCCESS, ERROR_INVALID_HANDLE, ERROR_BAD_ARGUMENTS
function MsiSetPropertyA(hInstall: MSIHANDLE; szName: LPCSTR; szValue: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetPropertyA}
function MsiSetPropertyW(hInstall: MSIHANDLE; szName: LPCWSTR; szValue: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetPropertyW}
function MsiSetProperty(hInstall: MSIHANDLE; szName: LPCTSTR; szValue: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetProperty}
// Get the value for an installer property
// If the property is not defined, it is equivalent to a 0-length value, not error
// Returns ERROR_SUCCESS, ERROR_MORE_DATA, ERROR_INVALID_HANDLE, ERROR_BAD_ARGUMENTS
function MsiGetPropertyA(hInstall: MSIHANDLE; szName: LPCSTR; szValueBuf: LPSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetPropertyA}
function MsiGetPropertyW(hInstall: MSIHANDLE; szName: LPCWSTR; szValueBuf: LPWSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetPropertyW}
function MsiGetProperty(hInstall: MSIHANDLE; szName: LPCTSTR; szValueBuf: LPTSTR;
var pcchValueBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetProperty}
// Return the numeric language for the currently running install
// Returns 0 if an install not running
function MsiGetLanguage(hInstall: MSIHANDLE): LANGID; stdcall;
{$EXTERNALSYM MsiGetLanguage}
// Return one of the boolean internal installer states
// Returns FALSE if the handle is not active or if the mode is not implemented
function MsiGetMode(hInstall: MSIHANDLE; eRunMode: MSIRUNMODE): BOOL; stdcall;
{$EXTERNALSYM MsiGetMode}
// Set an internal install session boolean mode - Note: most modes are read-only
// Returns ERROR_SUCCESS if the mode can be set to the desired state
// Returns ERROR_ACCESS_DENIED if the mode is not settable
// Returns ERROR_INVALID_HANDLE if the handle is not an active install session
function MsiSetMode(hInstall: MSIHANDLE; eRunMode: MSIRUNMODE; fState: BOOL): UINT; stdcall;
{$EXTERNALSYM MsiSetMode}
// Format record data using a format string containing field markers and/or properties
// Record field 0 must contain the format string
// Other fields must contain data that may be referenced by the format string.
function MsiFormatRecordA(hInstall: MSIHANDLE; hRecord: MSIHANDLE; szResultBuf: LPSTR;
var pcchResultBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiFormatRecordA}
function MsiFormatRecordW(hInstall: MSIHANDLE; hRecord: MSIHANDLE; szResultBuf: LPWSTR;
var pcchResultBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiFormatRecordW}
function MsiFormatRecord(hInstall: MSIHANDLE; hRecord: MSIHANDLE; szResultBuf: LPTSTR;
var pcchResultBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiFormatRecord}
// Execute another action, either built-in, custom, or UI wizard
// Returns ERROR_FUNCTION_NOT_CALLED if action not found
// Returns ERROR_SUCCESS if action completed succesfully
// Returns ERROR_INSTALL_USEREXIT if user cancelled during action
// Returns ERROR_INSTALL_FAILURE if action failed
// Returns ERROR_INSTALL_SUSPEND if user suspended installation
// Returns ERROR_MORE_DATA if action wishes to skip remaining actions
// Returns ERROR_INVALID_HANDLE_STATE if install session not active
// Returns ERROR_INVALID_DATA if failure calling custom action
// Returns ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER if arguments invalid
function MsiDoActionA(hInstall: MSIHANDLE; szAction: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiDoActionA}
function MsiDoActionW(hInstall: MSIHANDLE; szAction: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiDoActionW}
function MsiDoAction(hInstall: MSIHANDLE; szAction: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiDoAction}
// Execute another action sequence, as descibed in the specified table
// Returns the same error codes as MsiDoAction
function MsiSequenceA(hInstall: MSIHANDLE; szTable: LPCSTR; iSequenceMode: Integer): UINT; stdcall;
{$EXTERNALSYM MsiSequenceA}
function MsiSequenceW(hInstall: MSIHANDLE; szTable: LPCWSTR; iSequenceMode: Integer): UINT; stdcall;
{$EXTERNALSYM MsiSequenceW}
function MsiSequence(hInstall: MSIHANDLE; szTable: LPCTSTR; iSequenceMode: Integer): UINT; stdcall;
{$EXTERNALSYM MsiSequence}
// Send an error record to the installer for processing.
// If field 0 (template) is not set, field 1 must be set to the error code,
// corresponding the the error message in the Error database table,
// and the message will be formatted using the template from the Error table
// before passing it to the UI handler for display.
// Returns Win32 button codes: IDOK IDCANCEL IDABORT IDRETRY IDIGNORE IDYES IDNO
// or 0 if no action taken, or -1 if invalid argument or handle
function MsiProcessMessage(hInstall: MSIHANDLE; eMessageType: INSTALLMESSAGE;
hRecord: MSIHANDLE): Integer; stdcall;
{$EXTERNALSYM MsiProcessMessage}
// Evaluate a conditional expression containing property names and values
function MsiEvaluateConditionA(hInstall: MSIHANDLE; szCondition: LPCSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiEvaluateConditionA}
function MsiEvaluateConditionW(hInstall: MSIHANDLE; szCondition: LPCWSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiEvaluateConditionW}
function MsiEvaluateCondition(hInstall: MSIHANDLE; szCondition: LPCTSTR): MSICONDITION; stdcall;
{$EXTERNALSYM MsiEvaluateCondition}
// Get the installed state and requested action state of a feature
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetFeatureStateA(hInstall: MSIHANDLE; szFeature: LPCSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureStateA}
function MsiGetFeatureStateW(hInstall: MSIHANDLE; szFeature: LPCWSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureStateW}
function MsiGetFeatureState(hInstall: MSIHANDLE; szFeature: LPCTSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureState}
// Request a feature to be set to a specified state
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiSetFeatureStateA(hInstall: MSIHANDLE; szFeature: LPCSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureStateA}
function MsiSetFeatureStateW(hInstall: MSIHANDLE; szFeature: LPCWSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureStateW}
function MsiSetFeatureState(hInstall: MSIHANDLE; szFeature: LPCTSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureState}
// Set the attribute bits of a specified feature at runtime.
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiSetFeatureAttributesA(hInstall: MSIHANDLE; szFeature: LPCSTR;
dwAttributes: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureAttributesA}
function MsiSetFeatureAttributesW(hInstall: MSIHANDLE; szFeature: LPCWSTR;
dwAttributes: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureAttributesW}
function MsiSetFeatureAttributes(hInstall: MSIHANDLE; szFeature: LPCTSTR;
dwAttributes: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiSetFeatureAttributes}
// Get the installed state and requested action state of a component
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetComponentStateA(hInstall: MSIHANDLE; szComponent: LPCSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetComponentStateA}
function MsiGetComponentStateW(hInstall: MSIHANDLE; szComponent: LPCWSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetComponentStateW}
function MsiGetComponentState(hInstall: MSIHANDLE; szComponent: LPCTSTR;
var piInstalled: INSTALLSTATE; var piAction: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiGetComponentState}
// Request a component to be set to a specified state
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiSetComponentStateA(hInstall: MSIHANDLE; szComponent: LPCSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetComponentStateA}
function MsiSetComponentStateW(hInstall: MSIHANDLE; szComponent: LPCWSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetComponentStateW}
function MsiSetComponentState(hInstall: MSIHANDLE; szComponent: LPCTSTR;
iState: INSTALLSTATE): UINT; stdcall;
{$EXTERNALSYM MsiSetComponentState}
// Return the disk cost for a feature and related features
// Can specify either current feature state or proposed state
// Can specify extent of related features to cost
// Note that adding costs for several features may produce an
// excessively large cost due to shared components and parents.
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetFeatureCostA(hInstall: MSIHANDLE; szFeature: LPCSTR;
iCostTree: MSICOSTTREE; iState: INSTALLSTATE; var piCost: Integer): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureCostA}
function MsiGetFeatureCostW(hInstall: MSIHANDLE; szFeature: LPCWSTR;
iCostTree: MSICOSTTREE; iState: INSTALLSTATE; var piCost: Integer): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureCostW}
function MsiGetFeatureCost(hInstall: MSIHANDLE; szFeature: LPCTSTR;
iCostTree: MSICOSTTREE; iState: INSTALLSTATE; var piCost: Integer): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureCost}
// Enumerates the costs and temporary costs per drives for
// szComponent. If szComponent is set to NULL, it enumerates
// the above costs for the engine, per drives.
//
// The enumeration is 0-based, i.e. it returns the data for
// the first drive when called w/ dwIndex set to 0.
//
// Can specify either current feature state or proposed state.
//
// Execution of this function sets the error record, accessible
// via MsiGetLastErrorRecord.
function MsiEnumComponentCostsA(hInstall: MSIHANDLE; szComponent: LPCSTR; dwIndex: DWORD; iState: INSTALLSTATE;
szDriveBuf: LPSTR; var pcchDriveBuf: DWORD; var piCost: INT; piTempCost: INT): UINT; stdcall;
{$EXTERNALSYM MsiEnumComponentCostsA}
function MsiEnumComponentCostsW(hInstall: MSIHANDLE; szComponent: LPCWSTR; dwIndex: DWORD; iState: INSTALLSTATE;
szDriveBuf: LPWSTR; var pcchDriveBuf: DWORD; var piCost: INT; var piTempCost: INT): UINT; stdcall;
{$EXTERNALSYM MsiEnumComponentCostsW}
function MsiEnumComponentCosts(hInstall: MSIHANDLE; szComponent: LPCTSTR; dwIndex: DWORD; iState: INSTALLSTATE;
szDriveBuf: LPTSTR; var pcchDriveBuf: DWORD; var piCost: INT; var piTempCost: INT): UINT; stdcall;
{$EXTERNALSYM MsiEnumComponentCosts}
// Set the install level for a full product installation (not a feature request)
// Setting the value to 0 initialized components and features to the default level
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiSetInstallLevel(hInstall: MSIHANDLE; iInstallLevel: Integer): UINT; stdcall;
{$EXTERNALSYM MsiSetInstallLevel}
// Get the valid install states for a feature, represented by bit flags
// For each valid install state, a bit is set of value: (1 << INSTALLSTATE)
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetFeatureValidStatesA(hInstall: MSIHANDLE; szFeature: LPCSTR;
var dwInstallStates: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureValidStatesA}
function MsiGetFeatureValidStatesW(hInstall: MSIHANDLE; szFeature: LPCWSTR;
var dwInstallStates: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureValidStatesW}
function MsiGetFeatureValidStates(hInstall: MSIHANDLE; szFeature: LPCTSTR;
var dwInstallStates: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetFeatureValidStates}
// Return the full source path for a folder in the Directory table
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetSourcePathA(hInstall: MSIHANDLE; szFolder: LPCSTR; szPathBuf: LPSTR;
var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetSourcePathA}
function MsiGetSourcePathW(hInstall: MSIHANDLE; szFolder: LPCWSTR; szPathBuf: LPWSTR;
var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetSourcePathW}
function MsiGetSourcePath(hInstall: MSIHANDLE; szFolder: LPCTSTR; szPathBuf: LPTSTR;
var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetSourcePath}
// Return the full target path for a folder in the Directory table
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiGetTargetPathA(hInstall: MSIHANDLE; szFolder: LPCSTR;
szPathBuf: LPSTR; var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetTargetPathA}
function MsiGetTargetPathW(hInstall: MSIHANDLE; szFolder: LPCWSTR;
szPathBuf: LPWSTR; var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetTargetPathW}
function MsiGetTargetPath(hInstall: MSIHANDLE; szFolder: LPCTSTR;
szPathBuf: LPTSTR; var pcchPathBuf: DWORD): UINT; stdcall;
{$EXTERNALSYM MsiGetTargetPath}
// Set the full target path for a folder in the Directory table
// Execution of this function sets the error record, accessible via MsiGetLastErrorRecord
function MsiSetTargetPathA(hInstall: MSIHANDLE; szFolder: LPCSTR;
szFolderPath: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetTargetPathA}
function MsiSetTargetPathW(hInstall: MSIHANDLE; szFolder: LPCWSTR;
szFolderPath: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetTargetPathW}
function MsiSetTargetPath(hInstall: MSIHANDLE; szFolder: LPCTSTR;
szFolderPath: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiSetTargetPath}
// Check to see if sufficent disk space is present for the current installation
// Returns ERROR_SUCCESS, ERROR_DISK_FULL, ERROR_INVALID_HANDLE_STATE, or ERROR_INVALID_HANDLE
function MsiVerifyDiskSpace(hInstall: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiVerifyDiskSpace}
// --------------------------------------------------------------------------
// Functions for rendering UI dialogs from the database representations.
// Purpose is for product development, not for use during installation.
// --------------------------------------------------------------------------
// Enable UI in preview mode to facilitate authoring of UI dialogs.
// The preview mode will end when the handle is closed.
function MsiEnableUIPreview(hDatabase: MSIHANDLE; var phPreview: MSIHANDLE): UINT; stdcall;
{$EXTERNALSYM MsiEnableUIPreview}
// Display any UI dialog as modeless and inactive.
// Supplying a null name will remove any current dialog.
function MsiPreviewDialogA(hPreview: MSIHANDLE; szDialogName: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewDialogA}
function MsiPreviewDialogW(hPreview: MSIHANDLE; szDialogName: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewDialogW}
function MsiPreviewDialog(hPreview: MSIHANDLE; szDialogName: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewDialog}
// Display a billboard within a host control in the displayed dialog.
// Supplying a null billboard name will remove any billboard displayed.
function MsiPreviewBillboardA(hPreview: MSIHANDLE; szControlName: LPCSTR;
szBillboard: LPCSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewBillboardA}
function MsiPreviewBillboardW(hPreview: MSIHANDLE; szControlName: LPCWSTR;
szBillboard: LPCWSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewBillboardW}
function MsiPreviewBillboard(hPreview: MSIHANDLE; szControlName: LPCTSTR;
szBillboard: LPCTSTR): UINT; stdcall;
{$EXTERNALSYM MsiPreviewBillboard}
// --------------------------------------------------------------------------
// Error handling not associated with any particular object
// --------------------------------------------------------------------------
// Return a record handle to the last function that generated an error record
// Only specified functions will set the error record, or clear it if success
// Field 1 of the record will contain the internal MSI error code
// Other fields will contain data specific to the particular error
// The error record is released internally after this function is executed
function MsiGetLastErrorRecord: MSIHANDLE; stdcall;
{$EXTERNALSYM MsiGetLastErrorRecord}
{$ENDIF JWA_IMPLEMENTATIONSECTION}
{$IFNDEF JWA_OMIT_SECTIONS}
implementation
//uses ...
{$ENDIF JWA_OMIT_SECTIONS}
{$IFNDEF JWA_INTERFACESECTION}
{$IFNDEF JWA_INCLUDEMODE}
const
msilib = 'msi.dll';
{$IFDEF UNICODE}
AWSuffix = 'W';
{$ELSE}
AWSuffix = 'A';
{$ENDIF UNICODE}
{$ENDIF JWA_INCLUDEMODE}
{$IFDEF DYNAMIC_LINK}
var
_MsiDatabaseOpenViewA: Pointer;
function MsiDatabaseOpenViewA;
begin
GetProcedureAddress(_MsiDatabaseOpenViewA, msilib, 'MsiDatabaseOpenViewA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseOpenViewA]
end;
end;
var
_MsiDatabaseOpenViewW: Pointer;
function MsiDatabaseOpenViewW;
begin
GetProcedureAddress(_MsiDatabaseOpenViewW, msilib, 'MsiDatabaseOpenViewW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseOpenViewW]
end;
end;
var
_MsiDatabaseOpenView: Pointer;
function MsiDatabaseOpenView;
begin
GetProcedureAddress(_MsiDatabaseOpenView, msilib, 'MsiDatabaseOpenView' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseOpenView]
end;
end;
var
_MsiViewGetErrorA: Pointer;
function MsiViewGetErrorA;
begin
GetProcedureAddress(_MsiViewGetErrorA, msilib, 'MsiViewGetErrorA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewGetErrorA]
end;
end;
var
_MsiViewGetErrorW: Pointer;
function MsiViewGetErrorW;
begin
GetProcedureAddress(_MsiViewGetErrorW, msilib, 'MsiViewGetErrorW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewGetErrorW]
end;
end;
var
_MsiViewGetError: Pointer;
function MsiViewGetError;
begin
GetProcedureAddress(_MsiViewGetError, msilib, 'MsiViewGetError' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewGetError]
end;
end;
var
_MsiViewExecute: Pointer;
function MsiViewExecute;
begin
GetProcedureAddress(_MsiViewExecute, msilib, 'MsiViewExecute');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewExecute]
end;
end;
var
_MsiViewFetch: Pointer;
function MsiViewFetch;
begin
GetProcedureAddress(_MsiViewFetch, msilib, 'MsiViewFetch');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewFetch]
end;
end;
var
_MsiViewModify: Pointer;
function MsiViewModify;
begin
GetProcedureAddress(_MsiViewModify, msilib, 'MsiViewModify');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewModify]
end;
end;
var
_MsiViewGetColumnInfo: Pointer;
function MsiViewGetColumnInfo;
begin
GetProcedureAddress(_MsiViewGetColumnInfo, msilib, 'MsiViewGetColumnInfo');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewGetColumnInfo]
end;
end;
var
_MsiViewClose: Pointer;
function MsiViewClose;
begin
GetProcedureAddress(_MsiViewClose, msilib, 'MsiViewClose');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiViewClose]
end;
end;
var
_MsiDatabaseGetPrimaryKeysA: Pointer;
function MsiDatabaseGetPrimaryKeysA;
begin
GetProcedureAddress(_MsiDatabaseGetPrimaryKeysA, msilib, 'MsiDatabaseGetPrimaryKeysA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGetPrimaryKeysA]
end;
end;
var
_MsiDatabaseGetPrimaryKeysW: Pointer;
function MsiDatabaseGetPrimaryKeysW;
begin
GetProcedureAddress(_MsiDatabaseGetPrimaryKeysW, msilib, 'MsiDatabaseGetPrimaryKeysW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGetPrimaryKeysW]
end;
end;
var
_MsiDatabaseGetPrimaryKeys: Pointer;
function MsiDatabaseGetPrimaryKeys;
begin
GetProcedureAddress(_MsiDatabaseGetPrimaryKeys, msilib, 'MsiDatabaseGetPrimaryKeys' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGetPrimaryKeys]
end;
end;
var
_MsiDatabaseIsTablePersistentA: Pointer;
function MsiDatabaseIsTablePersistentA;
begin
GetProcedureAddress(_MsiDatabaseIsTablePersistentA, msilib, 'MsiDatabaseIsTablePersistentA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseIsTablePersistentA]
end;
end;
var
_MsiDatabaseIsTablePersistentW: Pointer;
function MsiDatabaseIsTablePersistentW;
begin
GetProcedureAddress(_MsiDatabaseIsTablePersistentW, msilib, 'MsiDatabaseIsTablePersistentW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseIsTablePersistentW]
end;
end;
var
_MsiDatabaseIsTablePersistent: Pointer;
function MsiDatabaseIsTablePersistent;
begin
GetProcedureAddress(_MsiDatabaseIsTablePersistent, msilib, 'MsiDatabaseIsTablePersistent' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseIsTablePersistent]
end;
end;
var
_MsiGetSummaryInformationA: Pointer;
function MsiGetSummaryInformationA;
begin
GetProcedureAddress(_MsiGetSummaryInformationA, msilib, 'MsiGetSummaryInformationA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSummaryInformationA]
end;
end;
var
_MsiGetSummaryInformationW: Pointer;
function MsiGetSummaryInformationW;
begin
GetProcedureAddress(_MsiGetSummaryInformationW, msilib, 'MsiGetSummaryInformationW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSummaryInformationW]
end;
end;
var
_MsiGetSummaryInformation: Pointer;
function MsiGetSummaryInformation;
begin
GetProcedureAddress(_MsiGetSummaryInformation, msilib, 'MsiGetSummaryInformation' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSummaryInformation]
end;
end;
var
_MsiSummaryInfoGetPropertyCount: Pointer;
function MsiSummaryInfoGetPropertyCount;
begin
GetProcedureAddress(_MsiSummaryInfoGetPropertyCount, msilib, 'MsiSummaryInfoGetPropertyCount');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoGetPropertyCount]
end;
end;
var
_MsiSummaryInfoSetPropertyA: Pointer;
function MsiSummaryInfoSetPropertyA;
begin
GetProcedureAddress(_MsiSummaryInfoSetPropertyA, msilib, 'MsiSummaryInfoSetPropertyA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoSetPropertyA]
end;
end;
var
_MsiSummaryInfoSetPropertyW: Pointer;
function MsiSummaryInfoSetPropertyW;
begin
GetProcedureAddress(_MsiSummaryInfoSetPropertyW, msilib, 'MsiSummaryInfoSetPropertyW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoSetPropertyW]
end;
end;
var
_MsiSummaryInfoSetProperty: Pointer;
function MsiSummaryInfoSetProperty;
begin
GetProcedureAddress(_MsiSummaryInfoSetProperty, msilib, 'MsiSummaryInfoSetProperty' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoSetProperty]
end;
end;
var
_MsiSummaryInfoGetPropertyA: Pointer;
function MsiSummaryInfoGetPropertyA;
begin
GetProcedureAddress(_MsiSummaryInfoGetPropertyA, msilib, 'MsiSummaryInfoGetPropertyA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoGetPropertyA]
end;
end;
var
_MsiSummaryInfoGetPropertyW: Pointer;
function MsiSummaryInfoGetPropertyW;
begin
GetProcedureAddress(_MsiSummaryInfoGetPropertyW, msilib, 'MsiSummaryInfoGetPropertyW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoGetPropertyW]
end;
end;
var
_MsiSummaryInfoGetProperty: Pointer;
function MsiSummaryInfoGetProperty;
begin
GetProcedureAddress(_MsiSummaryInfoGetProperty, msilib, 'MsiSummaryInfoGetProperty' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoGetProperty]
end;
end;
var
_MsiSummaryInfoPersist: Pointer;
function MsiSummaryInfoPersist;
begin
GetProcedureAddress(_MsiSummaryInfoPersist, msilib, 'MsiSummaryInfoPersist');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSummaryInfoPersist]
end;
end;
var
_MsiOpenDatabaseA: Pointer;
function MsiOpenDatabaseA;
begin
GetProcedureAddress(_MsiOpenDatabaseA, msilib, 'MsiOpenDatabaseA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiOpenDatabaseA]
end;
end;
var
_MsiOpenDatabaseW: Pointer;
function MsiOpenDatabaseW;
begin
GetProcedureAddress(_MsiOpenDatabaseW, msilib, 'MsiOpenDatabaseW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiOpenDatabaseW]
end;
end;
var
_MsiOpenDatabase: Pointer;
function MsiOpenDatabase;
begin
GetProcedureAddress(_MsiOpenDatabase, msilib, 'MsiOpenDatabase' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiOpenDatabase]
end;
end;
var
_MsiDatabaseImportA: Pointer;
function MsiDatabaseImportA;
begin
GetProcedureAddress(_MsiDatabaseImportA, msilib, 'MsiDatabaseImportA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseImportA]
end;
end;
var
_MsiDatabaseImportW: Pointer;
function MsiDatabaseImportW;
begin
GetProcedureAddress(_MsiDatabaseImportW, msilib, 'MsiDatabaseImportW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseImportW]
end;
end;
var
_MsiDatabaseImport: Pointer;
function MsiDatabaseImport;
begin
GetProcedureAddress(_MsiDatabaseImport, msilib, 'MsiDatabaseImport' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseImport]
end;
end;
var
_MsiDatabaseExportA: Pointer;
function MsiDatabaseExportA;
begin
GetProcedureAddress(_MsiDatabaseExportA, msilib, 'MsiDatabaseExportA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseExportA]
end;
end;
var
_MsiDatabaseExportW: Pointer;
function MsiDatabaseExportW;
begin
GetProcedureAddress(_MsiDatabaseExportW, msilib, 'MsiDatabaseExportW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseExportW]
end;
end;
var
_MsiDatabaseExport: Pointer;
function MsiDatabaseExport;
begin
GetProcedureAddress(_MsiDatabaseExport, msilib, 'MsiDatabaseExport' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseExport]
end;
end;
var
_MsiDatabaseMergeA: Pointer;
function MsiDatabaseMergeA;
begin
GetProcedureAddress(_MsiDatabaseMergeA, msilib, 'MsiDatabaseMergeA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseMergeA]
end;
end;
var
_MsiDatabaseMergeW: Pointer;
function MsiDatabaseMergeW;
begin
GetProcedureAddress(_MsiDatabaseMergeW, msilib, 'MsiDatabaseMergeW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseMergeW]
end;
end;
var
_MsiDatabaseMerge: Pointer;
function MsiDatabaseMerge;
begin
GetProcedureAddress(_MsiDatabaseMerge, msilib, 'MsiDatabaseMerge' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseMerge]
end;
end;
var
_MsiDatabaseGenerateTransformA: Pointer;
function MsiDatabaseGenerateTransformA;
begin
GetProcedureAddress(_MsiDatabaseGenerateTransformA, msilib, 'MsiDatabaseGenerateTransformA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGenerateTransformA]
end;
end;
var
_MsiDatabaseGenerateTransformW: Pointer;
function MsiDatabaseGenerateTransformW;
begin
GetProcedureAddress(_MsiDatabaseGenerateTransformW, msilib, 'MsiDatabaseGenerateTransformW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGenerateTransformW]
end;
end;
var
_MsiDatabaseGenerateTransform: Pointer;
function MsiDatabaseGenerateTransform;
begin
GetProcedureAddress(_MsiDatabaseGenerateTransform, msilib, 'MsiDatabaseGenerateTransform' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseGenerateTransform]
end;
end;
var
_MsiDatabaseApplyTransformA: Pointer;
function MsiDatabaseApplyTransformA;
begin
GetProcedureAddress(_MsiDatabaseApplyTransformA, msilib, 'MsiDatabaseApplyTransformA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseApplyTransformA]
end;
end;
var
_MsiDatabaseApplyTransformW: Pointer;
function MsiDatabaseApplyTransformW;
begin
GetProcedureAddress(_MsiDatabaseApplyTransformW, msilib, 'MsiDatabaseApplyTransformW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseApplyTransformW]
end;
end;
var
_MsiDatabaseApplyTransform: Pointer;
function MsiDatabaseApplyTransform;
begin
GetProcedureAddress(_MsiDatabaseApplyTransform, msilib, 'MsiDatabaseApplyTransform' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseApplyTransform]
end;
end;
var
_MsiCreateTransformSummaryInfoA: Pointer;
function MsiCreateTransformSummaryInfoA;
begin
GetProcedureAddress(_MsiCreateTransformSummaryInfoA, msilib, 'MsiCreateTransformSummaryInfoA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiCreateTransformSummaryInfoA]
end;
end;
var
_MsiCreateTransformSummaryInfoW: Pointer;
function MsiCreateTransformSummaryInfoW;
begin
GetProcedureAddress(_MsiCreateTransformSummaryInfoW, msilib, 'MsiCreateTransformSummaryInfoW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiCreateTransformSummaryInfoW]
end;
end;
var
_MsiCreateTransformSummaryInfo: Pointer;
function MsiCreateTransformSummaryInfo;
begin
GetProcedureAddress(_MsiCreateTransformSummaryInfo, msilib, 'MsiCreateTransformSummaryInfo' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiCreateTransformSummaryInfo]
end;
end;
var
_MsiDatabaseCommit: Pointer;
function MsiDatabaseCommit;
begin
GetProcedureAddress(_MsiDatabaseCommit, msilib, 'MsiDatabaseCommit');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDatabaseCommit]
end;
end;
var
_MsiGetDatabaseState: Pointer;
function MsiGetDatabaseState;
begin
GetProcedureAddress(_MsiGetDatabaseState, msilib, 'MsiGetDatabaseState');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetDatabaseState]
end;
end;
var
_MsiCreateRecord: Pointer;
function MsiCreateRecord;
begin
GetProcedureAddress(_MsiCreateRecord, msilib, 'MsiCreateRecord');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiCreateRecord]
end;
end;
var
_MsiRecordIsNull: Pointer;
function MsiRecordIsNull;
begin
GetProcedureAddress(_MsiRecordIsNull, msilib, 'MsiRecordIsNull');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordIsNull]
end;
end;
var
_MsiRecordDataSize: Pointer;
function MsiRecordDataSize;
begin
GetProcedureAddress(_MsiRecordDataSize, msilib, 'MsiRecordDataSize');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordDataSize]
end;
end;
var
_MsiRecordSetInteger: Pointer;
function MsiRecordSetInteger;
begin
GetProcedureAddress(_MsiRecordSetInteger, msilib, 'MsiRecordSetInteger');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetInteger]
end;
end;
var
_MsiRecordSetStringA: Pointer;
function MsiRecordSetStringA;
begin
GetProcedureAddress(_MsiRecordSetStringA, msilib, 'MsiRecordSetStringA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetStringA]
end;
end;
var
_MsiRecordSetStringW: Pointer;
function MsiRecordSetStringW;
begin
GetProcedureAddress(_MsiRecordSetStringW, msilib, 'MsiRecordSetStringW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetStringW]
end;
end;
var
_MsiRecordSetString: Pointer;
function MsiRecordSetString;
begin
GetProcedureAddress(_MsiRecordSetString, msilib, 'MsiRecordSetString' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetString]
end;
end;
var
_MsiRecordGetInteger: Pointer;
function MsiRecordGetInteger;
begin
GetProcedureAddress(_MsiRecordGetInteger, msilib, 'MsiRecordGetInteger');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordGetInteger]
end;
end;
var
_MsiRecordGetStringA: Pointer;
function MsiRecordGetStringA;
begin
GetProcedureAddress(_MsiRecordGetStringA, msilib, 'MsiRecordGetStringA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordGetStringA]
end;
end;
var
_MsiRecordGetStringW: Pointer;
function MsiRecordGetStringW;
begin
GetProcedureAddress(_MsiRecordGetStringW, msilib, 'MsiRecordGetStringW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordGetStringW]
end;
end;
var
_MsiRecordGetString: Pointer;
function MsiRecordGetString;
begin
GetProcedureAddress(_MsiRecordGetString, msilib, 'MsiRecordGetString' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordGetString]
end;
end;
var
_MsiRecordGetFieldCount: Pointer;
function MsiRecordGetFieldCount;
begin
GetProcedureAddress(_MsiRecordGetFieldCount, msilib, 'MsiRecordGetFieldCount');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordGetFieldCount]
end;
end;
var
_MsiRecordSetStreamA: Pointer;
function MsiRecordSetStreamA;
begin
GetProcedureAddress(_MsiRecordSetStreamA, msilib, 'MsiRecordSetStreamA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetStreamA]
end;
end;
var
_MsiRecordSetStreamW: Pointer;
function MsiRecordSetStreamW;
begin
GetProcedureAddress(_MsiRecordSetStreamW, msilib, 'MsiRecordSetStreamW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetStreamW]
end;
end;
var
_MsiRecordSetStream: Pointer;
function MsiRecordSetStream;
begin
GetProcedureAddress(_MsiRecordSetStream, msilib, 'MsiRecordSetStream' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordSetStream]
end;
end;
var
_MsiRecordReadStream: Pointer;
function MsiRecordReadStream;
begin
GetProcedureAddress(_MsiRecordReadStream, msilib, 'MsiRecordReadStream');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordReadStream]
end;
end;
var
_MsiRecordClearData: Pointer;
function MsiRecordClearData;
begin
GetProcedureAddress(_MsiRecordClearData, msilib, 'MsiRecordClearData');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiRecordClearData]
end;
end;
var
_MsiGetActiveDatabase: Pointer;
function MsiGetActiveDatabase;
begin
GetProcedureAddress(_MsiGetActiveDatabase, msilib, 'MsiGetActiveDatabase');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetActiveDatabase]
end;
end;
var
_MsiSetPropertyA: Pointer;
function MsiSetPropertyA;
begin
GetProcedureAddress(_MsiSetPropertyA, msilib, 'MsiSetPropertyA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetPropertyA]
end;
end;
var
_MsiSetPropertyW: Pointer;
function MsiSetPropertyW;
begin
GetProcedureAddress(_MsiSetPropertyW, msilib, 'MsiSetPropertyW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetPropertyW]
end;
end;
var
_MsiSetProperty: Pointer;
function MsiSetProperty;
begin
GetProcedureAddress(_MsiSetProperty, msilib, 'MsiSetProperty' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetProperty]
end;
end;
var
_MsiGetPropertyA: Pointer;
function MsiGetPropertyA;
begin
GetProcedureAddress(_MsiGetPropertyA, msilib, 'MsiGetPropertyA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetPropertyA]
end;
end;
var
_MsiGetPropertyW: Pointer;
function MsiGetPropertyW;
begin
GetProcedureAddress(_MsiGetPropertyW, msilib, 'MsiGetPropertyW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetPropertyW]
end;
end;
var
_MsiGetProperty: Pointer;
function MsiGetProperty;
begin
GetProcedureAddress(_MsiGetProperty, msilib, 'MsiGetProperty' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetProperty]
end;
end;
var
_MsiGetLanguage: Pointer;
function MsiGetLanguage;
begin
GetProcedureAddress(_MsiGetLanguage, msilib, 'MsiGetLanguage');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetLanguage]
end;
end;
var
_MsiGetMode: Pointer;
function MsiGetMode;
begin
GetProcedureAddress(_MsiGetMode, msilib, 'MsiGetMode');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetMode]
end;
end;
var
_MsiSetMode: Pointer;
function MsiSetMode;
begin
GetProcedureAddress(_MsiSetMode, msilib, 'MsiSetMode');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetMode]
end;
end;
var
_MsiFormatRecordA: Pointer;
function MsiFormatRecordA;
begin
GetProcedureAddress(_MsiFormatRecordA, msilib, 'MsiFormatRecordA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiFormatRecordA]
end;
end;
var
_MsiFormatRecordW: Pointer;
function MsiFormatRecordW;
begin
GetProcedureAddress(_MsiFormatRecordW, msilib, 'MsiFormatRecordW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiFormatRecordW]
end;
end;
var
_MsiFormatRecord: Pointer;
function MsiFormatRecord;
begin
GetProcedureAddress(_MsiFormatRecord, msilib, 'MsiFormatRecord' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiFormatRecord]
end;
end;
var
_MsiDoActionA: Pointer;
function MsiDoActionA;
begin
GetProcedureAddress(_MsiDoActionA, msilib, 'MsiDoActionA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDoActionA]
end;
end;
var
_MsiDoActionW: Pointer;
function MsiDoActionW;
begin
GetProcedureAddress(_MsiDoActionW, msilib, 'MsiDoActionW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDoActionW]
end;
end;
var
_MsiDoAction: Pointer;
function MsiDoAction;
begin
GetProcedureAddress(_MsiDoAction, msilib, 'MsiDoAction' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiDoAction]
end;
end;
var
_MsiSequenceA: Pointer;
function MsiSequenceA;
begin
GetProcedureAddress(_MsiSequenceA, msilib, 'MsiSequenceA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSequenceA]
end;
end;
var
_MsiSequenceW: Pointer;
function MsiSequenceW;
begin
GetProcedureAddress(_MsiSequenceW, msilib, 'MsiSequenceW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSequenceW]
end;
end;
var
_MsiSequence: Pointer;
function MsiSequence;
begin
GetProcedureAddress(_MsiSequence, msilib, 'MsiSequence' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSequence]
end;
end;
var
_MsiProcessMessage: Pointer;
function MsiProcessMessage;
begin
GetProcedureAddress(_MsiProcessMessage, msilib, 'MsiProcessMessage');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiProcessMessage]
end;
end;
var
_MsiEvaluateConditionA: Pointer;
function MsiEvaluateConditionA;
begin
GetProcedureAddress(_MsiEvaluateConditionA, msilib, 'MsiEvaluateConditionA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEvaluateConditionA]
end;
end;
var
_MsiEvaluateConditionW: Pointer;
function MsiEvaluateConditionW;
begin
GetProcedureAddress(_MsiEvaluateConditionW, msilib, 'MsiEvaluateConditionW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEvaluateConditionW]
end;
end;
var
_MsiEvaluateCondition: Pointer;
function MsiEvaluateCondition;
begin
GetProcedureAddress(_MsiEvaluateCondition, msilib, 'MsiEvaluateCondition' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEvaluateCondition]
end;
end;
var
_MsiGetFeatureStateA: Pointer;
function MsiGetFeatureStateA;
begin
GetProcedureAddress(_MsiGetFeatureStateA, msilib, 'MsiGetFeatureStateA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureStateA]
end;
end;
var
_MsiGetFeatureStateW: Pointer;
function MsiGetFeatureStateW;
begin
GetProcedureAddress(_MsiGetFeatureStateW, msilib, 'MsiGetFeatureStateW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureStateW]
end;
end;
var
_MsiGetFeatureState: Pointer;
function MsiGetFeatureState;
begin
GetProcedureAddress(_MsiGetFeatureState, msilib, 'MsiGetFeatureState' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureState]
end;
end;
var
_MsiSetFeatureStateA: Pointer;
function MsiSetFeatureStateA;
begin
GetProcedureAddress(_MsiSetFeatureStateA, msilib, 'MsiSetFeatureStateA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureStateA]
end;
end;
var
_MsiSetFeatureStateW: Pointer;
function MsiSetFeatureStateW;
begin
GetProcedureAddress(_MsiSetFeatureStateW, msilib, 'MsiSetFeatureStateW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureStateW]
end;
end;
var
_MsiSetFeatureState: Pointer;
function MsiSetFeatureState;
begin
GetProcedureAddress(_MsiSetFeatureState, msilib, 'MsiSetFeatureState' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureState]
end;
end;
var
_MsiSetFeatureAttributesA: Pointer;
function MsiSetFeatureAttributesA;
begin
GetProcedureAddress(_MsiSetFeatureAttributesA, msilib, 'MsiSetFeatureAttributesA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureAttributesA]
end;
end;
var
_MsiSetFeatureAttributesW: Pointer;
function MsiSetFeatureAttributesW;
begin
GetProcedureAddress(_MsiSetFeatureAttributesW, msilib, 'MsiSetFeatureAttributesW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureAttributesW]
end;
end;
var
_MsiSetFeatureAttributes: Pointer;
function MsiSetFeatureAttributes;
begin
GetProcedureAddress(_MsiSetFeatureAttributes, msilib, 'MsiSetFeatureAttributes' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetFeatureAttributes]
end;
end;
var
_MsiGetComponentStateA: Pointer;
function MsiGetComponentStateA;
begin
GetProcedureAddress(_MsiGetComponentStateA, msilib, 'MsiGetComponentStateA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetComponentStateA]
end;
end;
var
_MsiGetComponentStateW: Pointer;
function MsiGetComponentStateW;
begin
GetProcedureAddress(_MsiGetComponentStateW, msilib, 'MsiGetComponentStateW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetComponentStateW]
end;
end;
var
_MsiGetComponentState: Pointer;
function MsiGetComponentState;
begin
GetProcedureAddress(_MsiGetComponentState, msilib, 'MsiGetComponentState' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetComponentState]
end;
end;
var
_MsiSetComponentStateA: Pointer;
function MsiSetComponentStateA;
begin
GetProcedureAddress(_MsiSetComponentStateA, msilib, 'MsiSetComponentStateA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetComponentStateA]
end;
end;
var
_MsiSetComponentStateW: Pointer;
function MsiSetComponentStateW;
begin
GetProcedureAddress(_MsiSetComponentStateW, msilib, 'MsiSetComponentStateW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetComponentStateW]
end;
end;
var
_MsiSetComponentState: Pointer;
function MsiSetComponentState;
begin
GetProcedureAddress(_MsiSetComponentState, msilib, 'MsiSetComponentState' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetComponentState]
end;
end;
var
_MsiGetFeatureCostA: Pointer;
function MsiGetFeatureCostA;
begin
GetProcedureAddress(_MsiGetFeatureCostA, msilib, 'MsiGetFeatureCostA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureCostA]
end;
end;
var
_MsiGetFeatureCostW: Pointer;
function MsiGetFeatureCostW;
begin
GetProcedureAddress(_MsiGetFeatureCostW, msilib, 'MsiGetFeatureCostW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureCostW]
end;
end;
var
_MsiGetFeatureCost: Pointer;
function MsiGetFeatureCost;
begin
GetProcedureAddress(_MsiGetFeatureCost, msilib, 'MsiGetFeatureCost' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureCost]
end;
end;
var
_MsiEnumComponentCostsA: Pointer;
function MsiEnumComponentCostsA;
begin
GetProcedureAddress(_MsiEnumComponentCostsA, msilib, 'MsiEnumComponentCostsA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEnumComponentCostsA]
end;
end;
var
_MsiEnumComponentCostsW: Pointer;
function MsiEnumComponentCostsW;
begin
GetProcedureAddress(_MsiEnumComponentCostsW, msilib, 'MsiEnumComponentCostsW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEnumComponentCostsW]
end;
end;
var
_MsiEnumComponentCosts: Pointer;
function MsiEnumComponentCosts;
begin
GetProcedureAddress(_MsiEnumComponentCosts, msilib, 'MsiEnumComponentCosts' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEnumComponentCosts]
end;
end;
var
_MsiSetInstallLevel: Pointer;
function MsiSetInstallLevel;
begin
GetProcedureAddress(_MsiSetInstallLevel, msilib, 'MsiSetInstallLevel');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetInstallLevel]
end;
end;
var
_MsiGetFeatureValidStatesA: Pointer;
function MsiGetFeatureValidStatesA;
begin
GetProcedureAddress(_MsiGetFeatureValidStatesA, msilib, 'MsiGetFeatureValidStatesA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureValidStatesA]
end;
end;
var
_MsiGetFeatureValidStatesW: Pointer;
function MsiGetFeatureValidStatesW;
begin
GetProcedureAddress(_MsiGetFeatureValidStatesW, msilib, 'MsiGetFeatureValidStatesW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureValidStatesW]
end;
end;
var
_MsiGetFeatureValidStates: Pointer;
function MsiGetFeatureValidStates;
begin
GetProcedureAddress(_MsiGetFeatureValidStates, msilib, 'MsiGetFeatureValidStates' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetFeatureValidStates]
end;
end;
var
_MsiGetSourcePathA: Pointer;
function MsiGetSourcePathA;
begin
GetProcedureAddress(_MsiGetSourcePathA, msilib, 'MsiGetSourcePathA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSourcePathA]
end;
end;
var
_MsiGetSourcePathW: Pointer;
function MsiGetSourcePathW;
begin
GetProcedureAddress(_MsiGetSourcePathW, msilib, 'MsiGetSourcePathW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSourcePathW]
end;
end;
var
_MsiGetSourcePath: Pointer;
function MsiGetSourcePath;
begin
GetProcedureAddress(_MsiGetSourcePath, msilib, 'MsiGetSourcePath' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetSourcePath]
end;
end;
var
_MsiGetTargetPathA: Pointer;
function MsiGetTargetPathA;
begin
GetProcedureAddress(_MsiGetTargetPathA, msilib, 'MsiGetTargetPathA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetTargetPathA]
end;
end;
var
_MsiGetTargetPathW: Pointer;
function MsiGetTargetPathW;
begin
GetProcedureAddress(_MsiGetTargetPathW, msilib, 'MsiGetTargetPathW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetTargetPathW]
end;
end;
var
_MsiGetTargetPath: Pointer;
function MsiGetTargetPath;
begin
GetProcedureAddress(_MsiGetTargetPath, msilib, 'MsiGetTargetPath' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetTargetPath]
end;
end;
var
_MsiSetTargetPathA: Pointer;
function MsiSetTargetPathA;
begin
GetProcedureAddress(_MsiSetTargetPathA, msilib, 'MsiSetTargetPathA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetTargetPathA]
end;
end;
var
_MsiSetTargetPathW: Pointer;
function MsiSetTargetPathW;
begin
GetProcedureAddress(_MsiSetTargetPathW, msilib, 'MsiSetTargetPathW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetTargetPathW]
end;
end;
var
_MsiSetTargetPath: Pointer;
function MsiSetTargetPath;
begin
GetProcedureAddress(_MsiSetTargetPath, msilib, 'MsiSetTargetPath' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiSetTargetPath]
end;
end;
var
_MsiVerifyDiskSpace: Pointer;
function MsiVerifyDiskSpace;
begin
GetProcedureAddress(_MsiVerifyDiskSpace, msilib, 'MsiVerifyDiskSpace');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiVerifyDiskSpace]
end;
end;
var
_MsiEnableUIPreview: Pointer;
function MsiEnableUIPreview;
begin
GetProcedureAddress(_MsiEnableUIPreview, msilib, 'MsiEnableUIPreview');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiEnableUIPreview]
end;
end;
var
_MsiPreviewDialogA: Pointer;
function MsiPreviewDialogA;
begin
GetProcedureAddress(_MsiPreviewDialogA, msilib, 'MsiPreviewDialogA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewDialogA]
end;
end;
var
_MsiPreviewDialogW: Pointer;
function MsiPreviewDialogW;
begin
GetProcedureAddress(_MsiPreviewDialogW, msilib, 'MsiPreviewDialogW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewDialogW]
end;
end;
var
_MsiPreviewDialog: Pointer;
function MsiPreviewDialog;
begin
GetProcedureAddress(_MsiPreviewDialog, msilib, 'MsiPreviewDialog' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewDialog]
end;
end;
var
_MsiPreviewBillboardA: Pointer;
function MsiPreviewBillboardA;
begin
GetProcedureAddress(_MsiPreviewBillboardA, msilib, 'MsiPreviewBillboardA');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewBillboardA]
end;
end;
var
_MsiPreviewBillboardW: Pointer;
function MsiPreviewBillboardW;
begin
GetProcedureAddress(_MsiPreviewBillboardW, msilib, 'MsiPreviewBillboardW');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewBillboardW]
end;
end;
var
_MsiPreviewBillboard: Pointer;
function MsiPreviewBillboard;
begin
GetProcedureAddress(_MsiPreviewBillboard, msilib, 'MsiPreviewBillboard' + AWSuffix);
asm
MOV ESP, EBP
POP EBP
JMP [_MsiPreviewBillboard]
end;
end;
var
_MsiGetLastErrorRecord: Pointer;
function MsiGetLastErrorRecord;
begin
GetProcedureAddress(_MsiGetLastErrorRecord, msilib, 'MsiGetLastErrorRecord');
asm
MOV ESP, EBP
POP EBP
JMP [_MsiGetLastErrorRecord]
end;
end;
{$ELSE}
function MsiDatabaseOpenViewA; external msilib name 'MsiDatabaseOpenViewA';
function MsiDatabaseOpenViewW; external msilib name 'MsiDatabaseOpenViewW';
function MsiDatabaseOpenView; external msilib name 'MsiDatabaseOpenView' + AWSuffix;
function MsiViewGetErrorA; external msilib name 'MsiViewGetErrorA';
function MsiViewGetErrorW; external msilib name 'MsiViewGetErrorW';
function MsiViewGetError; external msilib name 'MsiViewGetError' + AWSuffix;
function MsiViewExecute; external msilib name 'MsiViewExecute';
function MsiViewFetch; external msilib name 'MsiViewFetch';
function MsiViewModify; external msilib name 'MsiViewModify';
function MsiViewGetColumnInfo; external msilib name 'MsiViewGetColumnInfo';
function MsiViewClose; external msilib name 'MsiViewClose';
function MsiDatabaseGetPrimaryKeysA; external msilib name 'MsiDatabaseGetPrimaryKeysA';
function MsiDatabaseGetPrimaryKeysW; external msilib name 'MsiDatabaseGetPrimaryKeysW';
function MsiDatabaseGetPrimaryKeys; external msilib name 'MsiDatabaseGetPrimaryKeys' + AWSuffix;
function MsiDatabaseIsTablePersistentA; external msilib name 'MsiDatabaseIsTablePersistentA';
function MsiDatabaseIsTablePersistentW; external msilib name 'MsiDatabaseIsTablePersistentW';
function MsiDatabaseIsTablePersistent; external msilib name 'MsiDatabaseIsTablePersistent' + AWSuffix;
function MsiGetSummaryInformationA; external msilib name 'MsiGetSummaryInformationA';
function MsiGetSummaryInformationW; external msilib name 'MsiGetSummaryInformationW';
function MsiGetSummaryInformation; external msilib name 'MsiGetSummaryInformation' + AWSuffix;
function MsiSummaryInfoGetPropertyCount; external msilib name 'MsiSummaryInfoGetPropertyCount';
function MsiSummaryInfoSetPropertyA; external msilib name 'MsiSummaryInfoSetPropertyA';
function MsiSummaryInfoSetPropertyW; external msilib name 'MsiSummaryInfoSetPropertyW';
function MsiSummaryInfoSetProperty; external msilib name 'MsiSummaryInfoSetProperty' + AWSuffix;
function MsiSummaryInfoGetPropertyA; external msilib name 'MsiSummaryInfoGetPropertyA';
function MsiSummaryInfoGetPropertyW; external msilib name 'MsiSummaryInfoGetPropertyW';
function MsiSummaryInfoGetProperty; external msilib name 'MsiSummaryInfoGetProperty' + AWSuffix;
function MsiSummaryInfoPersist; external msilib name 'MsiSummaryInfoPersist';
function MsiOpenDatabaseA; external msilib name 'MsiOpenDatabaseA';
function MsiOpenDatabaseW; external msilib name 'MsiOpenDatabaseW';
function MsiOpenDatabase; external msilib name 'MsiOpenDatabase' + AWSuffix;
function MsiDatabaseImportA; external msilib name 'MsiDatabaseImportA';
function MsiDatabaseImportW; external msilib name 'MsiDatabaseImportW';
function MsiDatabaseImport; external msilib name 'MsiDatabaseImport' + AWSuffix;
function MsiDatabaseExportA; external msilib name 'MsiDatabaseExportA';
function MsiDatabaseExportW; external msilib name 'MsiDatabaseExportW';
function MsiDatabaseExport; external msilib name 'MsiDatabaseExport' + AWSuffix;
function MsiDatabaseMergeA; external msilib name 'MsiDatabaseMergeA';
function MsiDatabaseMergeW; external msilib name 'MsiDatabaseMergeW';
function MsiDatabaseMerge; external msilib name 'MsiDatabaseMerge' + AWSuffix;
function MsiDatabaseGenerateTransformA; external msilib name 'MsiDatabaseGenerateTransformA';
function MsiDatabaseGenerateTransformW; external msilib name 'MsiDatabaseGenerateTransformW';
function MsiDatabaseGenerateTransform; external msilib name 'MsiDatabaseGenerateTransform' + AWSuffix;
function MsiDatabaseApplyTransformA; external msilib name 'MsiDatabaseApplyTransformA';
function MsiDatabaseApplyTransformW; external msilib name 'MsiDatabaseApplyTransformW';
function MsiDatabaseApplyTransform; external msilib name 'MsiDatabaseApplyTransform' + AWSuffix;
function MsiCreateTransformSummaryInfoA; external msilib name 'MsiCreateTransformSummaryInfoA';
function MsiCreateTransformSummaryInfoW; external msilib name 'MsiCreateTransformSummaryInfoW';
function MsiCreateTransformSummaryInfo; external msilib name 'MsiCreateTransformSummaryInfo' + AWSuffix;
function MsiDatabaseCommit; external msilib name 'MsiDatabaseCommit';
function MsiGetDatabaseState; external msilib name 'MsiGetDatabaseState';
function MsiCreateRecord; external msilib name 'MsiCreateRecord';
function MsiRecordIsNull; external msilib name 'MsiRecordIsNull';
function MsiRecordDataSize; external msilib name 'MsiRecordDataSize';
function MsiRecordSetInteger; external msilib name 'MsiRecordSetInteger';
function MsiRecordSetStringA; external msilib name 'MsiRecordSetStringA';
function MsiRecordSetStringW; external msilib name 'MsiRecordSetStringW';
function MsiRecordSetString; external msilib name 'MsiRecordSetString' + AWSuffix;
function MsiRecordGetInteger; external msilib name 'MsiRecordGetInteger';
function MsiRecordGetStringA; external msilib name 'MsiRecordGetStringA';
function MsiRecordGetStringW; external msilib name 'MsiRecordGetStringW';
function MsiRecordGetString; external msilib name 'MsiRecordGetString' + AWSuffix;
function MsiRecordGetFieldCount; external msilib name 'MsiRecordGetFieldCount';
function MsiRecordSetStreamA; external msilib name 'MsiRecordSetStreamA';
function MsiRecordSetStreamW; external msilib name 'MsiRecordSetStreamW';
function MsiRecordSetStream; external msilib name 'MsiRecordSetStream' + AWSuffix;
function MsiRecordReadStream; external msilib name 'MsiRecordReadStream';
function MsiRecordClearData; external msilib name 'MsiRecordClearData';
function MsiGetActiveDatabase; external msilib name 'MsiGetActiveDatabase';
function MsiSetPropertyA; external msilib name 'MsiSetPropertyA';
function MsiSetPropertyW; external msilib name 'MsiSetPropertyW';
function MsiSetProperty; external msilib name 'MsiSetProperty' + AWSuffix;
function MsiGetPropertyA; external msilib name 'MsiGetPropertyA';
function MsiGetPropertyW; external msilib name 'MsiGetPropertyW';
function MsiGetProperty; external msilib name 'MsiGetProperty' + AWSuffix;
function MsiGetLanguage; external msilib name 'MsiGetLanguage';
function MsiGetMode; external msilib name 'MsiGetMode';
function MsiSetMode; external msilib name 'MsiSetMode';
function MsiFormatRecordA; external msilib name 'MsiFormatRecordA';
function MsiFormatRecordW; external msilib name 'MsiFormatRecordW';
function MsiFormatRecord; external msilib name 'MsiFormatRecord' + AWSuffix;
function MsiDoActionA; external msilib name 'MsiDoActionA';
function MsiDoActionW; external msilib name 'MsiDoActionW';
function MsiDoAction; external msilib name 'MsiDoAction' + AWSuffix;
function MsiSequenceA; external msilib name 'MsiSequenceA';
function MsiSequenceW; external msilib name 'MsiSequenceW';
function MsiSequence; external msilib name 'MsiSequence' + AWSuffix;
function MsiProcessMessage; external msilib name 'MsiProcessMessage';
function MsiEvaluateConditionA; external msilib name 'MsiEvaluateConditionA';
function MsiEvaluateConditionW; external msilib name 'MsiEvaluateConditionW';
function MsiEvaluateCondition; external msilib name 'MsiEvaluateCondition' + AWSuffix;
function MsiGetFeatureStateA; external msilib name 'MsiGetFeatureStateA';
function MsiGetFeatureStateW; external msilib name 'MsiGetFeatureStateW';
function MsiGetFeatureState; external msilib name 'MsiGetFeatureState' + AWSuffix;
function MsiSetFeatureStateA; external msilib name 'MsiSetFeatureStateA';
function MsiSetFeatureStateW; external msilib name 'MsiSetFeatureStateW';
function MsiSetFeatureState; external msilib name 'MsiSetFeatureState' + AWSuffix;
function MsiSetFeatureAttributesA; external msilib name 'MsiSetFeatureAttributesA';
function MsiSetFeatureAttributesW; external msilib name 'MsiSetFeatureAttributesW';
function MsiSetFeatureAttributes; external msilib name 'MsiSetFeatureAttributes' + AWSuffix;
function MsiGetComponentStateA; external msilib name 'MsiGetComponentStateA';
function MsiGetComponentStateW; external msilib name 'MsiGetComponentStateW';
function MsiGetComponentState; external msilib name 'MsiGetComponentState' + AWSuffix;
function MsiSetComponentStateA; external msilib name 'MsiSetComponentStateA';
function MsiSetComponentStateW; external msilib name 'MsiSetComponentStateW';
function MsiSetComponentState; external msilib name 'MsiSetComponentState' + AWSuffix;
function MsiGetFeatureCostA; external msilib name 'MsiGetFeatureCostA';
function MsiGetFeatureCostW; external msilib name 'MsiGetFeatureCostW';
function MsiGetFeatureCost; external msilib name 'MsiGetFeatureCost' + AWSuffix;
function MsiEnumComponentCostsA; external msilib name 'MsiEnumComponentCostsA';
function MsiEnumComponentCostsW; external msilib name 'MsiEnumComponentCostsW';
function MsiEnumComponentCosts; external msilib name 'MsiEnumComponentCosts' + AWSuffix;
function MsiSetInstallLevel; external msilib name 'MsiSetInstallLevel';
function MsiGetFeatureValidStatesA; external msilib name 'MsiGetFeatureValidStatesA';
function MsiGetFeatureValidStatesW; external msilib name 'MsiGetFeatureValidStatesW';
function MsiGetFeatureValidStates; external msilib name 'MsiGetFeatureValidStates' + AWSuffix;
function MsiGetSourcePathA; external msilib name 'MsiGetSourcePathA';
function MsiGetSourcePathW; external msilib name 'MsiGetSourcePathW';
function MsiGetSourcePath; external msilib name 'MsiGetSourcePath' + AWSuffix;
function MsiGetTargetPathA; external msilib name 'MsiGetTargetPathA';
function MsiGetTargetPathW; external msilib name 'MsiGetTargetPathW';
function MsiGetTargetPath; external msilib name 'MsiGetTargetPath' + AWSuffix;
function MsiSetTargetPathA; external msilib name 'MsiSetTargetPathA';
function MsiSetTargetPathW; external msilib name 'MsiSetTargetPathW';
function MsiSetTargetPath; external msilib name 'MsiSetTargetPath' + AWSuffix;
function MsiVerifyDiskSpace; external msilib name 'MsiVerifyDiskSpace';
function MsiEnableUIPreview; external msilib name 'MsiEnableUIPreview';
function MsiPreviewDialogA; external msilib name 'MsiPreviewDialogA';
function MsiPreviewDialogW; external msilib name 'MsiPreviewDialogW';
function MsiPreviewDialog; external msilib name 'MsiPreviewDialog' + AWSuffix;
function MsiPreviewBillboardA; external msilib name 'MsiPreviewBillboardA';
function MsiPreviewBillboardW; external msilib name 'MsiPreviewBillboardW';
function MsiPreviewBillboard; external msilib name 'MsiPreviewBillboard' + AWSuffix;
function MsiGetLastErrorRecord; external msilib name 'MsiGetLastErrorRecord';
{$ENDIF DYNAMIC_LINK}
{$ENDIF JWA_INTERFACESECTION}
{$IFNDEF JWA_OMIT_SECTIONS}
end.
{$ENDIF JWA_OMIT_SECTIONS}
|