[r8442]: main / trunk / platform / windows / install / oorexx.nsi Maximize Restore History

Download this file

oorexx.nsi    3800 lines (3240 with data), 146.6 kB

   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
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
;
; ooRexx Install Script, based on Modern Example Script Written by Joost Verburg
;
; This script requires 2 plugins added to your NISI installation. They need to
; be put into ${NSISDIR}\Plugins directory:
; services.dll -> http://nsis.sourceforge.net/File:Services.zip
; ooRexxProcess.dll -> http://sourceforge.net/projects/oorexx/files/ under oorexx-buildutils
;
; Run as:
; makensis /DVERSION=x.x /DNODOTVER=xx /DSRCDIR=xxx /DBINDIR=xxx /DCPU=xxx oorexx.nsi
; eg
; makensis /DVERSION=4.0.0 /DNODOTVER=400 /DSRCDIR=d:\oorexx\oorexx /DBINDIR=d:\oorexx\oorexx\win32rel /DCPU=x64 oorexx.nsi
; Note:
; oorexx.nsi MUST be in the current directory.
!define LONGNAME "Open Object Rexx" ;Long Name (for descriptions)
!define SHORTNAME "ooRexx" ;Short name (no slash) of package
!define DISPLAYICON "$INSTDIR\rexx.exe,0"
!define UNINSTALLER "uninstall.exe"
!define KEYFILE1 "rexx.exe"
!define KEYFILE2 "rxapi.dll"
; Default file extensions and ftypes
!define DefRexxExt ".rex"
!define DefRexxFType "RexxScript"
!define DefRexxHideExt ".rexg"
!define DefRexxHideFType "RexxHide"
!define DefRexxPawsExt ".rexp"
!define DefRexxPawsFType "RexxPaws"
Name "${LONGNAME} ${VERSION}"
!include "MUI2.nsh"
!include "Library.nsh"
!include "LogicLib.nsh"
!include "FileFunc.nsh"
!include "WordFunc.nsh"
!include "admin.nsh"
!include "isnt.nsh"
!include "newpath.nsh"
!include "WriteEnv.nsh"
!include "StrFunc.nsh"
; Docs for the string functions say they need to be declared before use:
${StrTok}
${StrCase}
${UnStrTok}
!define MUI_ICON "${SRCDIR}\platform\windows\rexx.ico"
!define MUI_UNICON "${SRCDIR}\platform\windows\install\uninstall.ico"
!define MUI_CUSTOMPAGECOMMANDS
!define MUI_WELCOMEFINISHPAGE_BITMAP "orange.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "orange-uninstall.bmp"
!define MUI_LICENSEPAGE
!define MUI_COMPONENTSPAGE
!define MUI_DIRECTORYPAGE
!define MUI_FINISHPAGE
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_ABORTWARNING
!define MUI_UNINSTALLER
!define MUI_UNCONFIRMPAGE
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
!define MUI_CUSTOMFUNCTION_UNABORT un.onCancelButton
!define UninstLog "uninstall.log"
Var UninstLog
!define SHACF_FILESYSTEM 1 ; For SHAutoComplete()
!macro AddItem Path
FileWrite $UninstLog "${Path}$\r$\n"
!macroend
!define AddItem "!insertmacro AddItem"
!macro File FilePath FileName
FileWrite $UninstLog "$OUTDIR\${FileName}$\r$\n"
File "${FilePath}${FileName}"
!macroend
!define File "!insertmacro File"
!macro CreateDirectory Path
CreateDirectory "${Path}"
FileWrite $UninstLog "${Path}$\r$\n"
!macroend
!define CreateDirectory "!insertmacro CreateDirectory"
!macro SetOutPath Path
SetOutPath "${Path}"
FileWrite $UninstLog "${Path}$\r$\n"
!macroend
!define SetOutPath "!insertmacro SetOutPath"
!macro WriteUninstaller Path
WriteUninstaller "${Path}"
FileWrite $UninstLog "${Path}$\r$\n"
!macroend
!define WriteUninstaller "!insertmacro WriteUninstaller"
;--------------------------------
;Configuration
;General
OutFile "${SHORTNAME}${NODOTVER}-${CPU}.exe"
ShowInstdetails show
ShowUninstDetails show
SetOverwrite on
SetPluginUnload alwaysoff
RequestExecutionLevel admin
InstallDir "$PROGRAMFILES\${SHORTNAME}"
;InstType "Defualt"
;InstType "Simple"
;InstType /COMPONENTSONLYONCUSTOM
;--------------------------------
;Pages
/* Installer pages */
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\CPLv1.0.txt"
Page custom Uninstall_Old_ooRexx_page Uninstall_Old_ooRexx_Leave
Page custom Uninstall_Type_page Uninstall_Type_Leave
Page custom Ok_Stop_RxAPI_page Ok_Stop_RxAPI_leave
!define MUI_PAGE_CUSTOMFUNCTION_PRE Components_Page_pre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW Components_Page_show
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_CUSTOMFUNCTION_PRE Directory_Page_pre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW Directory_Page_show
!insertmacro MUI_PAGE_DIRECTORY
Page custom Rxapi_Options_page Rxapi_Options_leave
Page custom File_Associations_page File_Associations_leave
Page custom SendTo_Items_page SendTo_Items_leave
Page custom Associate_rexx_page Associate_rexx_leave
Page custom Associate_otherExes_page Associate_otherExes_leave
Page custom Confirm_page
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
/* Uninstaller pages */
!insertmacro MUI_UNPAGE_WELCOME
UninstPage custom un.Ok_Stop_RxAPI_page un.Ok_Stop_RxAPI_leave
UninstPage custom un.Uninstall_By_Log_page un.Uninstall_By_Log_leave
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.Confirm_Page_pre
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Language
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Reserved files
;--------------------------------
; Variables
Var IsAdminUser ; is the installer being run by an admin: true / false
Var RxapiIsService ; is rxapi installed as a service: true / false
Var RxapiIsRunning ; is rxapi running: true / false
;
Var RegVal_uninstallString ; uninstall string (program) found in regsitry
Var RegVal_uninstallLocation ; location of uninstall program found in registry
Var RegVal_uninstallVersion ; Version / level of uninstaller program. This only exists at 410 or greater
Var RegVal_rexxAssociation ; File association string for rexx.exe (.ext / ftype - i.e. .rex RexxScript)
Var RegVal_rexxEditor ; ... and editor file name
Var RegVal_rexxHideAssociation ; File association string for rexxhide.exe (.ext / ftype - i.e. .rexg RexxHide)
Var RegVal_rexxPawsAssociation ; File association string for rexxpaws.exe (.ext / ftype - i.e. .rexp RexxPaws)
Var RegVal_sendTo_rexx ; Add / don't add Send To Rexx item
Var RegVal_sendTo_rexxHide ; Add / don't add Send To rexxpaws item
Var RegVal_sendTo_rexxPaws ; Add / don't add Send To rexxhide item
Var AssociationProgramName ; Executable being associated (i.e rexxpaws.exe, rexx.exe, etc..)
Var AssociationText ; Descriptive text that goes in registry (i.e. ooRexx Rexx GUI Program)
Var AssociationEditor ; File path name of editor that goes in registry (i.e. C:\Windows\system32\NotePad.exe)
Var PreviousVersionInstalled ; A previous version is installed true / false
Var DoUpgrade ; try to do an upgrade install true / false
Var DoUpgradeQuick ; don't show options pages with diasabled controls true / false
Var UpgradeTypeAvailable ; Level of uninstaller sufficient for upgrade type true / false
; Dialog variables
Var Dialog
Var Label_One
Var Label_Two
Var Uninstall_Previous_CK
Var Force_Install_CK
Var Do_Upgrade_Type_CK
Var Do_Upgrade_Type_CK_state
Var Do_Upgrade_Quick_CK
Var Do_Upgrade_Quick_CK_state
Var RxAPI_Install_Service_CK
Var RxAPI_Start_CK
Var RxAPIInstallService
Var RxAPIStartService
Var StopRxAPI_CK
Var StopRxAPI_CK_State
Var Use_File_Associations_CK
Var Use_File_Associations_CK_state
Var SendTo_rexx_CK
Var SendTo_rexx_CK_state
Var SendTo_rexxHide_CK
Var SendTo_rexxHide_CK_state
Var SendTo_rexxPaws_CK
Var SendTo_rexxPaws_CK_state
; rexx.exe file associations page controls
Var Rexx_editor_EDIT
Var Rexx_editor_text
Var Rexx_editor_PB
Var Associate_rexx_CK
Var Associate_rexx_CK_state
Var Rexx_ext_EDIT
Var Rexx_ext_text
Var Rexx_ftype_EDIT
Var Rexx_ftype_text
; rexxhide.exe file associations
Var Associate_rexxhide_CK
Var Associate_rexxhide_CK_state
Var RexxHide_ext_EDIT
Var RexxHide_ext_text
Var RexxHide_ftype_EDIT
Var RexxHide_ftype_text
; rexxpaws.exe file associations
Var Associate_rexxpaws_CK
Var Associate_rexxpaws_CK_state
Var RexxPaws_ext_EDIT
Var RexxPaws_ext_text
Var RexxPaws_ftype_EDIT
Var RexxPaws_ftype_text
; Uninstall variables
Var InStopRxapiPage
Var LogFileExists
Var Delete_ooRexx_Tree_CK
Var DeleteWholeTree
;===============================================================================
;Installer Sections
;===============================================================================
;-------------------------------------------------------------------------------
; Hidden section to open the log file
Section -openlogfile
CreateDirectory "$INSTDIR"
IfFileExists "$INSTDIR\${UninstLog}" +3
FileOpen $UninstLog "$INSTDIR\${UninstLog}" w
Goto +4
SetFileAttributes "$INSTDIR\${UninstLog}" NORMAL
FileOpen $UninstLog "$INSTDIR\${UninstLog}" a
FileSeek $UninstLog 0 END
SectionEnd
;-------------------------------------------------------------------------------
; Core components
Section "${LONGNAME} Core (required)" SecMain
SectionIn 1 RO
; Set output path to the installation directory.
${SetOutPath} $INSTDIR
; Distribution executables...
${File} "${BINDIR}\" "rexx.exe"
${File} "${BINDIR}\" "rexx.img"
${File} "${BINDIR}\" "rexxc.exe"
${File} "${BINDIR}\" "rxsubcom.exe"
${File} "${BINDIR}\" "rxqueue.exe"
${File} "${BINDIR}\" "rxapi.exe"
${File} "${BINDIR}\" "rexxhide.exe"
${File} "${BINDIR}\" "rexxpaws.exe"
; Distribution DLLs...
${File} "${BINDIR}\" "rexx.dll"
${File} "${BINDIR}\" "rexxapi.dll"
${File} "${BINDIR}\" "rexxutil.dll"
${File} "${BINDIR}\" "rxmath.dll"
${File} "${BINDIR}\" "rxsock.dll"
${File} "${BINDIR}\" "rxregexp.dll"
${File} "${BINDIR}\" "rxwinsys.dll"
${File} "${BINDIR}\" "oodialog.dll"
${File} "${BINDIR}\" "orexxole.dll"
${File} "${BINDIR}\" "hostemu.dll"
; CLASS files...
${File} "${BINDIR}\" "winsystm.cls"
${File} "${BINDIR}\" "socket.cls"
${File} "${BINDIR}\" "streamsocket.cls"
${File} "${BINDIR}\" "mime.cls"
${File} "${BINDIR}\" "smtp.cls"
${File} "${BINDIR}\" "rxregexp.cls"
${File} "${BINDIR}\" "rxftp.cls"
${File} "${BINDIR}\" "csvStream.cls"
${File} "${BINDIR}\" "orexxole.cls"
${File} "${BINDIR}\" "oodialog.cls"
${File} "${BINDIR}\" "oodwin32.cls"
${File} "${BINDIR}\" "oodplain.cls"
; rexxtry is technically a sample, but it is heavily used, so add it to
; the executables. The same thing for the GUI version.
${File} "${SRCDIR}\samples\" "rexxtry.rex"
${File} "${SRCDIR}\samples\windows\oodialog\ooRexxTry\" "ooRexxTry.rex"
; Other files...
${File} "${SRCDIR}\platform\windows\" "rexx.ico"
${File} "${SRCDIR}\" "CPLv1.0.txt"
; readmes
${SetOutPath} $INSTDIR\doc
${File} "${SRCDIR}\doc\" "readme.pdf"
File /oname=CHANGES.txt "${SRCDIR}\CHANGES"
File /oname=ReleaseNotes.txt "${SRCDIR}\ReleaseNotes"
${AddItem} $INSTDIR\doc\CHANGES.txt
${AddItem} $INSTDIR\doc\ReleaseNotes.txt
; Set output path to the installation directory just in case
SetOutPath $INSTDIR
/* Comment out orxscrpt stuff temporarily
; orxscrpt.dll needs to be registered
!insertmacro InstallLib REGDLL NOTSHARED REBOOT_PROTECTED "${BINDIR}\orxscrpt.dll" "$INSTDIR\orxscrpt.dll" "$INSTDIR"
; Stop rxapi.exe (again!) the registration process starts rxapi.exe.
ooRexxProcess::killProcess "rxapi.exe"
*/
; Add the Start Menu folder and start adding the items.
${CreateDirectory} "$SMPROGRAMS\${LONGNAME}"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Try Rexx.lnk" "$INSTDIR\rexx.exe" '"$INSTDIR\rexxtry.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\Try Rexx.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Try Rexx (GUI).lnk" "$INSTDIR\rexx.exe" '"$INSTDIR\ooRexxTry.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\Try Rexx (GUI).lnk"
${CreateDirectory} "$SMPROGRAMS\${LONGNAME}\Documentation"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx README.lnk" "$INSTDIR\doc\readme.pdf" "" "$INSTDIR\doc\readme.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx README.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx CHANGES.lnk" "$INSTDIR\doc\CHANGES.txt" "" "$INSTDIR\doc\CHANGES.txt" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx CHANGES.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx ReleaseNotes.lnk" "$INSTDIR\doc\ReleaseNotes.txt" "" "$INSTDIR\doc\ReleaseNotes.txt" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx ReleaseNotes.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Uninstall ${SHORTNAME}.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Uninstall ${SHORTNAME}.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\LICENSE.lnk" "$INSTDIR\CPLv1.0.txt" "" "$INSTDIR\CPLv1.0.txt" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\LICENSE.lnk"
WriteINIStr "$SMPROGRAMS\${LONGNAME}\ooRexx Home Page.url" "InternetShortcut" "URL" "http://www.oorexx.org/"
${AddItem} "$SMPROGRAMS\${LONGNAME}\ooRexx Home Page.url"
; If we are doing an upgrade, these settings are all left however they were.
${if} $DoUpgrade == 'false'
; Maybe create Send To items.
Call DoSendToItems
; Do the file associations, like associate .rex with ooRexx (REXXScript).
; DoFileAssociations needs to run before DoEnvVariagles.
Call DoFileAssociations
; Set the environment variables, PATH, REXX_HOME, etc..
Call DoEnvVariables
; If an administrator, install rxapi as a service depending on what the user
; selected.
${if} $IsAdminUser == "true"
Call InstallRxapi
${endif}
${else}
; We are doing an upgrade, but if rxapi was installed as a service
; previously, the user has the choice of starting it.
${if} $RxapiIsService == 'true'
Call StartRxapi
${endif}
${endif}
; Write the uninstall keys. Note that the uninstaller always deletes these
; keys, even if doing an upgrade. So we need to still write the file
; assoication keys. For an upgrade install, these will be exactly what we
; read in on init.
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "InstallLocation" '"$INSTDIR"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "DisplayName" "${LONGNAME}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "DisplayIcon" "${DISPLAYICON}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "HelpLink" "http://www.rexxla.org/support.html"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "URLUpdateInfo" "http://sourceforge.net/project/showfiles.php?group_id=119701"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "URLInfoAbout" "http://www.rexxla.org/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "DisplayVersion" "${VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "Publisher" "Rexx Language Association"
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UninstallString" '"$INSTDIR\${UNINSTALLER}"'
WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UnInstallLocation" "$INSTDIR" ; dont quote it
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UninstallVersion" "${VERSION}"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "NoModify" 0x00000001
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "NoRepair" 0x00000001
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxAssociation" $RegVal_rexxAssociation
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxEditor" $RegVal_rexxEditor
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxHideAssociation" $RegVal_rexxHideAssociation
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxPawsAssociation" $RegVal_rexxPawsAssociation
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexx" $RegVal_sendTo_rexx
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexxHide" $RegVal_sendTo_rexxHide
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexxPaws" $RegVal_sendTo_rexxPaws
${WriteUninstaller} "$INSTDIR\${UNINSTALLER}"
SectionEnd
;-------------------------------------------------------------------------------
; Sample programs
Section "${LONGNAME} Samples" SecDemo
DetailPrint "********** Samples **********"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples
${File} "${SRCDIR}\samples\windows\" "0ReadMe.first"
${File} "${SRCDIR}\samples\" "rexxcps.rex"
${File} "${SRCDIR}\samples\" "ccreply.rex"
${File} "${SRCDIR}\samples\" "complex.rex"
${File} "${SRCDIR}\samples\" "factor.rex"
${File} "${SRCDIR}\samples\" "greply.rex"
${File} "${SRCDIR}\samples\" "guess.rex"
${File} "${SRCDIR}\samples\" "ktguard.rex"
${File} "${SRCDIR}\samples\" "makestring.rex"
${File} "${SRCDIR}\samples\" "month.rex"
${File} "${SRCDIR}\samples\" "philfork.rex"
${File} "${SRCDIR}\samples\" "pipe.rex"
${File} "${SRCDIR}\samples\" "properties.rex"
${File} "${SRCDIR}\samples\" "qdate.rex"
${File} "${SRCDIR}\samples\" "qtime.rex"
${File} "${SRCDIR}\samples\" "scclient.rex"
${File} "${SRCDIR}\samples\" "scserver.rex"
${File} "${SRCDIR}\samples\" "semcls.rex"
${File} "${SRCDIR}\samples\" "sfclient.rex"
${File} "${SRCDIR}\samples\" "sfserver.rex"
${File} "${SRCDIR}\samples\" "stack.rex"
${File} "${SRCDIR}\samples\" "usecomp.rex"
${File} "${SRCDIR}\samples\" "usepipe.rex"
${File} "${SRCDIR}\samples\windows\rexutils\" "drives.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\misc
${File} "${SRCDIR}\samples\windows\misc\" "fileDrop.empty"
${File} "${SRCDIR}\samples\windows\misc\" "fileDrop.input"
${File} "${SRCDIR}\samples\windows\misc\" "fileDrop.readMe"
${File} "${SRCDIR}\samples\windows\misc\" "fileDrop.rex"
${CreateDirectory} $INSTDIR\samples\ole
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\ole
; Distribution files...
${File} "${SRCDIR}\samples\windows\ole\" "ReadMe.first"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\ole\adsi
; Distribution files...
${File} "${SRCDIR}\samples\windows\ole\adsi\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\ole\apps
; Distribution files...
${File} "${SRCDIR}\samples\windows\ole\apps\" "MSAccessDemo.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "oleUtils.frm"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp01.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp02.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp03.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp04.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp05.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp06.mwp"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp06.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp07.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp08.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp09.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp10.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp11.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp12.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp13.rex"
${File} "${SRCDIR}\samples\windows\ole\apps\" "samp14.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\ole\methinfo
; Distribution files...
${File} "${SRCDIR}\samples\windows\ole\methinfo\" "*.rex"
${File} "${SRCDIR}\samples\windows\ole\methinfo\" "*.cls"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\ole\wmi
; Distribution files...
${File} "${SRCDIR}\samples\windows\ole\wmi\" "*.rex"
;;; Temporarily block out the orxscrpt samples
;;; ; Set output path to the installation directory.
;;; SetOutPath $INSTDIR\samples\wsh
;;; ; Distribution files...
;;; ${File} "${SRCDIR}\samples\windows\wsh\" "*.rex"
;;; ${File} "${SRCDIR}\samples\windows\wsh\" "*.htm"
;;; ${File} "${SRCDIR}\samples\windows\wsh\" "*.wsf"
;;; ${File} "${SRCDIR}\samples\windows\wsh\" "*.wsc"
; Create start menu shortcuts
SetOutPath $INSTDIR\samples
${CreateDirectory} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\RexxCPS.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\rexxcps.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\RexxCPS.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Quick Date.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\qdate.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Quick Date.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Quick Time.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\qtime.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Quick Time.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Display Drive Info.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\drives.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\Display Drive Info.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\MS Access.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\ole\apps\MSAccessDemo.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\MS Access.lnk"
;
; OOdialog samples
;
${SetOutPath} $INSTDIR\samples\oodialog
; Distribution files...
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "oodialog.ico"
${File} "${SRCDIR}\samples\windows\oodialog\" "AnimalGame.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "calculator.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "dlgAreaUDemo.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "dlgAreaUDemoThree.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "dlgAreaUDemoTwo.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "editrex.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "ftyperex.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "GUI_Template.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oobandit.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oobmpvu.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oodpbar.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oodraw.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oodtree.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oograph.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oophil.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oostddlg.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oostdfct.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oovideo.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oowalk2.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "oowalker.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "sample.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "samplesSetup.rex"
${File} "${SRCDIR}\samples\windows\oodialog\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\" "*.inp"
${File} "${SRCDIR}\samples\windows\oodialog\" "*.ico"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\bmp
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "bigpiece.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "blank.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "blanks.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake1.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake10.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake11.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake3.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake4.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake5.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake6.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake7.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake8.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cake9.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "cakepiec.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "chihuahu.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "eleph2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "fork.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "goat.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "handfkle.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "handfkri.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "handleft.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "handrite.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "horse.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "install.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "install2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "kanguru.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "moose.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "oodtree.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "phileat.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "phileat2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "phileata.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "philouch.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "philphil.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "philslep.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "philtest.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "philwait.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "rhinoce.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2anim.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2arch.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2backg.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2input.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2jack.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2list.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2mov.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2philf.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2prog.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2prop.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2scroll.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2tree.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "s2walker.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "sealion.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "tiger.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig1.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig3.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig4.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig5.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig6.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig7.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\bmp\" "wlkfig8.bmp"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\controls
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\controls\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\controls\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\controls\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\controls\" "*.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\examples
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\examples\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\examples\" "*.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\examples\resources
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\examples\resources\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\examples\resources\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\examples\resources\" "*.rc"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\menus
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\menus\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\menus\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\menus\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\menus\" "*.rc"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\mouse
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\mouse\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\mouse\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\mouse\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\mouse\" "*.cur"
${File} "${SRCDIR}\samples\windows\oodialog\mouse\" "*.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\oleinfo
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\oleinfo\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\oleinfo\" "*.txt"
${File} "${SRCDIR}\samples\windows\oodialog\oleinfo\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\oleinfo\" "*.rc"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\ooRexxTry
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\ooRexxTry\" "ooRexxTry.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\ooRexxTry\doc
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\ooRexxTry\doc\" "ooRexxTry.pdf"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\propertySheet.tabs
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "DirectoryManager.cls"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "oodListViews.rex"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "PropertySheetDemo.rex"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "TabDemo.rex"
; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "TabOwnerDemo.rex" Don't include in 4.2.0
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "ticketWizard.rex"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\" "UserTabDemo.rex"
${SetOutPath} $INSTDIR\samples\oodialog\propertySheet.tabs\rc
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "oodListViews1.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "oodListViews2.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "oodListViews.h"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "oodListViews.rc"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "propertySheetDemoListView.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "propertySheetDemoTab.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "propertySheetDemoTreeView.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "PropertySheetDemo.h"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "PropertySheetDemo.dll"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "PropertySheetDemo.rc"
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemoListView.bmp" Don't include in 4.2.0
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemoTab.bmp" Don't include in 4.2.0
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemoTreeView.bmp" Don't include in 4.2.0
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemo.dll" Don't include in 4.2.0
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemo.h" Don't include in 4.2.o
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "TabOwnerDemo.rc" Don't include in 4.2.o
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizard.h"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizard.rc"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizardMovie.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizardRexxLA.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizardTheater.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "ticketWizardTicket.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "UserTabDemo.h"
;; ${File} "${SRCDIR}\samples\windows\oodialog\propertySheet.tabs\rc\" "UserTabDemo.rc" Not included in distribution, maybe in the future.
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\rc
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "AnimalGame.h"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "AnimalGame.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "calculator.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "exercise.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "ldvideo.h"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "ldvideo.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "oodpbar.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "oodtree.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "oodtreeNewItem.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "oophil1.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "oophil2.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "sample.rc"
${File} "${SRCDIR}\samples\windows\oodialog\rc\" "walker.rc"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\res
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\res\" "AnimalGame.dll"
${File} "${SRCDIR}\samples\windows\oodialog\res\" "oowalk2.dll"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\simple
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\simple\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\simple\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\simple\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\simple\" "*.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\sysinfo
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\sysinfo\" "sysInfo.rex"
${File} "${SRCDIR}\samples\windows\oodialog\sysinfo\" "sysInfo.rc"
${File} "${SRCDIR}\samples\windows\oodialog\sysinfo\" "sysInfo.h"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\source
; Distribution files...
${File} "${BINDIR}\" "oodialog.cls"
${File} "${BINDIR}\" "oodwin32.cls"
${File} "${BINDIR}\" "oodplain.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "0_READ_ME_FIRST.txt"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "build_ooDialog_cls.rex"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "AnimatedButton.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "BaseDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "ControlDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "DeprecatedClasses.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "DialogControls.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "DialogExtensions.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "DynamicDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "EventNotification.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "Menu.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "PlainBaseDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "RcDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "ResDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "UserDialog.cls"
${File} "${SRCDIR}\extensions\platform\windows\oodialog\" "UtilityClasses.cls"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\tutorial
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\tutorial\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\tutorial\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\tutorial\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\tutorial\" "*.h"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\" "ReadMe.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise02
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise02\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise03
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise03\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise04
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise04\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise04\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise04\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise05
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise05\res
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\res\" "res.mak"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\res\" "ProductView.dll"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise05\res\" "ProductIcon.bmp"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Customer
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Customer\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Customer\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Customer\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Customer\bmp
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Customer\bmp\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Customer\bmp\" "*.ico"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Order
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Order\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Order\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Order\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Order\bmp
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Order\bmp\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Order\bmp\" "*.ico"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\OrderMgr
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\OrderMgr\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\OrderMgr\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\OrderMgr\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Product
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\" "*.rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Exercise06\Product\res
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\res\" "res.mak"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\res\" "*.dll"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\res\" "*.bmp"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Exercise06\Product\res\" "*.ico"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Samples
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\" "ReadMe.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Samples\DlgData
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\DlgData\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\DlgData\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\DlgData\" "*rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Samples\DlgData\res
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\DlgData\res\" "res.mak"
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\DlgData\res\" "ASimpleDialog.dll"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Samples\Popups
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Samples\Popups\" "*rex"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\userGuide\exercises\Support
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\userGuide\exercises\Support\" "*.cls"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\wav
; Distribution files...
${File} "${SRCDIR}\samples\windows\oodialog\wav\" "*.wav"
${File} "${SRCDIR}\samples\windows\oodialog\wav\" "*.txt"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\samples\oodialog\winsystem
${File} "${SRCDIR}\samples\windows\oodialog\winsystem\" "*.rex"
${File} "${SRCDIR}\samples\windows\oodialog\winsystem\" "*.rc"
${File} "${SRCDIR}\samples\windows\oodialog\winsystem\" "*.h"
${File} "${SRCDIR}\samples\windows\oodialog\winsystem\" "*.frm"
; Create start menu shortcuts
SetOutPath $INSTDIR\samples\oodialog
${CreateDirectory} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Calculator.lnk" "$INSTDIR\rexxhide.exe" '"$INSTDIR\samples\oodialog\calculator.rex"' "$INSTDIR\samples\oodialog\oodialog.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Calculator.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Change Editor.lnk" "$INSTDIR\rexxhide.exe" '"$INSTDIR\samples\oodialog\editrex.rex"' "$INSTDIR\samples\oodialog\oodialog.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Change Editor.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Display Event Log.lnk" "$INSTDIR\rexxpaws.exe" '"$INSTDIR\samples\oodialog\winsystem\eventlog.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Display Event Log.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\FTYPE Changer.lnk" "$INSTDIR\rexxhide.exe" '"$INSTDIR\samples\oodialog\ftyperex.rex"' "$INSTDIR\samples\oodialog\oodialog.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\FTYPE Changer.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Samples.lnk" "$INSTDIR\rexxhide.exe" '"$INSTDIR\samples\oodialog\sample.rex"' "$INSTDIR\samples\oodialog\oodialog.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Samples.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Windows Manager.lnk" "$INSTDIR\rexxhide.exe" '"$INSTDIR\samples\oodialog\winsystem\usewmgr.rex"' "$INSTDIR\rexx.exe"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\ooDialog\Windows Manager.lnk"
SectionEnd
;------------------------------------------------------------------------
; Development tools
Section "${LONGNAME} Development Kit" SecDev
DetailPrint "********** Development Kit **********"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\api
; Distribution files...
${File} "${BINDIR}\" "rexx.lib"
${File} "${BINDIR}\" "rexxapi.lib"
${File} "${SRCDIR}\api\" "oorexxapi.h"
${File} "${SRCDIR}\api\" "rexx.h"
${File} "${SRCDIR}\api\" "oorexxerrors.h"
${File} "${SRCDIR}\api\" "rexxapidefs.h"
${File} "${SRCDIR}\api\platform\windows\" "rexxapitypes.h"
${File} "${SRCDIR}\api\platform\windows\" "rexxplatformapis.h"
${File} "${SRCDIR}\api\platform\windows\" "rexxplatformdefs.h"
;
; API samples
;
${SetOutPath} $INSTDIR\samples\api
${File} "${SRCDIR}\samples\windows\api\" "readme.txt"
; Set output path to the installation directory for callrxnt.
${SetOutPath} $INSTDIR\samples\api\callrxnt
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\callrxnt\" "backward.fnc"
${File} "${SRCDIR}\samples\windows\api\callrxnt\" "callrxnt.c"
${File} "${SRCDIR}\samples\windows\api\callrxnt\" "callrxnt.ico"
${File} "${SRCDIR}\samples\windows\api\callrxnt\" "callrxnt.mak"
${File} "${SRCDIR}\samples\windows\api\callrxnt\" "callrxnt.exe"
; Set output path to the installation directory for callrxwn.
${SetOutPath} $INSTDIR\samples\api\callrxwn
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "backward.fnc"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.c"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.h"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.ico"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.mak"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.exe"
${File} "${SRCDIR}\samples\windows\api\callrxwn\" "callrxwn.rc"
; Set output path to the installation directory for rexxexit.
${SetOutPath} $INSTDIR\samples\api\rexxexit
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\rexxexit\" "rexxexit.c"
${File} "${SRCDIR}\samples\windows\api\rexxexit\" "rexxexit.ico"
${File} "${SRCDIR}\samples\windows\api\rexxexit\" "rexxexit.mak"
${File} "${SRCDIR}\samples\windows\api\rexxexit\" "rexxexit.exe"
${File} "${SRCDIR}\samples\windows\api\rexxexit\" "testRexxExit"
; Set output path to the installation directory the wpipe examples.
${SetOutPath} $INSTDIR\samples\api\wpipe
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\wpipe\" "readme.txt"
; Set output path to the installation directory for wpipe 1.
${SetOutPath} $INSTDIR\samples\api\wpipe\wpipe1
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe1\" "rexxapi1.c"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe1\" "rexxapi1.def"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe1\" "apitest1.rex"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe1\" "rexxapi1.mak"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe1\" "rexxapi1.dll"
; Set output path to the installation directory for wpipe 2.
${SetOutPath} $INSTDIR\samples\api\wpipe\wpipe2
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe2\" "rexxapi2.c"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe2\" "rexxapi2.def"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe2\" "apitest2.rex"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe2\" "rexxapi2.mak"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe2\" "rexxapi2.dll"
; Set output path to the installation directory for wpipe 3.
${SetOutPath} $INSTDIR\samples\api\wpipe\wpipe3
; Distribution files...
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe3\" "rexxapi3.c"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe3\" "rexxapi3.def"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe3\" "apitest3.rex"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe3\" "rexxapi3.mak"
${File} "${SRCDIR}\samples\windows\api\wpipe\wpipe3\" "rexxapi3.dll"
;
; C++ API samples
;
${SetOutPath} $INSTDIR\samples\native.api
${File} "${SRCDIR}\samples\native.api\" "ReadMe.txt"
; Set output path to the installation directory for callexample.
${SetOutPath} $INSTDIR\samples\native.api\call.example
; Distribution files...
${File} "${SRCDIR}\samples\native.api\call.example\" "backward.fnc"
${File} "${SRCDIR}\samples\native.api\call.example\" "HelloWorld.rex"
${File} "${SRCDIR}\samples\native.api\call.example\" "Makefile.windows"
${File} "${SRCDIR}\samples\native.api\call.example\" "ReadMe.txt"
${File} "${SRCDIR}\samples\native.api\call.example\" "runRexxProgram.cpp"
${File} "${SRCDIR}\samples\native.api\call.example\" "stackOverflow.cpp"
${File} "${SRCDIR}\samples\native.api\call.example\" "tooRecursiveTrapped.rex"
${File} "${SRCDIR}\samples\native.api\call.example\" "tooRecursiveUnhandled.rex"
;
; Create start menu shortcuts
;
; All three of these examples have files that the executable needs to locate
; in the same directory. The short cut menu item has to have the 'Start in:'
; field set to the directory of the executable. The 'SetOutPath' command is
; what controls that.
;
${CreateDirectory} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API"
SetOutPath $INSTDIR\samples\api\callrxnt
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx in a Console.lnk" "$INSTDIR\samples\api\callrxnt\callrxnt.exe" "" "$INSTDIR\samples\api\callrxnt\callrxnt.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx in a Console.lnk"
SetOutPath $INSTDIR\samples\api\callrxwn
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx in a Window.lnk" "$INSTDIR\samples\api\callrxwn\callrxwn.exe" "" "$INSTDIR\samples\api\callrxwn\callrxwn.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx in a Window.lnk"
SetOutPath $INSTDIR\samples\api\rexxexit
CreateShortCut "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx with Exits.lnk" "$INSTDIR\samples\api\rexxexit\rexxexit.exe" 'testRexxExit "189 8"' "$INSTDIR\samples\api\rexxexit\rexxexit.ico"
${AddItem} "$SMPROGRAMS\${LONGNAME}\${SHORTNAME} Samples\API\Call ooRexx with Exits.lnk"
SectionEnd
;------------------------------------------------------------------------
; Documentation
Section "${LONGNAME} Documentation" SecDoc
DetailPrint "********** Documentation **********"
; Set output path to the installation directory.
${SetOutPath} $INSTDIR\doc
${File} "${SRCDIR}\doc\" "rexxpg.pdf"
${File} "${SRCDIR}\doc\" "rexxref.pdf"
${File} "${SRCDIR}\doc\" "rxmath.pdf"
${File} "${SRCDIR}\doc\" "rxsock.pdf"
${File} "${SRCDIR}\doc\" "rxftp.pdf"
${File} "${SRCDIR}\doc\" "oodialog.pdf"
${File} "${SRCDIR}\doc\" "oodguide.pdf"
${File} "${SRCDIR}\doc\" "rexxextensions.pdf"
${File} "${SRCDIR}\doc\" "unixextensions.pdf"
${File} "${SRCDIR}\doc\" "winextensions.pdf"
${File} "${SRCDIR}\samples\windows\oodialog\ooRexxTry\doc\" "ooRexxTry.pdf"
; Create start menu shortcuts
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Reference.lnk" "$INSTDIR\doc\rexxref.pdf" "" "$INSTDIR\doc\rexxref.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Programming Guide.lnk" "$INSTDIR\doc\rexxpg.pdf" "" "$INSTDIR\doc\rexxpg.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Programming Guide.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Mathematical Functions Reference.lnk" "$INSTDIR\doc\rxmath.pdf" "" "$INSTDIR\doc\rxmath.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Mathematical Functions Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx TCP-IP Sockets Functions Reference.lnk" "$INSTDIR\doc\rxsock.pdf" "" "$INSTDIR\doc\rxsock.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx TCP-IP Sockets Functions Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx rxFTP Class Reference.lnk" "$INSTDIR\doc\rxftp.pdf" "" "$INSTDIR\doc\rxftp.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx rxFTP Class Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooDialog Reference.lnk" "$INSTDIR\doc\oodialog.pdf" "" "$INSTDIR\doc\oodialog.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooDialog Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooDialog User Guide.lnk" "$INSTDIR\doc\oodguide.pdf" "" "$INSTDIR\doc\oodguide.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooDialog User Guide.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Rexx Extensions Reference.lnk" "$INSTDIR\doc\rexxextensions.pdf" "" "$INSTDIR\doc\rexxextensions.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Windows Extensions Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Unix Extensions Reference.lnk" "$INSTDIR\doc\unixextensions.pdf" "" "$INSTDIR\doc\unixextensions.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Windows Extensions Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Windows Extensions Reference.lnk" "$INSTDIR\doc\winextensions.pdf" "" "$INSTDIR\doc\winextensions.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexx Windows Extensions Reference.lnk"
CreateShortCut "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexxTry Reference.lnk" "$INSTDIR\doc\ooRexxTry.pdf" "" "$INSTDIR\doc\ooRexxTry.pdf" 0
${AddItem} "$SMPROGRAMS\${LONGNAME}\Documentation\ooRexxTry Reference.lnk"
SectionEnd
;-------------------------------------------------------------------------------
; Hidden section to close the log file
Section -closelogfile
FileClose $UninstLog
SetFileAttributes "$INSTDIR\${UninstLog}" READONLY|SYSTEM|HIDDEN
SectionEnd
;===============================================================================
;Installer Functions
;===============================================================================
/** .onInit() Call back function
*
* Called by the installer before any page is shown. We use it to check for a
* previously installed ooRexx and to set execution variables.
*
* Note that if we end up doing an upgrade type of install,
* RegVal_uninstallLocation needs to be copied to the INSTDIR variable so that
* we install in the same place as previous.
*/
Function .onInit
${if} ${CPU} == "x86_64"
strcpy $INSTDIR "$PROGRAMFILES64\${SHORTNAME}"
${endif}
;
; Install as All Users if an admin
;
Call IsUserAdmin
Pop $IsAdminUser
${if} $IsAdminUser == "true"
SetShellVarContext all
StrCpy $RxAPIInstallService ${BST_CHECKED}
StrCpy $RxAPIStartService ${BST_CHECKED}
${else}
StrCpy $RxAPIInstallService ${BST_UNCHECKED}
StrCpy $RxAPIStartService ${BST_UNCHECKED}
${endif}
ReadRegStr $RegVal_uninstallString HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UninstallString"
ReadRegStr $RegVal_uninstallLocation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UnInstallLocation"
ReadRegStr $RegVal_uninstallVersion HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "UninstallVersion"
ReadRegStr $RegVal_rexxEditor HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxEditor"
ReadRegStr $RegVal_rexxAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxAssociation"
ReadRegStr $RegVal_rexxHideAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxHideAssociation"
ReadRegStr $RegVal_rexxPawsAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxPawsAssociation"
ReadRegStr $RegVal_sendTo_rexx HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexx"
ReadRegStr $RegVal_sendTo_rexxHide HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexxHide"
ReadRegStr $RegVal_sendTo_rexxPaws HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "SendToRexxPaws"
; Check for previous version and if the upgrade type of uninstall is available.
Call CheckInstalledStatus
; Set the send to dialog control variables.
Call SetSendToVars
; Set all the dialog control variables for doing file associations to their
; correct starting values.
Call SetFileAssociationVars
; We never do an upgrade type of install unless the user requests it. But, we
; set the default for doing it quick to true.
StrCpy $DoUpgrade 'false'
StrCpy $Do_Upgrade_Type_CK_state ${BST_UNCHECKED}
StrCpy $DoUpgradeQuick 'true'
StrCpy $Do_Upgrade_Quick_CK_state ${BST_CHECKED}
FunctionEnd
/** Uninstall_Old_ooRexx_page() Custom page function.
*
* This page is show when a previously installed version ooRexx is detected. It
* explains to the user that it is necessary to uninstall the previous version
* and forces the user to check a secondary check box to "force" the install to
* continue without uninstalling the previous version.
*
* The intent is to make it difficult to not do the uninstall and ensure that
* the user knows installing over the top of an existing install is not
* supported.
*/
Function Uninstall_Old_ooRexx_page
/* Skip this page if no previous version is present */
${if} $PreviousVersionInstalled == "false"
Abort
${endif}
!insertmacro MUI_HEADER_TEXT "Previous ooRexx Version." "A previous version of ${LONGNAME} is already installed."
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_CreateLabel} 0 0 100% 40u \
"A version of ${LONGNAME} is currently installed. If the previous version is \
not uninstalled it is almost certain to cause problems.$\n$\n\
To uninstall the previous version check the check box. To skip the uninstall step, \
uncheck the check box."
Pop $Label_One
${NSD_CreateCheckBox} 0 44u 100% 8u "Uninstall previous version of ooRexx"
Pop $Uninstall_Previous_CK
${NSD_Check} $Uninstall_Previous_CK
${NSD_OnClick} $Uninstall_Previous_CK ShowHideForceInstall
${NSD_CreateLabel} 0 70u 100% 48u \
"There are very few cases where installing ${LONGNAME} without removing the previous \
version will work. If you think you know better than this, proceed with the installation. \
However, the ${SHORTNAME} developers will not support this type of installation$\n$\n\
To proceed with the install without uninstalling the previous version of ooRexx you must \
check the Force install to continue check box."
Pop $Label_Two
ShowWindow $Label_Two ${SW_HIDE}
${NSD_CreateCheckBox} 0 122u 100% 8u "Force install to continue"
Pop $Force_Install_CK
${NSD_Uncheck} $Force_Install_CK
ShowWindow $Force_Install_CK ${SW_HIDE}
nsDialogs::Show
FunctionEnd
/** ShowHideForceInstall() Callback function.
*
* Called when the Unistall previous ooRexx version check box is clicked.
*
* If the check box is checked, the user wants to uninstall and we hide the
* force check box. If the user unchecks the uninstall check box we show the
* foce check box.
*/
Function ShowHideForceInstall
Pop $Uninstall_Previous_CK
${NSD_GetState} $Uninstall_Previous_CK $0
${If} $0 == 1
ShowWindow $Label_Two ${SW_HIDE}
ShowWindow $Force_Install_CK ${SW_HIDE}
${Else}
ShowWindow $Label_Two ${SW_SHOW}
ShowWindow $Force_Install_CK ${SW_SHOW}
${NSD_Uncheck} $Force_Install_CK
${endif}
FunctionEnd
/** Uninstall_Old_ooRexx_Leave() Callback function.
*
* The installer calls this function when the user presses the Next button on
* the uninstall old ooRexx version page.
*/
Function Uninstall_Old_ooRexx_Leave
${NSD_GetState} $Uninstall_Previous_CK $0
${NSD_GetState} $Force_Install_CK $1
/* If the user said to not uninstall the previous and did not check force the
* install, then send them back to the page.
*/
${if} $0 == 0
${andif} $1 == 0
MessageBox MB_OK \
"To bypass uninstalling the previous version of ooRexx you must check$\n\
the Force install check box. If it is not the intention to skip the$\n\
uninstall step, then the Uninstall previous version must be checked.$\n$\n\
Please check the appropriate check boxes to continue." \
/SD IDOK
Abort
${endif}
/* If the user said to not uninstall the previous and to force the install,
* then we skip the uninstall. To signal this we set the
* PreviousVersionInstalled variable to false.
*/
${if} $0 == 0
${andif} $1 == 1
StrCpy $PreviousVersionInstalled 'false'
${endif}
FunctionEnd
/** Uninstall_Type_page() Custom page function.
*
* This page is show when a previously installed version ooRexx is detected,
* and the uninstaller version is capable of doing an upgrade type of install.
*
* It gives the user the option of only deleting the installed files while
* leaving the environment, registry, etc., setting untouched.
*/
Function Uninstall_Type_page
/* Skip this page if no previous version is present */
${if} $PreviousVersionInstalled == "false"
Abort
${endif}
${if} $UpgradeTypeAvailable == 'false'
Call Do_The_Uninstall
Abort
${endif}
!insertmacro MUI_HEADER_TEXT "Upgrade Previous ooRexx Version." "It is possible to do an 'upgrade' type of install."
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_CreateLabel} 0u 0u 100% 64u \
"An 'upgrade' type of install will remove all the previously installed files and install \
the new version of ${SHORTNAME}. However, it will not undo any of the environment, file \
association, or registry settings done by the previous install.$\n$\n\
Use this type of install to quickly replace the old version files with the new version \
files. Or, when you have customized these types of settings and do not wish them changed.$\n$\n\
Note: with this type of install, the install location and other settings can NOT be changed.$\n$\n\"
Pop $Label_One
${NSD_CreateCheckBox} 0u 68u 100% 8u "Perform an upgrade type of install"
Pop $Do_Upgrade_Type_CK
${NSD_CreateLabel} 0u 92u 100% 24u \
"A quick upgrade type of install will skip the pages pertaining to options that can not be changed. \
Otherwise the option pages are shown so the value of the options can be seen, but it is still not \
possible to change the values."
Pop $Label_Two
${NSD_CreateCheckBox} 0u 120u 100% 8u "Perform a quick upgrade type of install"
Pop $Do_Upgrade_Quick_CK
${NSD_OnBack} Uninstall_Type_onBack
${NSD_OnClick} $Do_Upgrade_Type_CK ShowHideQuickUninstall
${NSD_SetState} $Do_Upgrade_Type_CK $Do_Upgrade_Type_CK_state
${NSD_SetState} $Do_Upgrade_Quick_CK $Do_Upgrade_Quick_CK_state
${if} $Do_Upgrade_Type_CK_state == ${BST_UNCHECKED}
ShowWindow $Label_Two ${SW_HIDE}
ShowWindow $Do_Upgrade_Quick_CK ${SW_HIDE}
${endif}
; Set focus to the page dialog rather than the installer dialog, set focus to
; the check box, and then show the page dialog
SendMessage $Dialog ${WM_SETFOCUS} $HWNDPARENT 0
SendMessage $Dialog ${WM_NEXTDLGCTL} $Do_Upgrade_Type_CK 1
nsDialogs::Show
FunctionEnd
/** Uninstall_Type_onBack() Call back function
*
* Invoked when the user clicks the back button on the Uninstall type page. We
* save the state of the check boxes on the page.
*/
Function Uninstall_Type_onBack
${NSD_GetState} $Do_Upgrade_Type_CK $Do_Upgrade_Type_CK_state
${NSD_GetState} $Do_Upgrade_Quick_CK $Do_Upgrade_Quick_CK_state
FunctionEnd
/** Uninstall_Type_Leave() Call back function.
*
* The installer calls this function when the user presses the Next button on
* the uninstall type page. We don't save the check box state because we
* immediately run the uninstall and the user won't see this page again.
* Rather, we set the DoUpgrade / DoUpgradeQuick variables to the proper values.
*/
Function Uninstall_Type_Leave
${NSD_GetState} $Do_Upgrade_Type_CK $Do_Upgrade_Type_CK_state
${NSD_GetState} $Do_Upgrade_Quick_CK $Do_Upgrade_Quick_CK_state
${if} $Do_Upgrade_Type_CK_state == ${BST_CHECKED}
StrCpy $DoUpgrade 'true'
${if} $Do_Upgrade_Quick_CK_state = ${BST_CHECKED}
StrCpy $DoUpgradeQuick 'true'
${else}
StrCpy $DoUpgradeQuick 'false'
${endif}
${else}
StrCpy $DoUpgrade 'false'
StrCpy $DoUpgradeQuick 'false'
${endif}
Call Do_The_Uninstall
FunctionEnd
/** ShowHideQuickUninstall() Call back function
*
* Invoked when the user clicks the Perform an upgrade type of install check
* box. Shows or hides the Perform a quick upgrade type of install check box.
*/
Function ShowHideQuickUninstall
Pop $Do_Upgrade_Type_CK
${NSD_GetState} $Do_Upgrade_Type_CK $0
${if} $0 == ${BST_CHECKED}
ShowWindow $Label_Two ${SW_SHOW}
ShowWindow $Do_Upgrade_Quick_CK ${SW_SHOW}
${else}
ShowWindow $Label_Two ${SW_HIDE}
ShowWindow $Do_Upgrade_Quick_CK ${SW_HIDE}
${endif}
FunctionEnd
/** Do_The_Uninstall()
*
* Executes the uninstall program and waits for its return. The user could
* have:
* Finished the uninstall
* Canceled the uninstall because they want to stop any running Rexx programs
* Canceled the uninstll for some other reason
*
* In addition, the script may have aborted the uninstall for some unexplained
* error.
*
* In all cases we quit the install. We put up a message box to explain why we
* are quitting in most cases, the only exception is if the user choose to quit
* to stop any running Rexx programs.
*
* @note If we are doing an upgrade install, then we need to install to the
* same location as the original install. This could easily be different
* than what $INSTDIR currently is, so we set $INSTDIR to our uninstall
* location. For an upgrade install, the portion of the installer that
* allows the user to pick the install location will be disabled.
*/
Function Do_The_Uninstall
; Use $3 for the arg to the uninstall program.
${if} $DoUpgrade == 'true'
StrCpy $INSTDIR $RegVal_uninstallLocation
StrCpy $3 "upgrade"
${if} $DoUpgradeQuick == 'true'
StrCpy $3 "upgradeQuick"
${endif}
${endif}
HideWindow
ClearErrors
/* the "_?=$RegVal_uninstallLocation" portion of the command sets the
* uninstall dir to $R2 and *prevents* the uninstaller from running in the
* temp dir, which is what we want.
*/
ExecWait '$RegVal_uninstallString /U=$3 _?=$RegVal_uninstallLocation' $0
IfErrors UninstallErrors
${if} $0 == 0
; No errors, do a sanity check and finish up.
IfFileExists "$INSTDIR\${KEYFILE1}" UninstallErrors
IfFileExists "$INSTDIR\${KEYFILE2}" UninstallErrors
Delete "$RegVal_uninstallLocation\${UNINSTALLER}"
RMDir "$RegVal_uninstallLocation"
BringToFront
Goto NotInstalled
${endif}
${if} $0 == 1
; The user canceled the uninstall ...
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST \
"You have elected to cancel the uninstall of the previous version of$\n\
${SHORTNAME}. There are very few cases where installing ${LONGNAME}$\n\
without removing the previous version will work and this installation$\n\
will abort.$\n$\n\
If you are determined to install ${SHORTNAME} without removing the$\n\
previous version, rerun the installation and select to not uninstall$\n\
the previous version. Then select to force the installation." \
/SD IDOK
Goto DoAbort
${endif}
${if} $0 == 4
; The user wants to quit to stop rxapi. Only set to 4 if the user cancels
; on the page where she is asked to stop rxapi. On that page she is given
; the option to quit completely.
Goto DoAbort
${endif}
; Return code is 2 or greater, but not 4. 2 is uninstall canceled by script,
; we treat anything greater than 2 in the same way.
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST \
"The uninstall of the previous version of ${SHORTNAME} was terminated by$\n\
the uninstall script. The most likely cause of this is that the rxapi$\n\
process is running, either as a service or stand alone, and could not be$\n\
stopped.$\n$\n\
When the previous version of rxapi is not stopped, the new version of$\n\
of ${SHORTNAME} can not be installed correctly.$\n$\n\
The installation will abort.$\n$\n\
You can:$\n$\n\
1.) Contact the developers on the SourceForge project for help.$\n$\n\
2.) Try stopping rxapi manually and rerunning the installation. If$\n\
rxapi is installed as a service, use the service manager to stop rxapi.$\n\
Otherwise, use the task manager to stop the rxapi process.$\n$\n\
3.) Elect to not stop rxapi and to not remove the previous version. To do$\n\
this, rerun the installation and click No when asked to uninstall the previous$\n\
version. Then click Yes when asked if you want to continue. However, if$\n\
you do this ${SHORTNAME} will not be installed correctly." \
/SD IDOK
Goto DoAbort
UninstallErrors:
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST \
"There were unexpected errors uninstalling the previous version$\n\
of ${SHORTNAME}. There are very few cases where installing ${LONGNAME}$\n\
without removing the previous version will work and this installation$\n\
will abort. You should first try rerunning the installtion.$\n$\n\
If this is the second attempt at installation and you still get this$\n\
message, you can:$\n$\n\
1.) Contact the developers on the SourceForge project for help.$\n$\n\
2.) Try removing the previous version manually and rerun the installation.$\n$\n\
3.) Elect to not remove the previous version. To do this, rerun the installation$\n\
and click No when asked to uninstall the previous version. Then click Yes when$\n\
asked if you want to continue.$\n$\n\
In all cases, please report this problem to the ${SHORTNAME} project on SourceForge." \
/SD IDOK
Goto DoAbort
DoAbort:
Quit
NotInstalled:
; The previous version is now uninstalled, so we set the variable to reflect that.
StrCpy $PreviousVersionInstalled 'false'
FunctionEnd
/** Ok_Stop_RxAPI_page() Custom page function.
*
* This is a custom page that is shown if rxapi is still running. If rxapi.exe
* is not running the page is skipped. On the page, the user is asked for the
* okay to stop rxapi and advised of possible consequences. If the user says
* no, the install will be aborted..
*/
Function Ok_Stop_RxAPI_page
Call CheckIsRxapiService
Call CheckIsRxapiRunning
${if} $RxapiIsRunning == 'false'
Abort
${endif}
!insertmacro MUI_HEADER_TEXT "The ${LONGNAME} memory manager (rxapi) is currently running." \
"A new version of rxapi can not be installed while rxapi is running."
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_CreateLabel} 0 0 100% 112u \
"A previous version of the ${LONGNAME} memory manager (rxapi) is currently running. \
The new version of rxapi can not be installed while the previous version is running.$\n$\n\
When the Stop rxapi check box is checked, the installation will stop rxapi before \
proceeding. If the check box is not checked, rxapi will not be stopped.$\n$\n\
If rxapi is not stopped the install will be canceled.$\n$\n\
If, and only if, there are Rexx programs running, stopping the memory manager could \
possibly cause data loss.$\n$\n\
If you are worried about this, please uncheck the Stop rxapi check box. When the \
install ends, stop all running Rexx programs, and rerun the installation program."
Pop $Label_One
${NSD_CreateCheckBox} 0 116u 100% 15u "Stop rxapi"
Pop $StopRxAPI_CK
${NSD_SetState} $StopRxAPI_CK 1
nsDialogs::Show
FunctionEnd
/** Ok_Stop_RxAPI_leave() Call back function.
*
* Invoked when the user leaves the page that asks for permission to stop the
* rxapi process. We check if the user said okay or not. If the user does not
* say okay we quit the install.
*
* When the user does say okay, we stop rxapi and check that it is indeed
* stopped. If it is not stopped, we inform the user and also quit the install.
*/
Function Ok_Stop_RxAPI_leave
${NSD_GetState} $StopRxAPI_CK $StopRxAPI_CK_State
${if} $StopRxAPI_CK_State == 0
Quit
${endif}
Call StopRxapi
Pop $R0
${if} $R0 == 'Ok'
Goto NotRunning
${endif}
; rxapi was not stopped, the error code is now at top of stack
Pop $R0
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST \
"Can not determine conclusively that the Open Object Rexx memory manager (rxapi) is$\n\
stopped. Since a new version of rxapi can not be installed while rxapi is running,$\n\
the installation will quit.$\n$\n\
Please use the task manager to locate rxapi.exe and end that process, then restart the$\n\
installation. If you are uncomfortable with using the task manager, contact the$\n\
${SHORTNAME} developers on SourceForge for help.$\n$\n\
If you report this problem, please note that the error code is $R0." /SD IDOK
Quit
NotRunning:
FunctionEnd
/** Components_Page_pre() Call back function
*
* Invoked by the installer before the components page is created.
*
* If this is a QUICK upgrade install, we skip the page.
*/
Function Components_Page_pre
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
FunctionEnd
/** Components_Page_show() Call back function
*
* Invoked by the installer right before the components page is shown.
*
* If this is an upgrade install, we don't allow the user to quit from here on
* out. On this page we also don't let the user go back
*
* When it is not an upgrade install, nothing is done.
*/
Function Components_Page_show
${if} $DoUpgrade == 'true'
; Disable Back button
GetDlgItem $0 $HWNDPARENT 3
EnableWindow $0 0
; Disable the components list view control
EnableWindow $mui.ComponentsPage.Components 0
; Change the descriptive text
SendMessage $mui.ComponentsPage.Text ${WM_SETTEXT} 0 \
"STR:These components of ${LONGNAME} ${VERSION} wil be installed. The component list can not be \
changed for an upgrade type of install. Click Next to continue."
Call PageDisableQuit
${endif}
FunctionEnd
/** Directory_Page_pre() Call back function
*
* Invoked by the installer before the directory page is created.
*
* If this is a QUICK upgrade install, we skip the page.
*/
Function Directory_Page_pre
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
FunctionEnd
/** Directory_Page_show() Call back function
*
* Invoked by the installer right before the directory page is shown.
*
* If this is an upgrade install, the install location can not be changed. We
* use function to show the user the install location, but not let them change
* the location.
*
* When it is not an upgrade install, nothing is done.
*/
Function Directory_Page_show
${if} $DoUpgrade == 'true'
SendMessage $mui.DirectoryPage.Text ${WM_SETTEXT} 0 \
"STR:Setup will install ${LONGNAME} ${VERSION} in the following folder. The location can not be \
changed for an upgrade type of install. Click Next to continue."
EnableWindow $mui.DirectoryPage.Directory 0
EnableWindow $mui.DirectoryPage.BrowseButton 0
Call PageDisableQuit
${endif}
FunctionEnd
/** Rxapi_Options_page() Custom page function.
*
* This function is used to display the custom page that asks the user if they
* want to install rxapi as a service, and if they want rxapi started when the
* installation finishes. It checks if the user is an admin and skips the
* page if not. (Admin privileges are required to install a service. ? is that
* true?)
*/
Function Rxapi_Options_page
${if} $IsAdminUser == 'false'
Abort
${endif}
; If doing an upgrade and rxapi was NOT previously installed as a service, we
; skip this page. If we are doing a quick upgrade and rxapi was installed as
; a server, we start it automatically.
${if} $DoUpgrade == 'true'
${if} $RxapiIsService == 'false'
Abort
${endif}
${if} $DoUpgradeQuick == 'true'
${andif} $RxapiIsService == 'true'
StrCpy $RxAPIStartService '1'
Abort
${endif}
${endif}
${if} $DoUpgrade == 'true'
!insertmacro MUI_HEADER_TEXT "ooRexx rxapi is installed as a Windows Service." \
"Installation of rxapi as a service can not be changed during an upgrade, but \
you can choose whether to start the rxapi Service during installation."
${else}
!insertmacro MUI_HEADER_TEXT "The ooRexx rxapi process." "Install rxapi as a Windows Service."
${endif}
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_OnBack} Rxapi_Options_leave
${NSD_CreateLabel} 0 0 100% 80u \
"ooRexx starts a daemon process, rxapi.exe, the first time a Rexx program executes. This \
process manages all data that can persist across interpreter invocations or is used for \
cross-process communications. The rxapi process manages the Rexx data queues, the macrospace, \
and all of the external function, subcommand handler and exit registrations.$\n$\n\
On Windows, in all cases, it is best to install rxapi as a Windows service. In Windows Vista \
and later operating systems, it is strongly recommmended that rxapi is always installed as a \
service."
Pop $Label_One
${NSD_CreateCheckBox} 0 86u 100% 15u "Install rxapi as a Windows Service"
Pop $RxAPI_Install_Service_CK
; If we are doing an upgrade, then we are only here if rxapi was previously
; installed as a service. If so we don't allow the user to change this.
${if} $DoUpgrade == 'true'
${NSD_SetState} $RxAPI_Install_Service_CK 1
EnableWindow $RxAPI_Install_Service_CK 0
EnableWindow $Label_One 0
Call PageDisableQuit
${else}
${NSD_SetState} $RxAPI_Install_Service_CK $RxAPIInstallService
${NSD_OnClick} $RxAPI_Install_Service_CK EnableStartService
${endif}
${NSD_CreateCheckBox} 0 106u 100% 15u "Start the rxapi Service during installation"
Pop $RxAPI_Start_CK
${NSD_SetState} $RxAPI_Start_CK $RxAPIStartService
${if} $RxAPIInstallService == 0
EnableWindow $RxAPI_Start_CK 0
${endif}
nsDialogs::Show
FunctionEnd
/** EnableStartService() Callback function.
*
* Called when the install rxap as a service check box is clicked.
*
* If the check box is checked, we enable the start the service check box, if it
* is unchecked we disable the check box.
*
* Note: If we are doing an upgrade, then NSD_OnClick is not set. So we don't
* need to worry about getting a click during an upgrade install.
*/
Function EnableStartService
Pop $RxAPI_Install_Service_CK
${NSD_GetState} $RxAPI_Install_Service_CK $0
${If} $0 == 1
EnableWindow $RxAPI_Start_CK 1
${NSD_SetState} $RxAPI_Start_CK $RxAPIStartService
${Else}
EnableWindow $RxAPI_Start_CK 0
${NSD_Uncheck} $RxAPI_Start_CK
${endif}
FunctionEnd
/** Rxapi_Options_leave() Call back function.
*
* Called by the installer when the user clicks Next or Back buttons on the
* Rxapi_Options_page page. We set the RxAPI option variables to match what the
* user picked.
*/
Function Rxapi_Options_leave
${NSD_GetState} $RxAPI_Install_Service_CK $RxAPIInstallService
${NSD_GetState} $RxAPI_Start_CK $RxAPIStartService
FunctionEnd
/** File_Associations_page() Custom page function.
*
* Allows the user to specify whether they want to use Windows file associations
* or not.
*
* The page is not shown when doing an upgrade type of install.
*/
Function File_Associations_page
${if} $DoUpgrade == 'true'
Abort
${endif}
!insertmacro MUI_HEADER_TEXT "Associate file extensions with the ooRexx executables." \
"Any, or all, of the ooRexx executables (rexx.exe, rexxhide.exe, or rexxpaws.exe) \
can be associated with a file extension."
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_OnBack} File_Associations_leave
${NSD_CreateLabel} 0 0 100% 120u \
"Windows file associations define how Windows treats a file type on your system. \
File associations control, among other things, what happens when a user double-clicks a \
file, which icon appears for a file by default, and how the file appears when viewed \
in Windows Explorer.$\n$\n\
Associating a file extension with an ooRexx executable allows Rexx programs to be executed by \
double clicking them in Windows explorer, and to be run from the command line by just typing \
their file name. In addition, you can specify an editor for the file type. This editor is \
used when the Edit item of the context menu for the file is selected.$\n$\n\
Check the check box to have the installer create file associations. The following pages \
will allow you to specify which associations are created. Uncheck the check box if you \
do not want any associations to be created."
Pop $Label_One
${NSD_CreateCheckBox} 0 122u 100% 8u "Create Windows file associations"
Pop $Use_File_Associations_CK
${NSD_SetState} $Use_File_Associations_CK $Use_File_Associations_CK_state
nsDialogs::Show
FunctionEnd
/** File_Associations_leave() Call back function.
*
* Invoked when the user clicks the Back or Next buttons on the File
* Associations page. Saves the state of the Use File Associations check box.
*/
Function File_Associations_leave
${NSD_GetState} $Use_File_Associations_CK $Use_File_Associations_CK_state
FunctionEnd
/** SendTo_Items_page() Custom page function.
*
* Allows the user to create 'Send To' items for the Rexx executables.
*
* The page is skipped if we are doing a quick upgrade.
*/
Function SendTo_Items_page
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
${if} $DoUpgrade == 'true'
!insertmacro MUI_HEADER_TEXT "The Send To items that will be created." \
"Which Send To items will be created can not be changed during an upgrade \
type of install."
${else}
!insertmacro MUI_HEADER_TEXT "Create 'Send To' items for the Rexx executables." \
"'Send To' items can be used instead of file associations, or in addition \
to file associations."
${endif}
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_OnBack} SendTo_Items_leave
${NSD_CreateLabel} 0u 0u 100% 72u \
"The 'Send To' context menu item for objects displayed in the Windows Explore contains a list of \
programs that the object can be 'sent to.' Typically, the items in the list are executables that \
can process the file or directory object sent to them. 'Sending' your Rexx program to one of the \
Rexx executables will execute your program.$\n$\n\
Rather than create a file association for rexxhide.exe and rexxpaws.exe you may wish to create a \
'Send To' item for those executables. Or create both a file association and 'Send To' items for \
those executables. Usually a file association is created for rexx.exe and not a 'Send To' item."
Pop $Label_One
${NSD_CreateCheckBox} 0u 80u 100% 8u "Create 'Send To' Rexx item (Typically this is not done.)"
Pop $SendTo_rexx_CK
${NSD_CreateCheckBox} 0u 100u 100% 8u "Create 'Send To' Rexx Hide (rexxhide.exe) item"
Pop $SendTo_rexxHide_CK
${NSD_CreateCheckBox} 0u 120u 100% 8u "Create 'Send To' Rexx Pause (rexxpaws.exe) item"
Pop $SendTo_rexxPaws_CK
${NSD_SetState} $SendTo_rexx_CK $SendTo_rexx_CK_state
${NSD_SetState} $SendTo_rexxhide_CK $SendTo_rexxHide_CK_state
${NSD_SetState} $SendTo_rexxpaws_CK $SendTo_rexxPaws_CK_state
${if} $DoUpgrade == 'true'
EnableWindow $Label_One 0
EnableWindow $SendTo_rexx_CK 0
EnableWindow $SendTo_rexxHide_CK 0
EnableWindow $SendTo_rexxPaws_CK 0
Call PageDisableQuit
${endif}
nsDialogs::Show
FunctionEnd
/** SendTo_Items_leave() Call back function.
*
* This function is called when the Send To Items page is left. The state of
* the dialog controls is saved.
*/
Function SendTo_Items_leave
${NSD_GetState} $SendTo_rexx_CK $SendTo_rexx_CK_state
${NSD_GetState} $SendTo_rexxHide_CK $SendTo_rexxHide_CK_state
${NSD_GetState} $SendTo_rexxPaws_CK $SendTo_rexxPaws_CK_state
FunctionEnd
/** Associate_rexx_page() Custom page function.
*
* Presents the option to the user of creating a file association for rexx.exe
*
* The page is skipped if not using file associations, or if we are doing a
* quick upgrade.
*/
Function Associate_rexx_page
${if} $Use_File_Associations_CK_state == ${BST_UNCHECKED}
Abort
${endif}
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
${if} $DoUpgrade == 'true'
!insertmacro MUI_HEADER_TEXT "The file extension for rexx.exe and Rexx program editor choices." \
"These choices can not be changed during an upgrade type of install."
${else}
!insertmacro MUI_HEADER_TEXT "Associate a file extension with rexx.exe." "Pick the editor to be used when the Edit \
item of the context menu is selected."
${endif}
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_OnBack} Associate_rexx_leave
${NSD_CreateLabel} 0u 0u 100% 16u \
"Select the editor to be used with your ooRexx file type(s). This adds the Edit menu item to \
the context menu of the file type. The same editor is used for all file types."
Pop $Label_One
; Editor line
${NSD_CreateLabel} 0u 20u 60u 8u "Full path to editor:"
Pop $0 ; Discarded
${NSD_CreateText} 0u 30u 185u 12u $Rexx_editor_text
Pop $Rexx_editor_EDIT
${NSD_CreateButton} 190u 28u 45u 16u "Browse..."
Pop $Rexx_editor_PB
System::Call shlwapi::SHAutoComplete(i$Rexx_editor_EDIT, i${SHACF_FILESYSTEM})
${NSD_CreateLabel} 0u 60u 100% 24u \
"By default in ${LONGNAME} installations the Rexx interpreter, rexx.exe, is associated with the \
${DefRexxExt} extension using the file type name of ${DefRexxFType}. However, you can change these values if \
you care to."
Pop $Label_Two
${NSD_CreateGroupBox} 0u 90u 100% 44u "File Association for rexx.exe"
Pop $0 ; Discarded
${NSD_CreateCheckBox} 8u 104u 80% 8u "Create rexx.exe file association"
Pop $Associate_rexx_CK
${NSD_SetState} $Associate_rexx_CK $Associate_rexx_CK_state
; Extension line
${NSD_CreateLabel} 16u 116u 75u 8u "Extension (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 91u 114u 36u 12u $Rexx_ext_text
Pop $Rexx_ext_EDIT
; File type line
${NSD_CreateLabel} 137u 116u 90u 8u "File type name (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 228u 114u 46u 12u $Rexx_ftype_text
Pop $Rexx_ftype_EDIT
${NSD_SetState} $Associate_rexx_CK $Associate_rexx_CK_state
${NSD_SetState} $SendTo_rexx_CK $SendTo_rexx_CK_state
${if} $Associate_rexx_CK_state == ${BST_UNCHECKED}
${orif} $DoUpgrade == 'true'
EnableWindow $Rexx_ext_EDIT 0
EnableWindow $Rexx_ftype_EDIT 0
${if} $DoUpgrade == 'true'
EnableWindow $Rexx_editor_EDIT 0
EnableWindow $Rexx_editor_PB 0
EnableWindow $Associate_rexx_CK 0
EnableWindow $Label_One 0
EnableWindow $Label_Two 0
Call PageDisableQuit
${endif}
${endif}
${NSD_OnClick} $Associate_rexx_CK EnableRexxAssociation
${NSD_OnClick} $Rexx_editor_PB Get_rexx_editor_file
nsDialogs::Show
FunctionEnd
/** Associate_rexx_leave() Call back function.
*
* This function is called when the Rexx association page is left. We check
* that the text fields are 'sane' and return the user to the page if they
* are not. If the fields are good, the state of the dialog controls is saved.
*/
Function Associate_rexx_leave
${NSD_GetState} $Associate_rexx_CK $Associate_rexx_CK_state
${if} $Associate_rexx_CK_state == ${BST_CHECKED}
${NSD_GetText} $Rexx_ext_EDIT $0
${NSD_GetText} $Rexx_ftype_EDIT $1
; If either the extension field or the ftype field are blank, abort.
${if} $0 == ""
${orif} $1 == ""
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Creating a file association requires that$\n\
both the file extension and the file type field$\n\
be filed in."
${if} $0 == ""
SendMessage $Dialog ${WM_NEXTDLGCTL} $Rexx_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $Rexx_ftype_EDIT 1
${endif}
Abort
${endif}
; Copy the first char of the ext field to $0 if not a '.', abort.
StrCpy $2 $0 1
${if} $2 != "."
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Please include the leading dot '.' of the file$\n\
extension."
SendMessage $Dialog ${WM_NEXTDLGCTL} $Rexx_ext_EDIT 1
Abort
${endif}
; Check that the user did not include any spaces in either field. If so abort
push $0
call CheckForSpaces
pop $2
push $1
call CheckForSpaces
pop $3
${if} $2 > 0
${orif} $3 > 0
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Neither the file extension field nor the file$\n\
type name field can contain a space."
${if} $2 > 0
SendMessage $Dialog ${WM_NEXTDLGCTL} $Rexx_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $Rexx_ftype_EDIT 1
${endif}
Abort
${endif}
${endif}
; Okay text fields are okay. If editor field is blank, it is just not used.
${NSD_GetText} $Rexx_ext_EDIT $Rexx_ext_text
${NSD_GetText} $Rexx_ftype_EDIT $Rexx_ftype_text
${NSD_GetText} $Rexx_editor_EDIT $Rexx_editor_text
FunctionEnd
/** Get_rexx_editor_file()
*
* Puts up a file open dialog and allows the user to select a file. If the
* user does not cancel, the edit control is updated with the file selected.
*/
Function Get_rexx_editor_file
Pop $Rexx_editor_PB
${NSD_GetText} $Rexx_editor_EDIT $0
nsDialogs::SelectFileDialog open $0 "*.exe"
pop $0
${if} $0 != ""
${NSD_SetText} $Rexx_editor_EDIT $0
${endif}
FunctionEnd
/** EnableRexxAssociation()
*
* Called when the user clicks on the Create rexx.exe file association check
* box. Disables, or enables, the controls depending on if the check box is
* checked or not.
*/
Function EnableRexxAssociation
Pop $Associate_rexx_CK
${NSD_GetState} $Associate_rexx_CK $0
${If} $0 == 1
EnableWindow $Rexx_ext_EDIT 1
EnableWindow $Rexx_ftype_EDIT 1
${Else}
EnableWindow $Rexx_ext_EDIT 0
EnableWindow $Rexx_ftype_EDIT 0
${endif}
FunctionEnd
/** Associate_otherExes_page() Custom page function.
*
* This is a custom page
*
*
*
*/
Function Associate_otherExes_page
${if} $Use_File_Associations_CK_state == ${BST_UNCHECKED}
Abort
${endif}
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
${if} $DoUpgrade == 'true'
!insertmacro MUI_HEADER_TEXT "The file extension chocies for rexxhide.exe. and rexxpaws.exe" \
"These choices can not be changed during an upgrade type of install."
${else}
!insertmacro MUI_HEADER_TEXT "Associate a file extension with rexxhide.exe and / or rexxpaws.exe" \
"rexxhide default file extension: $\"${DefRexxHideExt}$\" file type: $\"${DefRexxHideFType}$\"$\n\
rexpaws default file extension: $\"${DefRexxPawsExt}$\" file type: $\"${DefRexxPawsFType}$\"."
${endif}
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_OnBack} Associate_otherExes_leave
/* Controls for Rexx Hide */
${NSD_CreateLabel} 0u 0u 100% 8u \
"rexxhide runs Rexx programs without creating a console window."
Pop $Label_One
${NSD_CreateGroupBox} 0u 12u 100% 44u "File Association for rexxhide.exe"
Pop $0 ; Discarded
${NSD_CreateCheckBox} 8u 24u 80% 8u "Create rexxhide.exe file association"
Pop $Associate_rexxhide_CK
${NSD_SetState} $Associate_rexxhide_CK $Associate_rexxhide_CK_state
; Extension line
${NSD_CreateLabel} 16u 38u 75u 8u "Extension (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 91u 36u 36u 12u $RexxHide_ext_text
Pop $RexxHide_ext_EDIT
; File type line
${NSD_CreateLabel} 137u 38u 90u 8u "File type name (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 228u 36u 46u 12u $RexxHide_ftype_text
Pop $RexxHide_ftype_EDIT
/* Controls for Rexx Paws */
${NSD_CreateLabel} 0u 70u 100% 16u \
"rexxpaws runs a Rexx programs and 'pauses' until the user hits the Enter key, allowing any output to \
be read before the console window closes."
Pop $Label_Two
${NSD_CreateGroupBox} 0u 92u 100% 44u "File Association for rexxpaws.exe"
Pop $0 ; Discarded
${NSD_CreateCheckBox} 8u 104u 80% 8u "Create rexxpaws.exe file association"
Pop $Associate_rexxpaws_CK
${NSD_SetState} $Associate_rexxpaws_CK $Associate_rexxpaws_CK_state
; Extension line
${NSD_CreateLabel} 16u 118u 75u 8u "Extension (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 91u 116u 36u 12u $RexxPaws_ext_text
Pop $RexxPaws_ext_EDIT
; File type line
${NSD_CreateLabel} 137u 118u 90u 8u "File type name (no spaces):"
Pop $0 ; Discarded
${NSD_CreateText} 228u 116u 46u 12u $RexxPaws_ftype_text
Pop $RexxPaws_ftype_EDIT
${if} $DoUpgrade == 'true'
EnableWindow $Associate_rexxhide_CK 0
EnableWindow $RexxHide_ext_EDIT 0
EnableWindow $RexxHide_ftype_EDIT 0
EnableWindow $Associate_rexxpaws_CK 0
EnableWindow $RexxPaws_ext_EDIT 0
EnableWindow $RexxPaws_ftype_EDIT 0
EnableWindow $Label_One 0
EnableWindow $Label_Two 0
Call PageDisableQuit
${else}
${if} $Associate_rexxhide_CK_state == ${BST_UNCHECKED}
EnableWindow $RexxHide_ext_EDIT 0
EnableWindow $RexxHide_ftype_EDIT 0
${endif}
${if} $Associate_rexxpaws_CK_state == ${BST_UNCHECKED}
EnableWindow $RexxPaws_ext_EDIT 0
EnableWindow $RexxPaws_ftype_EDIT 0
${endif}
${endif}
${NSD_OnClick} $Associate_rexxhide_CK EnableRexxHideAssociation
${NSD_OnClick} $Associate_rexxpaws_CK EnableRexxPawsAssociation
nsDialogs::Show
FunctionEnd
/** Associate_otherExes_leave() Call back function.
*
* This function is called when the RexxHide association page is left. We check
* that the text fields are 'sane' and return the user to the page if they
* are not. If the text field values are good, the state of the dialog contorls
* is saved.
*/
Function Associate_otherExes_leave
/* Check the Rexx Hide controls */
${NSD_GetState} $Associate_rexxhide_CK $Associate_rexxhide_CK_state
${if} $Associate_rexxhide_CK_state == ${BST_CHECKED}
${NSD_GetText} $RexxHide_ext_EDIT $0
${NSD_GetText} $RexxHide_ftype_EDIT $1
; If either the extension field or the ftype field are blank, abort.
${if} $0 == ""
${orif} $1 == ""
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Creating a file association requires that$\n\
both the file extension and the file type field$\n\
be filed in."
${if} $0 == ""
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxHide_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxHide_ftype_EDIT 1
${endif}
Abort
${endif}
; Copy the first char of the ext field to $0 if not a '.', abort.
StrCpy $2 $0 1
${if} $2 != "."
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Please include the leading dot '.' of the file$\n\
extension."
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxHide_ext_EDIT 1
Abort
${endif}
; Check that the user did not include any spaces in either field. If so abort
push $0
call CheckForSpaces
pop $2
push $1
call CheckForSpaces
pop $3
${if} $2 > 0
${orif} $3 > 0
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Neither the file extension field nor the file$\n\
type name field can contain a space."
${if} $2 > 0
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxHide_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxHide_ftype_EDIT 1
${endif}
Abort
${endif}
${endif}
/* Check the Rexx Paws controls */
${NSD_GetState} $Associate_rexxpaws_CK $Associate_rexxpaws_CK_state
${if} $Associate_rexxpaws_CK_state == ${BST_CHECKED}
${NSD_GetText} $RexxPaws_ext_EDIT $0
${NSD_GetText} $RexxPaws_ftype_EDIT $1
; If either the extension field or the ftype field are blank, abort.
${if} $0 == ""
${orif} $1 == ""
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Creating a file association requires that$\n\
both the file extension and the file type field$\n\
be filed in."
${if} $0 == ""
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxPaws_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxPaws_ftype_EDIT 1
${endif}
Abort
${endif}
; Copy the first char of the ext field to $0 if not a '.', abort.
StrCpy $2 $0 1
${if} $2 != "."
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Please include the leading dot '.' of the file$\n\
extension."
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxPaws_ext_EDIT 1
Abort
${endif}
; Check that the user did not include any spaces in either field. If so abort
push $0
call CheckForSpaces
pop $2
push $1
call CheckForSpaces
pop $3
${if} $2 > 0
${orif} $3 > 0
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Neither the file extension field nor the file$\n\
type name field can contain a space."
${if} $2 > 0
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxPaws_ext_EDIT 1
${else}
SendMessage $Dialog ${WM_NEXTDLGCTL} $RexxPaws_ftype_EDIT 1
${endif}
Abort
${endif}
${endif}
; Okay text fields are okay.
${NSD_GetText} $RexxHide_ext_EDIT $RexxHide_ext_text
${NSD_GetText} $RexxHide_ftype_EDIT $RexxHide_ftype_text
${NSD_GetText} $RexxPaws_ext_EDIT $RexxPaws_ext_text
${NSD_GetText} $RexxPaws_ftype_EDIT $RexxPaws_ftype_text
FunctionEnd
/** EnableRexxHideAssociation()
*
* Called when the user clicks on the Create rexxhide.exe file association check
* box. Disables, or enables, the controls depending on if the check box is
* checked or not.
*/
Function EnableRexxHideAssociation
Pop $Associate_rexxhide_CK
${NSD_GetState} $Associate_rexxhide_CK $0
${If} $0 == 1
EnableWindow $RexxHide_ext_EDIT 1
EnableWindow $RexxHide_ftype_EDIT 1
${Else}
EnableWindow $RexxHide_ext_EDIT 0
EnableWindow $RexxHide_ftype_EDIT 0
${endif}
FunctionEnd
/** EnableRexxPawsAssociation()
*
* Called when the user clicks on the Create rexxpaws.exe file association check
* box. Disables, or enables, the controls depending on if the check box is
* checked or not.
*/
Function EnableRexxPawsAssociation
Pop $Associate_rexxpaws_CK
${NSD_GetState} $Associate_rexxpaws_CK $0
${If} $0 == 1
EnableWindow $RexxPaws_ext_EDIT 1
EnableWindow $RexxPaws_ftype_EDIT 1
${Else}
EnableWindow $RexxPaws_ext_EDIT 0
EnableWindow $RexxPaws_ftype_EDIT 0
${endif}
FunctionEnd
/** Confirm_page() Custom page function.
*
* Gives the user one last chance to go back and change any settings.
*
* The page is skipped if we are doing an upgrade type of install.
*/
Function Confirm_page
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
${if} $DoUpgrade == 'true'
!insertmacro MUI_HEADER_TEXT "${LONGNAME} is ready for installation." \
"Installation options remain the same for an upgrade type of installation \
of ${LONGNAME}."
${else}
!insertmacro MUI_HEADER_TEXT "${LONGNAME} is ready for installation." \
"All options for ${LONGNAME} have been collected."
${endif}
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${if} $DoUpgrade == 'true'
${NSD_CreateLabel} 0u 0u 100% 72u \
"Click the Install button to begin installation. Click the Back button if you \
wish to review the installation options. An upgrade type of installation can \
not be canceled at this point."
${else}
${NSD_CreateLabel} 0u 0u 100% 72u \
"All the parameters needed to install ${LONGNAME} on your system have been \
gathered together.$\n$\n\
Click the Install button to begin installation. Click the Back button to \
review or change any settings. Click the Cancel button to abort the installation \
altogether."
${endif}
Pop $Label_One
${if} $DoUpgrade == 'true'
Call PageDisableQuit
${endif}
nsDialogs::Show
FunctionEnd
/** PageDisableQuit()
*
* Prevents the user from closing (quitting) the installer from the current
* page. The function could be generic, but at this point only works if we
* are doing an upgrade install.
*/
Function PageDisableQuit
; Really this should only be called when DoUpgrade is true, but we'll use
; a little defensive programming.
${if} $DoUpgrade == 'true'
; Disable the close button on title bar.
push $1
System::Call "user32::GetSystemMenu(i $HWNDPARENT,i 0) i.s"
pop $1
System::Call "user32::EnableMenuItem(i $1,i 0xF060,i 1)"
pop $1
; Disable Cancel button
GetDlgItem $0 $HWNDPARENT 2
EnableWindow $0 0
; Set focus to the Next button
GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT ${WM_NEXTDLGCTL} $0 1
${endif}
FunctionEnd
/** .onMouseOverSection() Call back function
*
* Invoked when the user puts the mouse over one of the componets that can be
* installed. This is what provides the description of each component.
*/
Function .onMouseOverSection
!insertmacro MUI_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecMain} "Installs the core components of ${LONGNAME} to the application folder."
!insertmacro MUI_DESCRIPTION_TEXT ${SecDev} "Installs the files required to embed ${LONGNAME} into you C/C++ application."
!insertmacro MUI_DESCRIPTION_TEXT ${SecDemo} "Install sample ${LONGNAME} programs."
!insertmacro MUI_DESCRIPTION_TEXT ${SecDoc} "Install ${LONGNAME} documentation."
!insertmacro MUI_DESCRIPTION_END
FunctionEnd
/** DoSendToItems()
*
* Create 'Send To' items depending on what the user specified. This is only
* called when we are not doing an upgrade type of install.
*
* Note that we do not add the shortcut files to the uninstall log. Deleting
* the files is done separately from the uninstall log usage because there is
* no (easy) way to tell which file is being deleted when using the uninstall
* log.
*/
Function DoSendToItems
; Save the user specified settings into the registry variables so the are
; written to the registry correctly.
StrCpy $RegVal_sendTo_rexx $SendTo_rexx_CK_state
StrCpy $RegVal_sendTo_rexxHide $SendTo_rexxHide_CK_state
StrCpy $RegVal_sendTo_rexxPaws $SendTo_rexxPaws_CK_state
SetOutPath $INSTDIR
${if} $SendTo_rexx_CK_state == ${BST_CHECKED}
CreateShortCut "$SENDTO\ooRexx.lnk" "$INSTDIR\rexx.exe" "" "" "" SW_SHOWNORMAL "" "ooRexx"
DetailPrint "Created Send To rexx.exe item"
${endif}
${if} $SendTo_rexxHide_CK_state == ${BST_CHECKED}
CreateShortCut "$SENDTO\ooRexx with no console (rexxhide).lnk" "$INSTDIR\rexxhide.exe" "" "" "" SW_SHOWNORMAL "" "ooRexx with no console (rexxhide)"
DetailPrint "Created Send To rexxhide.exe item"
${endif}
${if} $SendTo_rexxPaws_CK_state == ${BST_CHECKED}
CreateShortCut "$SENDTO\ooRexx with pause (rexxpaws).lnk" "$INSTDIR\rexxpaws.exe" "" "" "" SW_SHOWNORMAL "" "ooRexx with pause (rexxpaws)"
DetailPrint "Created Send To rexxpaws.exe item"
${endif}
FunctionEnd
/** DoFileAssociations()
*
* Does the file associations for ooRexx. Only called when not doing an
* upgrade.
*
* We do two things:
* Fill in the values stored in the uninstall section for ooRexx. These
* values tell the uninstaller, when it runs, what it should delete from the
* registry.
*
* Write out the actual file associations selected by the user to the
* registry.
*/
Function DoFileAssociations
; Set everything to blank, then fill in those values the user specified.
StrCpy $RegVal_rexxAssociation ""
StrCpy $RegVal_rexxEditor ""
StrCpy $RegVal_rexxHideAssociation ""
StrCpy $RegVal_rexxPawsAssociation ""
${if} $Use_File_Associations_CK_state == ${BST_UNCHECKED}
DetailPrint "Do not use Windows file associations specified."
Return
${endif}
${if} $Associate_rexx_CK_state == ${BST_CHECKED}
StrCpy $AssociationProgramName 'rexx.exe'
StrCpy $RegVal_rexxAssociation '$Rexx_ext_text $Rexx_ftype_text'
StrCpy $RegVal_rexxEditor '$Rexx_editor_text'
Call AssociateExtensionWithExe
${endif}
${if} $Associate_rexxhide_CK_state == ${BST_CHECKED}
StrCpy $AssociationProgramName 'rexxhide.exe'
StrCpy $RegVal_rexxHideAssociation '$RexxHide_ext_text $RexxHide_ftype_text'
StrCpy $RegVal_rexxEditor '$Rexx_editor_text'
Call AssociateExtensionWithExe
${endif}
${if} $Associate_rexxpaws_CK_state == ${BST_CHECKED}
StrCpy $AssociationProgramName 'rexxpaws.exe'
StrCpy $RegVal_rexxPawsAssociation '$RexxPaws_ext_text $RexxPaws_ftype_text'
StrCpy $RegVal_rexxEditor '$Rexx_editor_text'
Call AssociateExtensionWithExe
${endif}
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
FunctionEnd
/** DoEnvVariables()
*
* Sets up the variable environemnt variables.
*/
Function DoEnvVariables
Push "REXX_HOME"
Push $INSTDIR
Push $IsAdminUser ; "true" or "false"
Call WriteEnvStr
; Add the install directory to the PATH env variable, either system wide or
; user-specific
Push $INSTDIR
Push $IsAdminUser ; "true" or "false"
Push "PATH"
Call AddToPath
; Do the PATHEXT extensions
Call AddToPathExt
FunctionEnd
/** AssociateExtensionWithExe()
*
* Associates a file extension and file type with one of the ooRexx executables,
* rexx.exe, rexxhide.exe, or rexxpaws. We are only called when we have
* something to do.
*
* TODO - I added the section to install into the user customizable area some
* years ago. Really what we should be doing, rather than this IsAdmin
* stuff is deciding if this is a machine-wide install (All Users) or
* a single-user install. Then use SHCTX or SHELL_CONTEXT to just write
* once. SHCTX will use HKCR if it is an all users install and HKCU for
* a single user install.
*
*/
Function AssociateExtensionWithExe
; We will put the file extension in $0, the ftype in $1, and the editor file
; name in $2
${if} $AssociationProgramName == 'rexx.exe'
${StrTok} $0 $RegVal_rexxAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxAssociation " " "1" "0"
StrCpy $AssociationText "ooRexx Rexx Program"
StrCpy $AssociationEditor '$RegVal_rexxEditor'
${elseif} $AssociationProgramName == 'rexxhide.exe'
${StrTok} $0 $RegVal_rexxHideAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxHideAssociation " " "1" "0"
StrCpy $AssociationText "ooRexx Rexx GUI Program"
StrCpy $AssociationEditor '$RegVal_rexxEditor'
${elseif} $AssociationProgramName == 'rexxpaws.exe'
${StrTok} $0 $RegVal_rexxPawsAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxPawsAssociation " " "1" "0"
StrCpy $AssociationText "ooRexx Rexx pausing Program"
StrCpy $AssociationEditor "$RegVal_rexxEditor"
${else}
DetailPrint "Unrecoverable ERROR. The ftype association executable: $AssociationProgramName is not recognized."
Goto DoneWithRexxExe
${endif}
${if} $0 == ''
${orif} $1 == ''
DetailPrint "Unrecoverable ERROR. Empty string in $AssociationProgramName association"
DetailPrint " Word one=<$0> word two=<$1>"
Goto DoneWithRexxExe
${endif}
ClearErrors
; Write key $0 (.rex for example) with default value of $1 (RexxScript for example.)
WriteRegStr HKCR $0 "" $1
IfErrors TryCurrentUser
DetailPrint "Registered $0 extension as ftype $1 to open with $AssociationProgramName for all users"
Goto WriteHKCRRegKeys
TryCurrentUser:
; Failed to write to the registy, try the user customizable area.
ClearErrors
WriteRegStr HKCU $0 "" $1
IfErrors 0
DetailPrint "Could NOT associate $0 extension with $AssociationProgramName for either all users or the current user"
Goto DonewithRexxExe
DetailPrint "Registered $0 extension as ftype $1 to open with $AssociationProgramName for the current user."
WriteRegStr HKCU "SOFTWARE\Classes\$1" "" $AssociationText
WriteRegStr HKCU "SOFTWARE\Classes\$1\shell" "" "open"
WriteRegStr HKCU "SOFTWARE\Classes\$1\DefaultIcon" "" "$INSTDIR\$AssociationProgramName,0"
WriteRegStr HKCU "SOFTWARE\Classes\$1\shell\open" "" "Run"
WriteRegStr HKCU "SOFTWARE\Classes\$1\shell\open\command" "" '"$INSTDIR\$AssociationProgramName" "%1" %*'
${if} $AssociationEditor != ""
WriteRegStr HKCU "SOFTWARE\Classes\$1\shell\edit" "" "Edit"
WriteRegStr HKCU "SOFTWARE\Classes\$1\shell\edit\command" "" '"$AssociationEditor" "%1"'
${endif}
WriteRegStr HKCU "SOFTWARE\Classes\$1\shellex\DropHandler" "" "{60254CA5-953B-11CF-8C96-00AA00B8708C}"
Goto DoneWithRexxExe
WriteHKCRRegKeys:
WriteRegStr HKCR "$1" "" $AssociationText
WriteRegStr HKCR "$1\shell" "" "open"
WriteRegStr HKCR "$1\DefaultIcon" "" "$INSTDIR\$AssociationProgramName,0"
WriteRegStr HKCR "$1\shell\open" "" "Run"
WriteRegStr HKCR "$1\shell\open\command" "" '"$INSTDIR\$AssociationProgramName" "%1" %*'
${if} $AssociationEditor != ""
WriteRegStr HKCR "$1\shell\edit" "" "Edit"
WriteRegStr HKCR "$1\shell\edit\command" "" '"$AssociationEditor" "%1"'
${endif}
WriteRegStr HKCR "$1\shellex\DropHandler" "" "{60254CA5-953B-11CF-8C96-00AA00B8708C}"
DoneWithRexxExe:
FunctionEnd
/** SetDefaultFileAssociation()
*
* Use to set the variable values for all the file association controls to the
* default.
*/
Function SetDefaultFileAssociation
StrCpy $Use_File_Associations_CK_state '${BST_CHECKED}'
StrCpy $Associate_rexx_CK_state '${BST_CHECKED}'
StrCpy $Rexx_ext_text ${DefRexxExt}
StrCpy $Rexx_ftype_text ${DefRexxFType}
StrCpy $Rexx_editor_text "$WINDIR\System32\NotePad.exe"
StrCpy $Associate_rexxhide_CK_state '${BST_UNCHECKED}'
StrCpy $RexxHide_ext_text ${DefRexxHideExt}
StrCpy $RexxHide_ftype_text ${DefRexxHideFType}
StrCpy $Associate_rexxpaws_CK_state '${BST_UNCHECKED}'
StrCpy $RexxPaws_ext_text ${DefRexxPawsExt}
StrCpy $RexxPaws_ftype_text ${DefRexxPawsFType}
FunctionEnd
/** SetBlankFileAssociation()
*
* Use to set the variable values for all the file association controls to the
* the empty string.
*/
Function SetBlankFileAssociation
StrCpy $Use_File_Associations_CK_state '${BST_UNCHECKED}'
StrCpy $Associate_rexx_CK_state '${BST_UNCHECKED}'
StrCpy $Rexx_ext_text ""
StrCpy $Rexx_ftype_text ""
StrCpy $Rexx_editor_text ""
StrCpy $Associate_rexxhide_CK_state '${BST_UNCHECKED}'
StrCpy $RexxHide_ext_text ""
StrCpy $RexxHide_ftype_text ""
StrCpy $Associate_rexxpaws_CK_state '${BST_UNCHECKED}'
StrCpy $RexxPaws_ext_text ""
StrCpy $RexxPaws_ftype_text ""
FunctionEnd
/** SetFileAssociationVars()
*
* Used to set the variable values for the file association dialog controls to
* the proper value on start up of the installer.
*
* Note: we can not know at this time, if the user will elect to do an upgrade
* type of install. So the RegVal_* variables can not be changed.
*
* If there is no previous install and the reg values are blank, all the
* variables are set to the defaults. Likewise, if there is a previous version
* installed, but the uninstaller version is not able to do an upgrade type of
* install, we also set the variables to their defaults.
*
* Otherwise, the variables are set initially to what is in the registry.
*/
Function SetFileAssociationVars
${if} $PreviousVersionInstalled == 'false'
${andif} $RegVal_rexxAssociation == ''
Call SetDefaultFileAssociation
${elseif} $UpgradeTypeAvailable == 'false'
Call SetDefaultFileAssociation
${else}
${if} $RegVal_rexxAssociation == ''
${andif} $RegVal_rexxHideAssociation == ''
${andif} $RegVal_rexxPawsAssociation == ''
Call SetBlankFileAssociation
${else}
; We will put the file extension in $0 and the ftype in $1
StrCpy $Use_File_Associations_CK_state '${BST_CHECKED}'
StrCpy $Rexx_editor_text "$RegVal_rexxEditor"
${if} $RegVal_rexxAssociation != ''
${StrTok} $0 $RegVal_rexxAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxAssociation " " "1" "0"
StrCpy $Associate_rexx_CK_state '${BST_CHECKED}'
StrCpy $Rexx_ext_text $0
StrCpy $Rexx_ftype_text $1
${else}
StrCpy $Associate_rexx_CK_state '${BST_UNCHECKED}'
${endif}
${if} $RegVal_rexxHideAssociation != ''
${StrTok} $0 $RegVal_rexxHideAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxHideAssociation " " "1" "0"
StrCpy $Associate_rexxhide_CK_state '${BST_CHECKED}'
StrCpy $RexxHide_ext_text $0
StrCpy $RexxHide_ftype_text $1
${else}
StrCpy $Associate_rexxhide_CK_state '${BST_UNCHECKED}'
${endif}
${if} $RegVal_rexxPawsAssociation != ''
${StrTok} $0 $RegVal_rexxPawsAssociation " " "0" "0"
${StrTok} $1 $RegVal_rexxPawsAssociation " " "1" "0"
StrCpy $Associate_rexxpaws_CK_state '${BST_CHECKED}'
StrCpy $RexxPaws_ext_text $0
StrCpy $RexxPaws_ftype_text $1
${else}
StrCpy $Associate_rexxpaws_CK_state '${BST_UNCHECKED}'
${endif}
${endif}
${endif}
FunctionEnd
/** SetSendToVars()
*
* Sets the values of the SendTo check box states on start up. Either to the
* defaults if there is no previous installation or a pre-4.1.0 installation.
* Otherwise, the variables are set to what we read out of the registry.
*/
Function SetSendToVars
${if} $PreviousVersionInstalled == 'false'
${orif} $UpgradeTypeAvailable == 'false'
${orif} $RegVal_sendTo_rexx == ''
StrCpy $SendTo_rexx_CK_state ${BST_UNCHECKED}
StrCpy $SendTo_rexxHide_CK_state ${BST_CHECKED}
StrCpy $SendTo_rexxPaws_CK_state ${BST_CHECKED}
${else}
StrCpy $SendTo_rexx_CK_state $RegVal_sendTo_rexx
StrCpy $SendTo_rexxHide_CK_state $RegVal_sendTo_rexxHide
StrCpy $SendTo_rexxPaws_CK_state $RegVal_sendTo_rexxPaws
${endif}
FunctionEnd
/** CheckInstalledStatus()
*
* Helper function used to determine if there is a previous version of ooRexx
* installed, and if so what level is the uninstaller at.
*/
Function CheckInstalledStatus
StrCpy $PreviousVersionInstalled 'false'
StrCpy $UpgradeTypeAvailable 'false'
${if} $RegVal_uninstallString != ""
StrCpy $PreviousVersionInstalled 'true'
${if} $RegVal_uninstallLocation == ""
; No location in the registry, we'll use the installation directory.
StrCpy $RegVal_uninstallLocation $INSTDIR
${endif}
${if} $RegVal_uninstallVersion != ""
${VersionCompare} $RegVal_uninstallVersion "4.1.0.0" $0
; Returned in $0: 0 == versions are equal, 1 == version is greater than 4.1.0.0, 2 == version is less than 4.1.0.0
${if} $0 < 2
StrCpy $UpgradeTypeAvailable 'true'
${endif}
${endif}
${endif}
FunctionEnd
/** CheckForSpaces()
*
* This function checks for spaces in a string. It is taken from the NSIS
* examples provided on the NSIS site.
*
* It should be used this way:
*
* push <str>
* call CheckForSpaces
* pop $R0
*
* $R0 will contain the number of spaces. When using the LogicLib, a check like
* this can be done
*
* ${if} $R0 > 0
* <do something>
* ${endif}
*
*/
Function CheckForSpaces
Exch $R0
Push $R1
Push $R2
Push $R3
StrCpy $R1 -1
StrCpy $R3 $R0
StrCpy $R0 0
loop:
StrCpy $R2 $R3 1 $R1
IntOp $R1 $R1 - 1
StrCmp $R2 "" done
StrCmp $R2 " " 0 loop
IntOp $R0 $R0 + 1
Goto loop
done:
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd
/** AddToPathExt()
*
* Adds the file extension(s) associated with the ooRexx executables to PATHEXT.
*
* We upper case the extension so that it matches what is commonly seen on
* Windows.
*
* @notes - This could be done for a single-user install, but remember that
* the user specific PATHEXT *replaces* the system wide PATHEXT, so
* we would need to read the system wide value and add the extension
* to it and then write it to the user specific PATHEXT.
*/
Function AddToPathExt
${if} $IsAdminUser == "false" ; TODO fix this
Return
${endif}
${StrTok} $0 $RegVal_rexxAssociation " " "0" "0"
${StrCase} $1 $0 "U"
DetailPrint "Adding the $1 extension to PATHEXT"
Push $1
Push $IsAdminUser ; should only be "true" at this point
Push "PATHEXT"
Call AddToPath
${StrTok} $0 $RegVal_rexxHideAssociation " " "0" "0"
${StrCase} $1 $0 "U"
DetailPrint "Adding the $1 extension to PATHEXT"
Push $1
Push $IsAdminUser ; should only be "true" at this point
Push "PATHEXT"
Call AddToPath
${StrTok} $0 $RegVal_rexxPawsAssociation " " "0" "0"
${StrCase} $1 $0 "U"
DetailPrint "Adding the $1 extension to PATHEXT"
Push $1
Push $IsAdminUser ; should only be "true" at this point
Push "PATHEXT"
Call AddToPath
FunctionEnd
/** InstallRxapi()
*
* Installs rxapi as a service, if the user elected to do so.
*/
Function InstallRxapi
${if} $RxAPIInstallService == 1
; User asked to install rxapi as a service.
DetailPrint "Installing rxapi as a Windows Service"
nsExec::ExecToLog "$INSTDIR\rxapi /i /s"
Pop $R0
${if} $R0 == 0
DetailPrint "rxapi successfully installed as a Windows Service"
Call StartRxapi
${else}
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST "Failed to install rxapi as a Windows Service: $R0\n" /SD IDOK
${endif}
${endif}
FunctionEnd
/** CheckIsRxapiService()
*
* Determines if rxapi is installed as a service. On return the variable
* RxapiIsService will be set to either 'true' or 'false'
*
*/
Function CheckIsRxapiService
services::IsServiceInstalled 'RXAPI'
Pop $R0
${if} $R0 == 'Yes'
StrCpy $RxapiIsService 'true'
${else}
StrCpy $RxapiIsService 'false'
${endif}
FunctionEnd
/** CheckIsRxapirunning()
*
* Determines if a rxapi.exe process is running. On return the variable
* RxapiIsRunning is set to 'true', 'false' or 'unknown N' where N is an error
* return code.
*
* TODO still need to test on Vista / Windows 7
*
*/
Function CheckIsRxapiRunning
${if} $RxapiIsService == 'true'
services::IsServiceRunning 'RXAPI'
Pop $R0
${if} $R0 == 'Yes'
StrCpy $RxapiIsRunning 'true'
${else}
StrCpy $RxapiIsRunning 'false'
${endif}
${else}
ooRexxProcess::findProcess "rxapi.exe"
Pop $R0
DetailPrint "ooRexxProcess::findProcess rc: $R0"
${if} $R0 == '0'
StrCpy $RxapiIsRunning 'true'
${elseif} $R0 == '1'
StrCpy $RxapiIsRunning 'false'
${else}
StrCpy $RxapiIsRunning 'unknown $R0'
${endif}
${endif}
FunctionEnd
/** StartRxapi()
*
* Starts the rxapi service process, if the user elected to do so.
*/
Function StartRxapi
${if} $RxAPIStartService == 1
; User asked to start the rxapi service.
Services::SendServiceCommand 'start' 'RXAPI'
Pop $R0
${if} $R0 == 'Ok'
DetailPrint "The rxapi service was successfully sent the start command"
${else}
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST "Failed to start the ooRexx rxapi service: $R0" /SD IDOK
${endif}
${endif}
FunctionEnd
/** StopRxapi()
*
* Stop the rxapi.exe process.
*
* If rxapi is installed as a service, the stop command should stop it.
* Otherwise, we use killProcess.
*
* On return top of stack will contain 'Ok' for success or 'Error'. If there
* was an error top of stack minus 1 will contain the error code from
* ooRexx::killProcess.
*
* @remarks There was a problem I was having with CheckisRxapiRunning saying
* rxapi was running when it actually was not.
*
* When a service is sent the stop command it may take some time for
* it to report its state to the service control manager. In addition
* the state may first be changed to stop pending. In both of these
* cases CheckIsRxapirunning would report that rxapi is running. So,
* a .3 sleep is added, which hopefully fixes the problem.
*/
Function StopRxapi
${if} $RxapiIsService == 'true'
Services::SendServiceCommand 'stop' 'RXAPI'
Pop $R0
Sleep 300
${else}
ooRexxProcess::killProcess 'rxapi'
Pop $R0
${endif}
Call CheckIsRxapiRunning
${if} $RxapiIsRunning == 'false'
Push 'Ok'
return
${endif}
; Still running, try one more time, it may be that the service has a stop
; pending. Otherwise, this is probably a waste of time. But, we will capture
; the error code for debugging. Note that if the return from killProcess is
; 1, then the process was not found, so it is not running. See the @remarks
; above.
ooRexxProcess::killProcess 'rxapi'
Pop $R0
${if} $R0 == 0
${orif} $R0 == 1
Push 'Ok'
${else}
Push $R0
Push 'Error'
${endif}
FunctionEnd
;===============================================================================
; Uninstaller portion of oorexx.nsi.
;===============================================================================
;
; Note this: If the install was done by a non-admin user, the .rex file association may have been written
; to the HKEY_CURRENT_USER\SOFTWARE\Classes area. You would think that we need to check for
; that and specifically delete those keys. However, testing shows that the current code always
; removes those keys. Tested on a number of machines with a number of different users.
;===============================================================================
; Uninstaller Sections
;===============================================================================
;-------------------------------------------------------------------------------
; Uninstall section
Section "Uninstall"
/*
temporarily comment out orxscrpt stuff while it is disabled in the build.
; orxscrpt.dll needs to be degistered NOTE WSH DLL name may have changed.
!insertmacro UnInstallLib REGDLL NOTSHARED REBOOT_PROTECTED "$INSTDIR\orxscrpt.dll"
;
; In the old WSH code, entering the orxscrpt.dll started up the interpreter.
; This may no longer be the case. If it is, rxapi will need to be stopped
; again.
ooRExxProcess::killProc "rxapi.exe"
*/
/* If we are doing an upgrade type of install, we leave everything as it was. */
${if} $DoUpgrade == 'false'
${if} $RxapiIsService == 'true'
Call un.InstallRxapiService
Pop $R0
${if} $R0 != 0
MessageBox MB_OK|MB_ICONSTOP \
"Unexpected error removing the rxapi service.$\n$\n\
The uninstall will abort. Report this error to$\n\
the ${SHORTNAME} developers:$\n$\n\
Uninstall as service failed: $R0" \
/SD IDOK
SetErrorLevel 3
Quit
${endif}
${endif}
; Get rid of the file associations. Also removes the extension from
; PATHEXT.
Call un.DeleteFileAssociations
; remove directory from PATH
Push $INSTDIR
Push $IsAdminUser ; pushes "true" or "false"
Push "PATH"
Call un.RemoveFromPath
; remove the REXX_HOME environment variable
Push "REXX_HOME"
Push $IsAdminUser ; "true" or "false"
Call un.DeleteEnvStr
${endif}
; Upgrade or not, we always remove the installation stuff.
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}"
;DeleteRegKey HKLM "SOFTWARE\${LONGNAME}" We don't write anything here, maybe we should?
Call un.Delete_Installed_Files
SectionEnd
;===============================================================================
; Uninstaller Functions
;===============================================================================
/** un.onInit() Callback function.
*
* Called by the uninstaller program before any pages are shown. We use it to
* set up the execution variables.
*
*/
Function un.onInit
StrCpy $DoUpgrade 'false'
StrCpy $DoUpgradeQuick 'false'
${GetOptions} "$CMDLINE" "/U=" $R0
${if} $R0 == 'upgrade'
StrCpy $DoUpgrade 'true'
${elseif} $R0 == 'upgradeQuick'
StrCpy $DoUpgrade 'true'
StrCpy $DoUpgradeQuick 'true'
${endif}
StrCpy $DeleteWholeTree 'false'
;StrCpy $DeleteWholeTree 'true' ; TEMP TEMP TEMP always del tree while testing MM */
; UnInstall as All Users if an admin
Call un.IsUserAdmin
Pop $IsAdminUser
${if} $IsAdminUser == "true"
SetShellVarContext all
${endif}
; Read in the file associations done by the installer.
ReadRegStr $RegVal_rexxAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxAssociation"
ReadRegStr $RegVal_rexxHideAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxHideAssociation"
ReadRegStr $RegVal_rexxPawsAssociation HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SHORTNAME}" "RexxPawsAssociation"
StrCpy $StopRxAPI_CK_State 1
StrCpy $InStopRxapiPage 'false'
Call un.CheckIsRxapiService
Call un.CheckIsRxapiRunning
FunctionEnd
/** un.Ok_Stop_RxAPI_page() Custom page function.
*
* This is a custom page that follows the Welcome page. If rxapi.exe is not
* running the page is skipped. If rxapi.exe is running, the user is asked for
* the okay to stop it. If the user says no, we quit the uninstall.
*/
Function un.Ok_Stop_RxAPI_page
${if} $RxapiIsRunning == 'false'
Abort
${endif}
StrCpy $InStopRxapiPage 'true'
!insertmacro MUI_HEADER_TEXT "The ooRexx rxapi process." "The ${LONGNAME} memory manager (rxapi) is currently running"
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${NSD_CreateLabel} 0 0 100% 104u \
"${SHORTNAME} can not be completely uninstalled while rxapi is running.$\n$\n\
When the Stop rxapi check box is checked, the uninstall will stop rxapi before \
proceeding. If the check box is not checked, rxapi will not be stopped.$\n$\n\
If rxapi is not stopped the uninstall will be canceled.$\n$\n\
If, and only if, there are Rexx programs running, stopping the memory manager could \
possibly cause data loss.$\n$\n\
If you are worried about this, cancel the uninstall at this point by using the cancel \
button or unchecking the Stop rxapi check box. Then stop all running Rexx programs, \
and rerun the uninstall program, (or the installation program.)"
Pop $Label_One
${NSD_CreateCheckBox} 0 108u 100% 15u "Stop rxapi"
Pop $StopRxAPI_CK
${NSD_SetState} $StopRxAPI_CK $StopRxAPI_CK_State
GetFunctionAddress $0 un.CheckOkToStopRxapiBack
nsDialogs::OnBack $0
nsDialogs::Show
FunctionEnd
/** un.Ok_Stop_RxAPI_leave() Custom Page Call back function.
*
* Invoked by the uninstaller when the user clicks Next on the Ok to stop rxapi
* page. We check if the user agreed to stopping rxapi. If not we quit the
* uninstaller. Otherwise we stop rxapi. If we can not stop rxapi, we also
* quit the uninstaller.
*/
Function un.Ok_Stop_RxAPI_leave
${NSD_GetState} $StopRxAPI_CK $StopRxAPI_CK_State
${if} $StopRxAPI_CK_State == 0
SetErrorLevel 4
Quit
${endif}
StrCpy $InStopRxapiPage 'false'
Call un.StopRxapi
Pop $R0
${if} $R0 == 'Ok'
Return
${endif}
; rxapi was not stopped, the error code is now at top of stack
Pop $R0
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST \
"Can not determine conclusively that rxapi is currently stopped. It may be$\n\
that you do not have sufficient privileges to uninstall ${SHORTNAME}.$\n\$\n\
The uninstall will quit.$\n$\n\
If you believe you do have sufficient privileges to do the uninstall,$\n\
you can:$\n$\n\
1.) Manually stop the rxapi process and restart the uninstall. If rxapi$\n\
is installed as a service, stop the service. Otherwise, use the task$\n\
manager to end the rxapi process.$\n$\n\
2.) Ask the ${SHORTNAME} developers for help. Please report this error code$\n\
to the ${SHORTNAME} developers: killProcess $R0$\n$\n"\
/SD IDOK
SetErrorLevel 2
Quit
FunctionEnd
Function un.CheckOkToStopRxapiBack
${NSD_GetState} $StopRxAPI_CK $StopRxAPI_CK_State
StrCpy $InStopRxapiPage 'false'
FunctionEnd
/** un.Uninstall_By_Log_page() Custom page function.
*
* This is a custom page that follows the page that checks if it is okay to
* stop rxapi. Here we check for the uninstall log. We then give the user the
* option of simply deleting the ooRexx directory tree (50 times faster on my
* system) or using the log file to individually delete only the install files.
*
* If the uninstall log is missing, the user does not have the option of
* deleting individual files and directories.
*/
Function un.Uninstall_By_Log_page
StrCpy $LogFileExists 'false'
IfFileExists "$INSTDIR\${UninstLog}" 0 +4
StrCpy $LogFileExists 'true'
${if} $LogFileExists == 'false'
!insertmacro MUI_HEADER_TEXT \
"${UninstLog} NOT found." \
"The option of only removing files installed by the prior ooRexx installer is not available."
StrCpy $0 \
"Because the ${UninstLog} file is missing, the uninstall process must remove all \
files in the $INSTDIR directory tree.$\n$\n\
WARNING: This will remove all folders and files in the $INSTDIR folder, including \
any folders or files not placed there by the ooRexx installation.$\n$\n\
If there are any personl folders or files in the $INSTDIR directory tree that need \
to be saved, please cancel the uninstall, move the files, and restart the uninstall \
program."
${else}
!insertmacro MUI_HEADER_TEXT \
"Choose the method for removing installed files." \
"Delete only installed files or delete entire directory tree?"
StrCpy $0 \
"The uninstall program can use an install log to delete only the folders and files \
placed in the $INSTDIR directory tree by the original installation program.$\n$\n\
Optionally, the entire $INSTDIR directory tree can be deleted.$\n$\n\
WARNING: Deleting the entire directory tree will remove all folders and files in the \
$INSTDIR folder. This will include any folders or files not placed there by the ooRexx \
installation."
${endif}
; If the log file exists and we are doing an upgrade type of uninstall, then
; we don't show this page. On the other hand, if we are doing an upgrade, but
; the install log is missing, we do show the page so that the user can cancel
; here.
${if} $DoUpgrade == 'true'
${andif} $LogFileExists == 'true'
Abort
${endif}
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${endif}
${if} $LogFileExists == 'false'
${NSD_CreateLabel} 0 0 100% 80u $0
Pop $Label_One
${NSD_CreateCheckBox} 0 84u 100% 8u "Delete entire directory tree"
Pop $Delete_ooRexx_Tree_CK
${NSD_Check} $Delete_ooRexx_Tree_CK
EnableWindow $Delete_ooRexx_Tree_CK 0
${else}
${NSD_CreateLabel} 0 0 100% 80u $0
Pop $Label_One
${NSD_CreateLabel} 0 100u 100% 16u "To DELETE the entire $INSTDIR directory tree, check the check box."
Pop $Label_Two
${NSD_CreateCheckBox} 0 120u 100% 8u "Delete entire directory tree"
Pop $Delete_ooRexx_Tree_CK
${endif}
; Set focus to the page dialog rather than the installer dialog, set focus to
; the check box, and then show the page dialog
SendMessage $Dialog ${WM_SETFOCUS} $HWNDPARENT 0
SendMessage $Dialog ${WM_NEXTDLGCTL} $Delete_ooRexx_Tree_CK 1
nsDialogs::Show
FunctionEnd
/** un.Uninstall_By_Log_leave() Call back function.
*
* Invoked by the uninstaller when the user clicks Next on the uninstall using
* the log page.
*/
Function un.Uninstall_By_Log_leave
${NSD_GetState} $Delete_ooRexx_Tree_CK $0
${if} $0 == 1
StrCpy $DeleteWholeTree 'true'
${else}
StrCpy $DeleteWholeTree 'false'
${endif}
FunctionEnd
/** un.Confirm_Page_pre() Call back function.
*
* Invoked before the Confirm page, (the page that shows "uninstalling from,")
* is created. We use this to not show that page if we are doing a quick
* upgrade install.
*
*/
Function un.Confirm_Page_pre
${if} $DoUpgrade == 'true'
${andif} $DoUpgradeQuick == 'true'
Abort
${endif}
FunctionEnd
/** un.onCancelButton() Call back function
*
* Invoked by the uninstaller when the user clicks the cancel button. We only
* care if the user was on the ok to stop rxapi page. If so, we set the error
* level to 4 to indicate that, if the uninstall was invoked by the installer,
* we should just quit.
*/
Function un.onCancelButton
${if} $InStopRxapiPage == 'true'
SetErrorLevel 4
${endif}
FunctionEnd
/** un.Delete_Installed_Files()
*
* Deletes the installed files in the manner specified by the user. Either by
* using the log file to delete only files installed by the previous
* installaltion or by simply deleting the whole installation directory.
*/
Function un.Delete_Installed_Files
${if} $DeleteWholeTree == 'true'
DetailPrint "Uninstall files by deleting the $INSTDIR directory tree"
RMDir /r "$INSTDIR"
DetailPrint "Removing all Start Menu short cuts by removing the $SMPROGRAMS\${LONGNAME} folder"
RMDir /r "$SMPROGRAMS\${LONGNAME}"
${else}
DetailPrint "Uninstall files using the install log file"
Push $R0
Push $R1
Push $R2
SetFileAttributes "$INSTDIR\${UninstLog}" NORMAL
FileOpen $UninstLog "$INSTDIR\${UninstLog}" r
StrCpy $R1 0
GetLineCount:
ClearErrors
FileRead $UninstLog $R0
IntOp $R1 $R1 + 1
IfErrors 0 GetLineCount
LoopRead:
FileSeek $UninstLog 0 SET
StrCpy $R2 0
FindLine:
FileRead $UninstLog $R0
IntOp $R2 $R2 + 1
StrCmp $R1 $R2 0 FindLine
StrCpy $R0 $R0 -2
IfFileExists "$R0\*.*" 0 +3
RMDir $R0 #is dir
Goto +3
IfFileExists $R0 0 +2
Delete $R0 #is file
IntOp $R1 $R1 - 1
StrCmp $R1 0 LoopDone
Goto LoopRead
LoopDone:
FileClose $UninstLog
Delete "$INSTDIR\${UninstLog}"
RMDir "$INSTDIR"
Pop $R2
Pop $R1
Pop $R0
${endif}
/*
* Remove the send to entries unless we are doing an updgrade type. These
* entries are not put into the uninstall log. We simply deleted them if we
* are not doing an upgrade and leave them alone if we are doing an upgrade.
*
* If they do not exist, deleting them does not harm, i.e., there is no
* warning or error rasised.
*/
${if} $DoUpgrade == 'false'
Delete "$SENDTO\ooRexx.lnk"
Delete "$SENDTO\ooRexx with pause (rexxpaws).lnk"
Delete "$SENDTO\ooRexx with no console (rexxhide).lnk"
DetailPrint "Removed 'Send To' items (if any.)"
${endif}
FunctionEnd
/** un.InstallRxapiService()
* Removes the rxapi service. Only called if RxapiIsService is true.
*
* The uninstaller always quits right at the beginning if it can not stop the
* rxapi. So logically, rxapi should be stopped, and if it isn't, it should be
* stoppable.
*
* Pushes a return code to the top of the stack. 0 for success, otherwise an
* error code.
*/
Function un.InstallRxapiService
Call un.CheckIsRxapiRunning
${if} $$RxapiIsRunning == 'true'
Services::SendServiceCommand 'stop' 'rxapi'
Pop $R0
${if} $R0 != 'Ok'
; Seems impossible to get here, but if we did, we'll try to kill rxapi.
; If that fails we give up.
DetailPrint "Service Control Manager failed to stop rxapi, forcing termination"
ooRexxProcess::killProcess 'rxapi'
Pop $R0
${if} $R0 != 0
${andif} $R0 != 1
Push $R0
Return
${endif}
${endif}
${endif}
DetailPrint "Uninstalling ooRexx rxapi Service"
nsExec::ExecToLog "$INSTDIR\rxapi /u /s"
Pop $R0
${if} $R0 != 0
; One reason for this could be that rxapi.exe, the file, has been deleted.
; We'll try to handle this case by having the service manager delete the
; service. This can be done even if rxapi.exe is missing.
Services::SendServiceCommand 'delete' 'rxapi'
Pop $R0
${if} $R0 != 'Ok'
DetailPrint "Failed to uninstall rxapi as a service. Reason: $R0"
Push $R0
Return
${endif}
${endif}
DetailPrint "Uninstalled rxapi as a service"
Push 0
FunctionEnd
/** un.DeleteFileAssociations()
*
* Deletes the file associations set by the installer.
*
* @note Notice that we do the uninstaller differently from the installer. In
* the installer, addToPathExt() determines which extensions to add to
* PATHEXT. Here, un.DeleteFileAssociations decides which extensions to
* remove from the PATHEXT.
*
* TODO need to test this well. TODO need to determine if this is a per machine
* install or a per user install!!!!
*/
Function un.DeleteFileAssociations
; We will put the file extension in $0 and the ftype in $1
${if} $RegVal_rexxAssociation != ''
${UnStrTok} $0 $RegVal_rexxAssociation " " "0" "0"
${UnStrTok} $1 $RegVal_rexxAssociation " " "1" "0"
; Only delete the association if we own it. In other words, the ftype we
; read from the registry should match the ftype we saved in our uninstall
; strings.
ReadRegStr $2 HKCR "$0" ""
${if} $1 == $2
DeleteRegKey HKCR "$0"
DeleteRegKey HKCR "$1"
DetailPrint "Deleted file association for $0"
push $0
Call un.AddToPathExt
${endif}
${endif}
${if} $RegVal_rexxHideAssociation != ''
${UnStrTok} $0 $RegVal_rexxHideAssociation " " "0" "0"
${UnStrTok} $1 $RegVal_rexxHideAssociation " " "1" "0"
ReadRegStr $2 HKCR "$0" ""
${if} $1 == $2
DeleteRegKey HKCR "$0"
DeleteRegKey HKCR "$1"
DetailPrint "Deleted file association for $0"
push $0
Call un.AddToPathExt
${endif}
${endif}
${if} $RegVal_rexxPawsAssociation != ''
${UnStrTok} $0 $RegVal_rexxPawsAssociation " " "0" "0"
${UnStrTok} $1 $RegVal_rexxPawsAssociation " " "1" "0"
ReadRegStr $2 HKCR "$0" ""
${if} $1 == $2
DeleteRegKey HKCR "$0"
DeleteRegKey HKCR "$1"
DetailPrint "Deleted file association for $0"
push $0
Call un.AddToPathExt
${endif}
${endif}
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
FunctionEnd
/** un.AddToPathExt()
*
* Removes the specified file extension from PATHEXT. The file extension is
* pushed on the stack to send it here.
*
* @notes - This could be done for a single-user install, but remember that
* ... what? - need to think about how to do this for a single user,
* could easily hose the system for a user. I.e., end up with no
* programs running from the command line.
*
* Usage:
* Push <ext>
*
* Here:
* Pop $R0 -> $R0 now contains the extension to un.add to PATHEXT. I.e., the
* extension to remove.
*/
Function un.AddToPathExt
Pop $R0
${if} $IsAdminUser == "false"
Return
${endif}
DetailPrint "Removing the $R0 extension from PATHEXT."
Push $R0
Push $IsAdminUser ; should only be "true" at this point
Push "PATHEXT"
Call un.RemoveFromPath
FunctionEnd
/** un.CheckIsRxapiService()
*
* Checks if rxap is installed as a Windows service. Copies true or false to
* the variable: RxapiIsService as appropriate.
*/
Function un.CheckIsRxapiService
services::IsServiceInstalled 'RXAPI'
Pop $R0
${if} $R0 == 'Yes'
StrCpy $RxapiIsService 'true'
${else}
StrCpy $RxapiIsService 'false'
${endif}
FunctionEnd
/** un.CheckIsRxapiRunning()
*
* Determines if rxapi.exe is running.
*
* On return the top of the stack contains 'true', 'false', or 'unknoww <rc>'
* where the <rc> is the error recturn code from ooRexxProcess::findProcess.
*
* TODO still need to test on Vista / Windows 7 as regular user.
*/
Function un.CheckIsRxapiRunning
${if} $RxapiIsService == 'true'
services::IsServiceRunning 'RXAPI'
Pop $R0
${if} $R0 == 'Yes'
StrCpy $RxapiIsRunning 'true'
${else}
StrCpy $RxapiIsRunning 'false'
${endif}
${else}
ooRexxProcess::findProcess "rxapi.exe"
Pop $R0
DetailPrint "ooRexxProcess::findProcess rc: $R0"
${if} $R0 == '0'
StrCpy $RxapiIsRunning 'true'
${elseif} $R0 == '1'
StrCpy $RxapiIsRunning 'false'
${else}
StrCpy $RxapiIsRunning 'unknown $R0'
${endif}
${endif}
FunctionEnd
/** un.StopRxapi()
*
* Stop the rxapi.exe process.
*
* If rxapi is installed as a service, the stop command should stop it.
* Otherwise, we use killProcess.
*
* On return top of stack will contain 'Ok' for success or 'Error'. If there
* was an error top of stack minus 1 will contain the error code from
* ooRexx::killProcess.
*
* @remarks There was a problem I was having with CheckisRxapiRunning saying
* rxapi was running when it actually was not.
*
* When a service is sent the stop command it may take some time for
* it to report its state to the service control manager. In addition
* the state may first be changed to stop pending. In both of these
* cases CheckIsRxapirunning would report that rxapi is running. So,
* a .3 sleep is added, which hopefully fixes the problem.
*/
Function un.StopRxapi
${if} $RxapiIsService == 'true'
Services::SendServiceCommand 'stop' 'RXAPI'
Pop $R0
Sleep 300
${else}
ooRexxProcess::killProcess 'rxapi'
Pop $R0
${endif}
Call un.CheckIsRxapiRunning
${if} $RxapiIsRunning == 'false'
Push 'Ok'
return
${endif}
; Still running, try one more time, it may be that the service has a stop
; pending. Otherwise, this is probably a waste of time. But, we will capture
; the error code for debugging. Note that if the return from killProcess is
; 1, then the process was not found, so it is not running. See the @remarks
; above.
ooRexxProcess::killProcess 'rxapi'
Pop $R0
${if} $R0 == 0
${orif} $R0 == 1
Push 'Ok'
${else}
Push $R0
Push 'Error'
${endif}
FunctionEnd
;eof