-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathNAM Installer Script_english.nsi
More file actions
1604 lines (1490 loc) · 88.9 KB
/
NAM Installer Script_english.nsi
File metadata and controls
1604 lines (1490 loc) · 88.9 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
; Script generated by the HM NIS Edit Script Wizard.
; This defines compression method
SetCompressor /SOLID lzma
BrandingText "Network Addon Mod Setup"
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Network Addon Mod"
!define PRODUCT_VERSION "Version 50 (Build 05)"
!define PRODUCT_PUBLISHER "NAM Team"
!define PRODUCT_WEB_SITE "http://www.sc4nam.com"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKCU"
; MUI 1.67 compatible ------
!include "UMUI.nsh"
!include "Sections.nsh"
!include "LogicLib.nsh"
!include "FileFunc.nsh"
!include "StrFunc.nsh"
!include "WinVer.nsh"
!include "nsDialogs.nsh"
!include "x64.nsh"
!include "MoveFileFolder.nsh"
;FileExists is already part of LogicLib, but returns true for directories as well as files
!macro _FileExists2 _a _b _t _f
!insertmacro _LOGICLIB_TEMP
StrCpy $_LOGICLIB_TEMP "0"
StrCmp `${_b}` `` +4 0 ;if path is not blank, continue to next check
IfFileExists `${_b}` `0` +3 ;if path exists, continue to next check (IfFileExists returns true if this is a directory)
IfFileExists `${_b}\*.*` +2 0 ;if path is not a directory, continue to confirm exists
StrCpy $_LOGICLIB_TEMP "1" ;file exists
;now we have a definitive value - the file exists or it does not
StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}`
!macroend
!undef FileExists
!define FileExists `"" FileExists2`
!macro _DirExists _a _b _t _f
!insertmacro _LOGICLIB_TEMP
StrCpy $_LOGICLIB_TEMP "0"
StrCmp `${_b}` `` +3 0 ;if path is not blank, continue to next check
IfFileExists `${_b}\*.*` 0 +2 ;if directory exists, continue to confirm exists
StrCpy $_LOGICLIB_TEMP "1"
StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}`
!macroend
!define DirExists `"" DirExists`
!insertmacro Locate
Var /GLOBAL switch_overwrite
; Add splash screen
!define MUI_WELCOMEFINISHPAGE_BITMAP "nam50dev.bmp" ; the logo on the left of the first installer screen - 164x314 pixels by default - 171x373 for UMUI
!define UMUI_WELCOMEPAGE_TITLE_3LINES ; default is 2 lines, but 3 might be better if you have a long title
!define UMUI_FINISHPAGE_TITLE_3LINES
!define /IfNDef UMUI_LEFTIMAGE_BMP \
"nam50dev.bmp"
; MUI Settings
!define UMUI_ABORTWARNING
!define UMUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define UMUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define UMUI_HEADERIMAGE
!define UMUI_HEADERIMAGE_BITMAP_NOSTRETCH "NAM_logo.bmp" ; the logo in the top right corner of the other installer screens - 150x57 pixels by default
!define UMUI_HEADERIMAGE_RIGHT
!define MUI_COMPONENTSPAGE_SMALLDESC
; Language Selection Dialog Settings
!define UMUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define UMUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define UMUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!define UMUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "license_english.txt" ; a simple TXT file, keep it together with the BMP logos in the same folder where this installer script is located
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Components page
; !define MUI_PAGE_CUSTOMFUNCTION_LEAVE ComponentsLeave
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE MemoryPatches
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN
; !define MUI_FINISHPAGE_RUN_TEXT "Install/Start &Traffic Simulator Configuration Tool (also allows customization of new Data Views)"
; !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchTSCT"
; !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Documentation\1.README.htm" ; the path of your readme file, once it is installed
; !define MUI_PAGE_CUSTOMFUNCTION_PRE CheckTSCT
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "NetworkAddonMod_Setup_Version50_Build05.exe"
InstallDir "$DOCUMENTS\SimCity 4"
ShowInstDetails show
ShowUnInstDetails show
; Variables
Var SC4InstallDir
Var Memory
Var NAMAuxDir
Var Wine
Var SC4Exec
Var OSLang
Var SC4Docs
;Initializations
!insertmacro DirState
!insertmacro Locate
${StrStr} ;This makes no sense at all. But it's necessary...
; ${StrLoc}
; Setting pre-defined installation types
InstType "/CUSTOMSTRING=Click here for standard installation types"
InstType "Recommended (right-hand drive version)" ;InstType 1
InstType "Recommended (left-hand drive version)" ;InstType 2
InstType "Full installation (right-hand drive version)" ;InstType 3
InstType "Full installation (left-hand drive version)" ;InstType 4
InstType "Minimum installation (right-hand drive version)" ;InstType 5
InstType "Minimum installation (left-hand drive version)" ;InstType 6
; Defining Groups for the components selection page
Section "!Core NAM Files and Features" sec1 ; sec1 is a short name for description reference (see below)
SectionIn RO ; RO means read-only, so the user cannot deselect this
SectionIn 1 2 3 4 5 6 ; in which installation types (defined above) this section will show up
;Backs up any previous NAM install outside the Plugins folder
StrCpy $switch_overwrite 0
!insertmacro MoveFile "$INSTDIR\Plugins\NAM.dll" "$INSTDIR\Old NAM Backup\NAM.dll"
!insertmacro MoveFolder "$INSTDIR\Plugins\Network Addon Mod" "$INSTDIR\Old NAM Backup\Network Addon Mod" "*.*"
!insertmacro MoveFolder "$INSTDIR\Plugins\777 Network Addon Mod" "$INSTDIR\Old NAM Backup\777 Network Addon Mod" "*.*" ;sc4pac version
;Beginning of actual installation process
SetOutPath "$INSTDIR\Plugins"
File "NAM.dll"
File "NAM.ini"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\1 Core"
SetOverwrite ifnewer
File "@4^1 Core\NetworkAddonMod_a_Controller_Marker.dat"
File "@4^1 Core\NetworkAddonMod_a_EP1Paths.dat"
File "@4^1 Core\NetworkAddonMod_BaseContent.dat"
File "@4^1 Core\NetworkAddonMod_BaseContent_Textures.dat"
File "@4^1 Core\NetworkAddonMod_Eraser.dat"
File "@4^1 Core\NetworkAddonMod_Misc_Transit_Menu_Adjustment.dat"
File "@4^1 Core\NetworkAddonMod_Monorail_Menu_Adjustment.dat"
File "@4^1 Core\NetworkAddonMod_UI.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\1 Core\locale"
File "@4^1 Core\locale\NetworkAddonMod_Locale_de.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_en.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_es.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_fr.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_it.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_ja.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_ko.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_nl.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_pt.dat"
File "@4^1 Core\locale\NetworkAddonMod_Locale_sv.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue\Base Features"
File "@52 Network Features\Road, One-Way Road, and Avenue#\^Base Features\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Street\Base Features"
File "@52 Network Features\Street#\^Base Features\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Monorail\Base Features"
File "@52 Network Features\Monorail#\^Base Features\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges"
File "@57 Bridges\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\0-Road\Road"
File "@57 Bridges\0-Road\Road\NetworkAddonMod_Road_Bridges_Bulk.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\6-Avenue\Avenue"
File "@57 Bridges\6-Avenue\Avenue\NetworkAddonMod_Avenue_Bridges_Bulk.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\8-El-Rail\El-Rail"
File "@57 Bridges\8-El-Rail\El-Rail\NetworkAddonMod_ElRail_Bridges_Bulk.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\a-One Way\One-way"
File "@57 Bridges\a-One Way\One-way\NetworkAddonMod_One_Way_Bridges_Bulk.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\z-Bridge Controller"
File "@57 Bridges\^z-Bridge Controller\NetworkAddonMod_Bridge_Controller.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\zz - Shared Resources"
File "@57 Bridges\zz - Shared Resources\*.dat"
File "@57 Bridges\zz - Shared Resources\*.SC4MODEL"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\z_Common Files"
File "@58 Texture and Drive Side Support\@2^z_Common Files\*.dat"
SectionEnd
/* Section "ReadMe Files" sec2
SectionIn RO ; documentation optimally should be installed. Note, if user doesnt install readme files the finsh page cant display the readme file.
SectionIn 1 2 3 4 5 6
SetOutPath "$INSTDIR\Documentation"
SetOverwrite ifnewer
File "Documentation\1.README.htm"
File "Documentation\2.InstallationInstructionsFile.htm"
File "Documentation\3.ContentsFile.htm"
File "Documentation\4.HistoryFile.htm"
File "Documentation\5.TechnicalNotesFile.htm"
File "Documentation\7.Q&A.htm"
File "Documentation\9.CreditsFile.htm"
File "Documentation\10B.Automata_Plugin_Files.htm"
File "Documentation\10A.Traffic_Plugin_Files.htm"
File "Documentation\10C.Data_View_Files.htm"
SetOutPath "$INSTDIR\Documentation\images"
SetOverwrite ifnewer
File "Documentation\images\diagonal_streets.jpg"
File "Documentation\images\diagonal_streets2.jpg"
File "Documentation\images\draggable_glr.jpg"
File "Documentation\images\glr_puzzle_pieces.jpg"
File "Documentation\images\oneway_puzzle_pieces.jpg"
File "Documentation\images\oneway_roundabout.jpg"
File "Documentation\images\ped_malls.jpg"
File "Documentation\images\puzzle_pieces.jpg"
File "Documentation\images\road_roundabout.jpg"
File "Documentation\images\traffic_volume_view.jpg"
SectionEnd
*/
SectionGroup /e "!NAM Controller (select one)" sec3
; SectionIn RO
; SectionEnd
Section "NAM Right Hand Traffic (RHT) Controller" controller1
SectionIn 1 3 5
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\0 NAM Controller_RHD"
SetOverwrite ifnewer
File "@0=0 NAM Controller_RHD_4GB_Full\NetworkAddonMod_Controller.dat"
File "@0=0 NAM Controller_RHD_4GB_Full\NetworkAddonMod_IndividualNetworkRULs_RHD.dat"
SectionEnd
Section /o "NAM Left Hand Traffic (LHT) Controller" controller2
SectionIn 2 4 6
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\0 NAM Controller_LHD"
SetOverwrite ifnewer
File "@1-0 NAM Controller_LHD_4GB_Full\NetworkAddonMod_Controller.dat"
File "@1-0 NAM Controller_LHD_4GB_Full\NetworkAddonMod_IndividualNetworkRULs_LHD.dat"
SectionEnd
Section -dummy controller3
SectionIn 7
SectionEnd
SectionGroupEnd
;Section "!Traffic Simulator Capacity Level (select one)" sec11
;SectionIn RO
;SectionEnd
SectionGroup /e "Traffic Simulator Capacity (select one)" sec11
Section /o "NAM Simulator Classic" capa1
; Call DeleteOldSimulatorFiles
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\9 Traffic Simulator"
SetOverwrite ifnewer
File "@59 Traffic Simulator#\@1-Classic (Original Maxis Capacity - Lowest Capacity)\NetworkAddonMod_Traffic_Plugin_Z_Classic.dat"
File "@59 Traffic Simulator#\@1-Classic (Original Maxis Capacity - Lowest Capacity)\NetworkAddonMod_Volume_Data_View_Z_Classic.dat"
File "@59 Traffic Simulator#\@1-Classic (Original Maxis Capacity - Lowest Capacity)\NetworkAddonMod_TrafficSimCapacityMarker_Classic.dat"
SectionEnd
Section "NAM Simulator Low" capa2
SectionIn 1 2 3 4 5 6
; Call DeleteOldSimulatorFiles
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\9 Traffic Simulator"
SetOverwrite ifnewer
File "@59 Traffic Simulator#\@2=Low (Recommended)\NetworkAddonMod_Traffic_Plugin_Z_Low.dat"
File "@59 Traffic Simulator#\@2=Low (Recommended)\NetworkAddonMod_Volume_Data_View_Z_Low.dat"
File "@59 Traffic Simulator#\@2=Low (Recommended)\NetworkAddonMod_TrafficSimCapacityMarker_Low.dat"
SectionEnd
Section /o "NAM Simulator Medium" capa3
; Call DeleteOldSimulatorFiles
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\9 Traffic Simulator"
SetOverwrite ifnewer
File "@59 Traffic Simulator#\@3-Medium\NetworkAddonMod_Traffic_Plugin_Z_Medium.dat"
File "@59 Traffic Simulator#\@3-Medium\NetworkAddonMod_Volume_Data_View_Z_Medium.dat"
File "@59 Traffic Simulator#\@3-Medium\NetworkAddonMod_TrafficSimCapacityMarker_Medium.dat"
SectionEnd
Section /o "NAM Simulator High" capa4
; Call DeleteOldSimulatorFiles
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\9 Traffic Simulator"
SetOverwrite ifnewer
File "@59 Traffic Simulator#\@4-High\NetworkAddonMod_Traffic_Plugin_Z_High.dat"
File "@59 Traffic Simulator#\@4-High\NetworkAddonMod_Volume_Data_View_Z_High.dat"
File "@59 Traffic Simulator#\@4-High\NetworkAddonMod_TrafficSimCapacityMarker_High.dat"
SectionEnd
Section /o "NAM Simulator Ultra" capa5
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\9 Traffic Simulator"
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "@59 Traffic Simulator#\@5-Ultra (Highest Capacity)\NetworkAddonMod_Traffic_Plugin_Z_Ultra.dat"
File "@59 Traffic Simulator#\@5-Ultra (Highest Capacity)\NetworkAddonMod_Volume_Data_View_Z_Ultra.dat"
File "@59 Traffic Simulator#\@5-Ultra (Highest Capacity)\NetworkAddonMod_TrafficSimCapacityMarker_Ultra.dat"
SectionEnd
SectionGroupEnd
SectionGroup /e "!Automata Controller Files (select one)" sec10
Section /o "Standard" auto1
SectionIn 1 2 3 4 5 6
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@1-Standard\NetworkAddonMod_Automata_Plugin_Standard.dat"
SectionEnd
Section /o "Standard 24-Hour" auto2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@2-Standard 24-Hour\NetworkAddonMod_Automata_Plugin_Automata24.dat"
SectionEnd
Section "Standard Persistent" auto3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@3=Standard Persistent\NetworkAddonMod_Automata_Plugin_Standard_Persist.dat"
SectionEnd
Section /o "Standard Persistent 24-Hour" auto4
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@4-Standard Persistent 24-Hour\NetworkAddonMod_Automata_Plugin_Automata24_Persist.dat"
SectionEnd
Section /o "Radical" auto5
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@5-Radical\NetworkAddonMod_Automata_Plugin_Radical.dat"
SectionEnd
Section /o "Radical 24-Hour" auto6
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@6-Radical 24-Hour\NetworkAddonMod_Automata_Plugin_Radical_Automata24.dat"
SectionEnd
Section /o "Radical Persistent" auto7
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@7-Radical Persistent\NetworkAddonMod_Automata_Plugin_Radical_Persist.dat"
SectionEnd
Section /o "Radical Persistent 24-Hour" auto8
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
File "@54 Automata Controller#\@8-Radical Persistent 24-Hour\NetworkAddonMod_Automata_Plugin_Radical_Automata24_Persist.dat"
SectionEnd
Section /o "LB Radical Persistent 24-Hour" auto9
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\4 Automata Controller"
SetOverwrite ifnewer
; Delete $OUTDIR\NetworkAddonMod_Automata_Plugin_*.dat
File "@54 Automata Controller#\@9-LB Radical Persistent 24-Hour\NAM_LB_Automata_Plugin_Radical_Automata24_Persist.dat"
SectionEnd
SectionGroupEnd
SectionGroup /e "!Network Features and Additions" sec4
SectionGroup "!Surface Roadway Features" roamain
Section "Draggable Elevated Viaducts" roavia1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
;includes resources for puzzle piece viaducts for seamless legacy support
File "@52 Network Features\Road, One-Way Road, and Avenue#\Elevated Viaducts\NetworkAddonMod_RoadViaducts_*.dat"
SectionEnd
Section "Legacy Elevated Viaduct Puzzle Pieces" roavia2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Elevated Viaducts\NetworkAddonMod_Legacy_RoadViaductPuzzlePieceButtons.dat"
SectionEnd
Section "Alternate Elevated Viaducts" roavia3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Elevated Viaducts\Viaduct Additions\*.dat"
SectionEnd
SectionGroup "Network Widening Mod and Turning Lanes" nwmturn
Section "Network Widening Mod" nwm
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkWideningMod_*.dat"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkAddonMod_Roundabouts_Turbo_Plugin.dat"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkAddonMod_TurningLanes_OneWayRoadSignalization_Plugin.dat"
SectionEnd
Section "RealExpressway (REW) Ramp System" rew
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\RealExpressway\*.dat"
File "@52 Network Features\Road, One-Way Road, and Avenue#\RealExpressway\RealExpressway_FLEX_Piece\1_Paths\*.dat"
File "@52 Network Features\Road, One-Way Road, and Avenue#\RealExpressway\RealExpressway_FLEX_Piece\Z_Rotation_Ring_Files\*.dat"
SectionEnd
Section /o "Legacy Turn Lane Extension Pieces (TuLEPs)" tulep
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkAddonMod_TurningLanes_Extension_*.dat"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!Legacy Turn Lane Extension Piece (TuLEP) Menu Access\NetworkAddonMod_TuLEP_LegacyButtons.dat"
SectionEnd
Section /o "Legacy Auto Avenue Turn Lanes" atl
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!Legacy Auto Avenue Turn Lanes\NetworkAddonMod_TurningLanes_Avenues_Plugin_INRULs.dat"
SectionEnd
Section "Flexible Turn Lanes (FTLs)" ftl
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkAddonMod_TurningLanes_Flexible.dat"
;legacy support without menu buttons
${Unless} ${SectionIsSelected} ${tulep}
File "@52 Network Features\Road, One-Way Road, and Avenue#\Network Widening Mod and Turn Lanes\NetworkAddonMod_TurningLanes_Extension_*.dat"
${EndIf}
SectionEnd
Section "Network Widening Mod Bridges" nwmbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\0-Road\NWM"
File "@57 Bridges\0-Road\NWM\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\6-Avenue\NWM"
File "@57 Bridges\6-Avenue\NWM\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\a-One Way\NWM"
File "@57 Bridges\a-One Way\NWM\*.dat"
SectionEnd
SectionGroupEnd
SectionGroup "Street Addon Mod Features" sammain
Section "Street Addon Mod" sam
SectionEnd
Section "Street Addon Mod Bridges" sambridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\SAM"
File "@57 Bridges\3-Street\SAM\*.dat"
SectionEnd
SectionGroupEnd
Section "Rural Roads Plugin (RuRP)" rurp
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\Rural Roads Plugin\NetworkAddonMod_Rural_Roads_*.dat"
SectionEnd
SectionGroup "One-Way Road Arrow Plugins" owrarrowmain
Section "Default One-Way Road Arrows" owrarrow1
SectionEnd
Section /o "One-Way Road Arrow Removal" owrarrow2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!One-Way Road Arrow Plugins\=One-Way Road Arrow Elimination\*.dat"
SectionEnd
Section /o "One-Way Road Arrow Reduction" owrarrow3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!One-Way Road Arrow Plugins\-One-Way Road Arrow Reduction\*.dat"
SectionEnd
Section /o "One-Way Road Single Arrow" owrarrow4
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!One-Way Road Arrow Plugins\Single Arrows for One-Way Roads\*.dat"
SectionEnd
SectionGroupEnd
Section "Additional Street Bridges" streetbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
File "@57 Bridges\3-Street\Street\*.dat"
SectionEnd
Section "Additional Road Bridges" roadbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\0-Road\Road"
File "@57 Bridges\0-Road\Road\*.dat"
SectionEnd
Section "Additional One-Way Road Bridges" owrbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\a-One Way\One-way"
File "@57 Bridges\a-One Way\One-way\*.dat"
SectionEnd
Section "Additional Avenue Bridges" avebridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\6-Avenue\Avenue"
File "@57 Bridges\6-Avenue\Avenue\*.dat"
SectionEnd
/* Verbose versions that allow specific bridges to be installed/not installed
SectionGroupEnd
SectionGroup "Additional Street Bridges" streetbridgemain
Section "Blue Suspension Street Bridge" streetbridge1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Covered Street Bridge" streetbridge2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Green Truss Street Bridge" streetbridge3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "IDS2 V-Shaped Steel Girder Street Bridge" streetbridge4
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Concrete Street Bridge" streetbridge5
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Level Street Bridge" streetbridge6
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Pont Neuf Street Bridge" streetbridge7
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Rural Street Bridge" streetbridge8
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Red Truss Street Bridge" streetbridge9
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Steel Girder Street Bridge" streetbridge10
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
Section "Yellow Steel Girdder Street Bridge" streetbridge11
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\Street"
SectionEnd
SectionGroupEnd
SectionGroup "Additional Road Bridges" roadbridgemain
SectionGroupEnd
SectionGroup "Additional One-Way Road Bridges" owrbridgemain
SectionGroupEnd
SectionGroup "Additional Avenue Bridges" avebridgemain
SectionGroupEnd
*/
Section /o "Wide Corner Road and One-Way Road Diagonal Intersections" widecrn
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Road, One-Way Road, and Avenue"
File "@52 Network Features\Road, One-Way Road, and Avenue#\!Wide Corner Road and One-Way Road DxD Intersections\NetworkAddonMod_WideCorner_DxD_Intersections.dat"
SectionEnd
SectionGroupEnd
SectionGroup "!Rail (RealRailway/RRW)" rail
Section "RealRailway (RRW) Standard" rrw
SectionIn RO
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\0_Rail_Legacy"
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\1_Curves\*.dat"
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\2_Railway Addon Mod\*.dat"
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\3_Rail Viaducts\*.dat"
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\5_Legacy_Textures_RRW\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\a_RealRailway_Core"
File "@52 Network Features\^z_Rail (RealRailway)\a_RealRailway_Core\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\c_RealRailway_Tunnel"
File "@52 Network Features\^z_Rail (RealRailway)\c_RealRailway_Tunnel\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\e_RealRailway_Props"
File "@52 Network Features\^z_Rail (RealRailway)\e_RealRailway_Props\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\g_RealRailway_Stations\Brenda_Xne Modern L2 Viaduct Rail Station"
File "@52 Network Features\^z_Rail (RealRailway)\g_RealRailway_Stations\Brenda_Xne Modern L2 Viaduct Rail Station\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\g_RealRailway_Stations\Xyloxadoria Modern Diagonal L2 Viaduct Rail Station"
File "@52 Network Features\^z_Rail (RealRailway)\g_RealRailway_Stations\Xyloxadoria Modern Diagonal L2 Viaduct Rail Station\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\h_RealRailway_ABE_Bridges"
File "@52 Network Features\^z_Rail (RealRailway)\h_RealRailway_ABE_Bridges\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\z_RealRailway_Textures"
File "@52 Network Features\^z_Rail (RealRailway)\z_RealRailway_Textures\*.dat"
SectionEnd
Section "Optional RealRailway (RRW) Legacy Support for Pre-RRW Items" rrwpre
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\6_Optional_Legacy_PreRRW\zOptional_RealRailway_Textures_Legacy_PreRRW.dat"
SectionEnd
SectionGroup "RealRailway Slope Settings" rrwslopemain
Section "Default Slope Settings" rrwslope1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RRW Tunnel and Slope Parameters#"
File "@52 Network Features\RRW Tunnel and Slope Parameters#\@1-Maxis Default\*.dat"
SectionEnd
Section /o "Moderate Slope Settings" rrwslope2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RRW Tunnel and Slope Parameters#"
File "@52 Network Features\RRW Tunnel and Slope Parameters#\@2=Moderate\*.dat"
SectionEnd
Section /o "Strict Slope Settings" rrwslope3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RRW Tunnel and Slope Parameters#"
File "@52 Network Features\RRW Tunnel and Slope Parameters#\@3-Strict\*.dat"
SectionEnd
SectionGroupEnd
Section "Underground Rail (URail)" urail
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\z_Rail (RealRailway)\0_Rail_Legacy"
File "@52 Network Features\^z_Rail (RealRailway)\0_Rail_Legacy#\4_Underground Rail\*.dat"
SectionEnd
Section "Additional Rail Bridges" railbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\1-Rail\Maxis"
File "@57 Bridges\1-Rail\Maxis\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\1-Rail\Maxis Bridge Overrides"
File "@57 Bridges\1-Rail\Maxis Bridge Overrides\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\1-Rail\Rail Viaduct Bridges"
File "@57 Bridges\1-Rail\Rail Viaduct Bridges\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\1-Rail\RRW"
File "@57 Bridges\1-Rail\RRW\*.dat"
SectionEnd
SectionGroupEnd
SectionGroup "!RealHighway (RHW)" rhw
Section "Base Features and Network Tool" rhwbase
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\^Base Features and Network Tool\*.dat"
File "@52 Network Features\RealHighway#\RHW Double-Deck Networks\*.dat"
File "@52 Network Features\RealHighway#\RHW FLEXFly\*.dat"
File "@52 Network Features\RealHighway#\RHW Small Networks and Ramps\*.dat"
File "@52 Network Features\RealHighway#\RHW Wider C-Type Networks\*.dat"
File "@52 Network Features\RealHighway#\RHW Wider S-Type Networks\*.dat"
File "@52 Network Features\RealHighway#\Special Intersection Pieces\*.dat"
File "@52 Network Features\RealHighway#\Three-Level Crossings\*.dat"
File "@52 Network Features\RealHighway#\RHW FLEX Turn Lanes\*.dat"
SectionEnd
Section "Regional Transportation View Support for RHW" rhwreg
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\RHW Regional Transport Map Plugin\*.dat"
SectionEnd
Section "RHW Cosmetic Pieces" rhwcp
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\RHW Cosmetic Pieces\*.dat"
SectionEnd
Section "Bus Rapid Transit Support" rhwbrt
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\Bus Rapid Transit Support\Bus Filters for L0 RHW-2\*.dat"
File "@52 Network Features\RealHighway#\Bus Rapid Transit Support\E-N BriPizza L2 Elevated Road Bus Stop\*.dat"
File "@52 Network Features\RealHighway#\Bus Rapid Transit Support\Xyloxadoria Modern Arch BRT Station\*.dat"
SectionEnd
Section "RHW Legacy Support Plugin" rhwlegacy
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\a_Legacy Support#\^Primary Legacy Support\*.dat"
SectionEnd
Section /o "RHW Legacy Puzzle Pieces" rhwpuzzle
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\a_Legacy Support#\!Legacy Puzzle Piece Menu Buttons\*.dat"
SectionEnd
Section "RHW FLUPs Legacy Support" rhwflupleg
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\a_Legacy Support#\RHW FLUPs Legacy Support\*.dat"
SectionEnd
Section "RHW Bridges" rhwbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\b-Real Highway"
File "@57 Bridges\b-Real Highway\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\c-Ground Highway"
File "@57 Bridges\c-Ground Highway\RHW\*.dat"
SectionEnd
SectionGroupEnd
SectionGroup "!Pedestrian Malls and Paths" ped
Section "Draggable Classic Pedestrian Malls" ped1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Pedestrian Malls and Paths"
File "@52 Network Features\Pedestrian Malls and Paths#\NAMSC4_Classic_DragPedmalls_*.dat"
SectionEnd
Section "Pedestrian Mall and Elevated Walkway Puzzle Pieces" ped2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Pedestrian Malls and Paths"
File "@52 Network Features\Pedestrian Malls and Paths#\NetworkAddonMod_PedMalls.dat"
File "@52 Network Features\Pedestrian Malls and Paths#\NetworkAddonMod_PedMalls_Textures.dat"
SectionEnd
Section "Mid-Block Crosswalks" midblock
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Pedestrian Malls and Paths"
File "@52 Network Features\Pedestrian Malls and Paths#\Midblock Crosswalks#\*.dat"
SectionEnd
Section "PedMall Bridges" pedbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\3-Street\PRM"
File "@57 Bridges\3-Street\PRM\*.dat"
SectionEnd
SectionGroupEnd
Section "Hybrid Railway Plugin" hrw
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\a_HybridRailway_Icons_Previews"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\a_HybridRailway_Icons_Previews\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\b_HybridRailway_Exemplars"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\b_HybridRailway_Exemplars\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\c_Hybrid Railway_Models"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\c_Hybrid Railway_Models\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\d_HybridRailway_Textures"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\d_HybridRailway_Textures\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\e_HybridRailway_Fittings\HybridRailway_Catenary"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\e_HybridRailway_Fittings\HybridRailway_Catenary\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\f_HybridRailway_Stations\Hybrid Rail Station v1 - Dual Network (RRW-RHSR)"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\f_HybridRailway_Stations\Hybrid Rail Station v1 - Dual Network (RRW-RHSR)\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Hybrid Railway (RRW-RHSR)\f_HybridRailway_Stations\Hybrid Rail Station v2 - RRW ONLY"
File "@52 Network Features\Hybrid Railway (RRW-RHSR)\f_HybridRailway_Stations\Hybrid Rail Station v2 - RRW ONLY\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\9-Monorail\HybridRailway Bridges"
File "@57 Bridges\9-Monorail\HybridRailway Bridges\*.dat"
SectionEnd
SectionGroup "!Light Rail/Tram" lightrail
Section "Ground Light Rail (GLR)/Tram - Draggable" glr1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\Ground Light Rail\NetworkAddonMod_GroundLightRail_Plugin_INRULs.dat"
File "@52 Network Features\Light Rail#\Ground Light Rail\NetworkAddonMod_GroundLightRailDrag_*.dat"
File "@52 Network Features\Light Rail#\Ground Light Rail\GLR Stations\NOB Ortho Tram Station\*.dat"
File "@52 Network Features\Light Rail#\Ground Light Rail\GLR Stations\NOB Diagonal Tram Station\*.dat"
SectionEnd
Section "Ground Light Rail (GLR)/Tram - Puzzle Pieces" glr2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\Ground Light Rail\NetworkAddonMod_GroundLightRail_Plugin.dat"
File "@52 Network Features\Light Rail#\Ground Light Rail\NetworkAddonMod_GroundLightRail_Plugin_Textures.dat"
${Unless} ${SectionIsSelected} ${glr1}
File "@52 Network Features\Light Rail#\Ground Light Rail\GLR Stations\NOB Ortho Tram Station\*.dat"
File "@52 Network Features\Light Rail#\Ground Light Rail\GLR Stations\NOB Diagonal Tram Station\*.dat"
${EndIf}
SectionEnd
Section /o "Additional Ground Light Rail Styles" glr3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\Ground Light Rail\Ground Light Rail Extended Styles\*.dat"
SectionEnd
Section "Elevated Light Rail Dual-Networking" elrdual
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\Elevated Light Rail Dual-Networking\*.dat"
SectionEnd
Section "Ground Light Rail/Tram Dual-Networking" glrdual
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\Ground Light Rail Dual-Networking\*.dat"
SectionEnd
Section "High Elevated Rail Puzzle Pieces" highelr
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Light Rail"
File "@52 Network Features\Light Rail#\High Elevated Light Rail Puzzle Pieces\*.dat"
SectionEnd
Section "Additional Light Rail and Dual-Networking Bridges" lightrailbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\8-El-Rail\El-Rail"
File "@57 Bridges\8-El-Rail\El-Rail\*.dat"
${If} ${SectionIsSelected} ${glr1}
${OrIf} ${SectionIsSelected} ${glr2}
${OrIf} ${SectionIsSelected} ${glrdual}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\8-El-Rail\GLR"
File "@57 Bridges\8-El-Rail\GLR\NetworkAddonMod_GLR_Bridges_Bulk.dat"
File "@57 Bridges\8-El-Rail\GLR\NetworkAddonMod_Cable_Stayed_GLR_Bridge.dat"
${EndIf}
${If} ${SectionIsSelected} ${glrdual}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\8-El-Rail\GLR"
File "@57 Bridges\8-El-Rail\GLR\NetworkAddonMod_Pont_Notre_Dame_TIR.dat"
${EndIf}
SectionEnd
SectionGroupEnd
SectionGroup "!Monorail and Override Networks" monorail
Section "Additional Monorail Bridges" monorailbridgemain
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\9-Monorail\Monorail"
File "@57 Bridges\9-Monorail\Monorail\NetworkAddonMod_AITPier_Monorail_Bridge.dat"
File "@57 Bridges\9-Monorail\Monorail\NetworkAddonMod_Cable_Stayed_Monorail_Bridge.dat"
File "@57 Bridges\9-Monorail\Monorail\NetworkAddonMod_Monorail_Suspension_Bridge.dat"
File "@57 Bridges\9-Monorail\Monorail\NetworkAddonMod_YPier_Monorail_Bridge.dat"
SectionEnd
Section "High Speed Rail Project (HSRP) (semi-legacy)" hsrp
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Monorail\High Speed Rail Project"
File "@52 Network Features\Monorail#\High Speed Rail Project\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Monorail\High Speed Rail Project\High Speed Rail Stations"
File "@52 Network Features\Monorail#\High Speed Rail Project\High Speed Rail Stations\Xyloxadoria Modern Arched L0 GHSR Station\*.dat"
File "@52 Network Features\Monorail#\High Speed Rail Project\High Speed Rail Stations\Xyloxadoria Modern Arched L2 HSR Station\*.dat"
File "@52 Network Features\Monorail#\High Speed Rail Project\High Speed Rail Stations\Xyloxadoria Modern Diagonal L2 HSR Station\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\9-Monorail\HSR v1"
File "@57 Bridges\9-Monorail\HSR v1\*.dat"
SectionEnd
Section "High Monorail Puzzle Pieces" highmon
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\9-Monorail\Monorail"
File "@57 Bridges\9-Monorail\Monorail\NetworkAddonMod_HighElevatedMonorailBridge.dat"
SectionEnd
SectionGroupEnd
SectionGroup "!Maxis Highway Options (select one)" mhw
Section "Default Maxis Highway Additonal Features" mhw1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Maxis Highway\Default Style"
File "@52 Network Features\Maxis Highway#\@1=Default Style\^Base Features\*.dat"
SectionEnd
Section /o "Maxis Highway Override (MHO)" mhw2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Maxis Highway\Maxis Highway Override (RHW-Style)"
File "@52 Network Features\Maxis Highway#\@2-Maxis Highway Override (RHW-Style)\*.dat"
${Unless} ${SectionIsSelected} ${rhwbase}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\RealHighway"
File "@52 Network Features\RealHighway#\^Base Features and Network Tool\RealHighway_Core.dat"
File "@52 Network Features\RealHighway#\^Base Features and Network Tool\RealHighway_RHW-2.dat"
File "@52 Network Features\RealHighway#\^Base Features and Network Tool\RealHighway_Props.dat"
File "@52 Network Features\RealHighway#\RHW Small Networks and Ramps\RealHighway_MIS.dat"
File "@52 Network Features\RealHighway#\RHW Small Networks and Ramps\RealHighway_RHW-4.dat"
${EndIf}
SectionEnd
Section -dummy mhw3
SectionIn 7
SectionEnd
Section "Maxis Highway Additional Bridges" mhwbridgemain
${If} ${SectionIsSelected} ${mhw1}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\2-El-Highway"
File "@57 Bridges\2-El-Highway\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\c-Ground Highway\Ground Highway"
File "@57 Bridges\c-Ground Highway\Ground Highway\*.dat"
${EndIf}
${If} ${SectionIsSelected} ${mhw2}
${Unless} ${SectionIsSelected} ${rhwbase}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\7 Bridges\c-Ground Highway"
File "@57 Bridges\c-Ground Highway\RHW\*.dat"
${EndIf}
${EndIf}
SectionEnd
SectionGroupEnd
SectionGroup "!Subway and Underground (FLUPs)" subflups
Section "Flexible Underpass (FLUPs) Puzzle Pieces" flups1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Subway and FLUPs"
File "@52 Network Features\Subway and FLUPs#\Flexible Underpasses (FLUPs)\NetworkAddonMod_FlexibleUnderpasses_SubwayDraggable.dat"
File "@52 Network Features\Subway and FLUPs#\Flexible Underpasses (FLUPs)\NetworkAddonMod_FlexibleUnderpasses_SubwayDraggable_Textures.dat"
SectionEnd
Section "Subway-Based Draggable FLUPs" flups2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Subway and FLUPs"
File "@52 Network Features\Subway and FLUPs#\Flexible Underpasses (FLUPs)\NetworkAddonMod_FLUPs_*.dat"
SectionEnd
SectionGroupEnd
SectionGroup "!Canal Addon Mod (CAN-AM)" watertransport
Section /o "Canal Addon Mod (CAN-AM) - Callagrafx Canals" canam1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Water Transport"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\NetworkAddonMod_CanAM_*.dat"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\@1=Callagrafx Style\CanAM Props CAL\*.dat"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\@1=Callagrafx Style\CAS CAN-AM Basic Dock CAL\*.dat"
SectionEnd
Section /o "Canal Addon Mod (CAN-AM) - SimGoober Canals" canam2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\2 Network Features\Water Transport"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\NetworkAddonMod_CanAM_*.dat"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\@2-SimGoober Style\CanAM Props SG\*.dat"
File "@52 Network Features\Water Transport#\Canal Addon Mod#\@2-SimGoober Style\CAS CAN-AM Basic Dock SG\*.dat"
SectionEnd
Section /o -dummy canam3
SectionIn 7
SectionEnd
SectionGroupEnd
SectionGroupEnd
SectionGroup /e "Texture Options" textureoptions
SectionGroup "Road Texture Design" texturemain
Section "US/NA-RHD" texture1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US"
File "@58 Texture and Drive Side Support\@0=US\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_RightSide"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_RightSide\LotSupport\Props"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\LotSupport\Props\*.dat"
SectionEnd
Section /o "US/NA-LHD" texture2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US"
File "@58 Texture and Drive Side Support\@0=US\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_LeftSide"
File "@58 Texture and Drive Side Support\@0=US\@2-US_LeftSide\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_LeftSide\LotSupport\Props"
File "@58 Texture and Drive Side Support\@0=US\@2-US_LeftSide\LotSupport\Props\*.dat"
SectionEnd
Section /o "EU/INT-RHD" texture3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU"
File "@58 Texture and Drive Side Support\@1-EU\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_RightSide"
File "@58 Texture and Drive Side Support\@1-EU\@1=EU_RightSide\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_RightSide\LotSupport\Props"
File "@58 Texture and Drive Side Support\@1-EU\@1=EU_RightSide\LotSupport\Props\*.dat"
SectionEnd
Section /o "EU/INT-LHD" texture4
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU"
File "@58 Texture and Drive Side Support\@1-EU\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_LeftSide"
File "@58 Texture and Drive Side Support\@1-EU\@2-EU_LeftSide\*.dat"
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_LeftSide\LotSupport\Props"
File "@58 Texture and Drive Side Support\@1-EU\@2-EU_LeftSide\LotSupport\Props\*.dat"
SectionEnd
SectionGroupEnd
SectionGroup "Nightlighting Options" nitemain
Section "Maxis Nite Props" nite1
${If} ${SectionIsSelected} ${texture1}
${OrIf} ${SectionIsSelected} ${texture2}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US Maxis Nite"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\=US Maxis Nite\*.dat"
${Else}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU Maxis Nite"
File "@58 Texture and Drive Side Support\@1-EU\@1=EU_RightSide\=EU Maxis Nite\*.dat"
${EndIf}
SectionEnd
Section /o "Dark Nite Props" nite2
${If} ${SectionIsSelected} ${texture1}
${OrIf} ${SectionIsSelected} ${texture2}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US Dark Nite"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\-US Dark Nite\*.dat"
${Else}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU Dark Nite"
File "@58 Texture and Drive Side Support\@1-EU\@1=EU_RightSide\-EU Dark Nite\*.dat"
${EndIf}
SectionEnd
SectionGroupEnd
Section /o "Cul-De-Sacs" culdesac
${If} ${SectionIsSelected} ${texture1}
${OrIf} ${SectionIsSelected} ${texture2}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\z_Cul-De-Sacs"
File "@58 Texture and Drive Side Support\@0=US\@3z_Cul-De-Sacs\*.dat"
${Else}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\z_Cul-De-Sacs"
File "@58 Texture and Drive Side Support\@1-EU\@3z_Cul-De-Sacs\*.dat"
${EndIf}
SectionEnd
Section /o "Mid/High Density Street Int Islands" islands
${If} ${SectionIsSelected} ${texture1}
${OrIf} ${SectionIsSelected} ${texture2}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\z_Mid-High Density Street Intersection Islands"
File "@58 Texture and Drive Side Support\@0=US\@4!z_Mid-High Density Street Intersection Islands\*.dat"
${Else}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\z_Mid-High Density Street Intersection Islands"
File "@58 Texture and Drive Side Support\@0=US\@4!z_Mid-High Density Street Intersection Islands\*.dat"
${EndIf}
SectionEnd
Section "Center Arrows for NWM Turning Lane Avenues (TLA)" tlaarrows
${If} ${SectionIsSelected} ${texture1}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_RightSide\TLA Center Turn Arrows"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\TLA Center Turn Arrows\tla_center_arrows_addon_RHD.dat"
${ElseIf} ${SectionIsSelected} ${texture2}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\US\US_LeftSide\TLA Center Turn Arrows"
File "@58 Texture and Drive Side Support\@0=US\@2-US_LeftSide\TLA Center Turn Arrows\tla_center_arrows_addon_LHD.dat"
${ElseIf} ${SectionIsSelected} ${texture3}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_RightSide\TLA Center Turn Arrows"
File "@58 Texture and Drive Side Support\@0=US\@1=US_RightSide\TLA Center Turn Arrows\tla_center_arrows_addon_RHD.dat"
${Else}
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\8 Texture and Drive Side Support\EU\EU_LeftSide\TLA Center Turn Arrows"
File "@58 Texture and Drive Side Support\@0=US\@2-US_LeftSide\TLA Center Turn Arrows\tla_center_arrows_addon_LHD.dat"
${EndIf}
SectionEnd
SectionGroupEnd
SectionGroup /e "!Miscellaneous Options" miscoptions
Section "Hole Diggers and Ground Raisers" digraise1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Hole Diggers and Ground Raisers"
File "@56 Miscellaneous\Hole Diggers and Ground Raisers#\Auto-Destruct Lots\*.dat"
SectionEnd
Section /o "Legacy Hole Digger and Ground Raiser Lots" digraise2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Hole Diggers and Ground Raisers"
File "@56 Miscellaneous\Hole Diggers and Ground Raisers#\!Standard Lots\*.SC4Lot"
SectionEnd
Section "Maxis Station, Tollbooth, and Transit Lot Upgrades" maxislot
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Maxis Transit Lots"
File "@56 Miscellaneous\Maxis Transit Lots#\^Maxis Station, Tollbooth, and Transit Lot Upgrades\*.dat"
SectionEnd
Section /o "Abandoned Buildings Data View" bldgview
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\5 DataView Options"
File "@55 DataView Options#\Abandoned Buildings Data View\*.dat"
SectionEnd
Section "Transit Station Data View" stationview
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\5 DataView Options"
File "@55 DataView Options#\Transit Station Data View\*.dat"
SectionEnd
Section "Zone Data View" zoneview
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\5 DataView Options"
File "@55 DataView Options#\Zone Data View\*.dat"
SectionEnd
/*
SectionGroup "!Maxis Airport Capacity Adjustment" airportmain
Section "Maxis Airport Capacity-Default Settings" airport1
SectionEnd
Section /o "Maxis Airport Capacity-Medium Settings" airport2
SectionEnd
Section /o "Maxis Airport Capacity-Large Settings" airport3
SectionEnd
SectionGroupEnd
*/
SectionGroup "!Extended Station Queries" stationquerymain
Section "Standard Station Queries" stationquery1
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Extended Station Queries"
File "@56 Miscellaneous\Extended Station Queries#\@1=Standard\*.dat"
SectionEnd
Section /o "Simple Station Queries" stationquery2
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Extended Station Queries"
File "@56 Miscellaneous\Extended Station Queries#\@2-Simple\*.dat"
SectionEnd
Section /o "Wide Station Queries" stationquery3
SetOutPath "$INSTDIR\Plugins\Network Addon Mod\6 Miscellaneous\Extended Station Queries"
File "@56 Miscellaneous\Extended Station Queries#\@3-Wide\*.dat"
SectionEnd
SectionGroupEnd
SectionGroupEnd
Section -AdditionalIcons
SetShellVarContext all
SetOutPath "$INSTDIR"
WriteIniStr "$INSTDIR\NAM.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
WriteIniStr "$INSTDIR\Simtropolis.url" "InternetShortcut" "URL" "http://www.simtropolis.com"
WriteIniStr "$INSTDIR\SC4Evermore.url" "InternetShortcut" "URL" "http://www.sc4evermore.com" ; if you only want to install one URL in the start menu, simply remove this line and similar lines below
CreateDirectory "$SMPROGRAMS\Network Addon Mod" ; the start menu folder
CreateShortCut "$SMPROGRAMS\Network Addon Mod\Simtropolis.com.lnk" "$INSTDIR\NAM.url"
CreateShortCut "$SMPROGRAMS\Network Addon Mod\Simtropolis.com.lnk" "$INSTDIR\Simtropolis.url"
CreateShortCut "$SMPROGRAMS\Network Addon Mod\SC4Devotion.com.lnk" "$INSTDIR\SC4Evermore.url"
CreateShortCut "$SMPROGRAMS\Network Addon Mod\Uninstall Network Addon Mod.lnk" "$INSTDIR\uninst.exe"
; SetOutPath "$PROGRAMFILES\Traffic Simulator Configuration Tool"
; IfFileExists "$PROGRAMFILES\Traffic Simulator Configuration Tool\NAM-TSCT.jar" 0 +3
; CreateShortCut "$SMPROGRAMS\Network Addon Mod\Traffic Simulator Configuration Tool.lnk" "$PROGRAMFILES\Traffic Simulator Configuration Tool\NAM-TSCT.jar" "" "$PROGRAMFILES\Traffic Simulator Configuration Tool\TSCT_1.ico"
; CreateShortCut "$DESKTOP\Traffic Simulator Configuration Tool.lnk" "$PROGRAMFILES\Traffic Simulator Configuration Tool\NAM-TSCT.jar" "" "$PROGRAMFILES\Traffic Simulator Configuration Tool\TSCT_1.ico"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
; Oh no, now we've lost SimCity...
Function FindSimCity
ClearErrors
ReadRegStr $SC4InstallDir HKLM "Software\Maxis\SimCity 4" "Install Dir"
IfErrors CheckMore 0
IfFileExists "$SC4InstallDir\Apps\SimCity 4.exe" FoundIt
CheckMore:
StrCpy $SC4InstallDir "$PROGRAMFILES\Maxis\SimCity 4\"
${DirState} $SC4InstallDir $0
${If} $0 < 1
StrCpy $SC4InstallDir "$PROGRAMFILES\Maxis\SimCity 4 Deluxe\"
${EndIf}
Strlen $0 $SC4InstallDir
IntOp $0 $0 - 1
StrCpy $SC4InstallDir $SC4InstallDir $0 ;Remove trailing slash
IfFileExists $SC4InstallDir FoundIt
StrCpy $3 'In the following dialog box, please choose the folder containing your SimCity 4 installation. It is normally named either "SimCity 4" or "SimCity 4 Deluxe".'
${Locate} $PROGRAMFILES /L=F IsSimCity
StrCmp $R0 "" 0 FixPath
${If} $PROGRAMFILES != $PROGRAMFILES64
${Locate} $PROGRAMFILES64 /L=F IsSimCity
StrCmp $R0 "" 0 FixPath
${EndIf}
; MessageBox MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2 "Are you installing the NAM on this machine so that it can be ported to a Mac?" IDNO GetSC4Folder
StrCpy $SC4InstallDir ""
Return
GetSC4Folder:
MessageBox MB_OK|MB_ICONINFORMATION 'The installer cannot find the SimCity 4 installation folder on your system. $3'
GetSC4Folder2:
nsDialogs::SelectFolderDialog "SimCity 4 Folder Dialog" "Please select your SimCity 4 installation folder." $PROGRAMFILES
StrCpy $SC4InstallDir $0