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
|
#ifdef ptx86
#define MirName "Miranda32.exe"
#else
#define MirName "Miranda64.exe"
#endif
#ifdef ptx86
#define MirOutName "miranda-ng-alpha-latest"
#else
#define MirOutName "miranda-ng-alpha-latest_x64"
#endif
#ifndef ptx86
#define ArcAllow "x64"
#else
#define ArcAllow ""
#endif
#ifdef ptx86
#define VcRedistName "vcredist_x86.exe"
#else
#define VcRedistName "vcredist_x64.exe"
#endif
#ifdef ptx86
#define Ptf "x86"
#else
#define Ptf "x64"
#endif
#ifdef ptx86
#define RedistRegChk "(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}')"
#else
#define RedistRegChk "(HKLM64, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}')"
#endif
#ifdef ptx86
#define MirPfInstDir "ExpandConstant('{pf32}')"
#else
#define MirPfInstDir "ExpandConstant('{pf64}')"
#endif
[Setup]
AppVersion=0.94.5
AppName=Miranda NG
AppVerName=Miranda NG {#SetupSetting("AppVersion")}
AppPublisher=Miranda NG Team
AppCopyRight=2013 © Miranda NG Team
VersionInfoVersion={#SetupSetting("AppVersion")}
MinVersion=5.0
ArchitecturesAllowed={#ArcAllow}
DefaultDirName={pf}\Miranda NG
DefaultGroupName=Miranda NG
LicenseFile=Files\Docs\license.txt
UninstallFilesDir={app}\Uninstall
UninstallDisplayIcon={#MirName}
UninstallDisplayName=Miranda NG
UninstallLogMode=overwrite
Uninstallable=IsDefault()
CreateUninstallRegKey=IsDefault()
Compression=lzma2/max
SolidCompression=yes
PrivilegesRequired=poweruser
OutputDir=..\
OutputBaseFilename={#MirOutName}
WizardImageFile=Installer\WizModernImage-IS.bmp
WizardSmallImageFile=Installer\SetupMNGSmall.bmp
SetupIconFile=Installer\mng_installer.ico
DirExistsWarning=no
UsePreviousAppDir=no
UsePreviousGroup=no
UsePreviousSetupType=no
UsePreviousTasks=no
[Files]
; Folders
Source: "Files\Docs\*"; DestDir: "{app}\Docs"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs; AfterInstall: ShowPercent()
Source: "Files\Skins\Sounds\*"; DestDir: "{app}\Skins\Sounds"; Components: sounds; Flags: ignoreversion recursesubdirs createallsubdirs; AfterInstall: ShowPercent()
; Icons
Source: "Files\Icons\Proto_AIM.dll"; DestDir: "{app}\Icons"; Components: protocols\aim; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_Facebook.dll"; DestDir: "{app}\Icons"; Components: protocols\facebook; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_GG.dll"; DestDir: "{app}\Icons"; Components: protocols\gg; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_ICQ.dll"; DestDir: "{app}\Icons"; Components: protocols\icq; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_IRC.dll"; DestDir: "{app}\Icons"; Components: protocols\irc; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_Jabber.dll"; DestDir: "{app}\Icons"; Components: protocols\jabber; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_MSN.dll"; DestDir: "{app}\Icons"; Components: protocols\msn; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\Proto_Yahoo.dll"; DestDir: "{app}\Icons"; Components: protocols\yahoo; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\xstatus_icq.dll"; DestDir: "{app}\Icons"; Components: protocols\icq; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\xstatus_jabber.dll"; DestDir: "{app}\Icons"; Components: protocols\jabber; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\tabsrmm_icons.dll"; DestDir: "{app}\Icons"; Components: messagewin\tabsrmm; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Icons\toolbar_icons.dll"; DestDir: "{app}\Icons"; Components: clicts\modern; Flags: ignoreversion; AfterInstall: ShowPercent()
; Core and core modules
Source: "Files\{#MirName}"; DestDir: "{app}"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\mir_core.dll"; DestDir: "{app}"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\zlib.dll"; DestDir: "{app}"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\DbChecker.bat"; DestDir: "{app}"; Components: program; Check: IsPortable(); Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\msvcp100.dll"; DestDir: "{app}"; Components: program; Check: IsPortable(); Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\msvcr100.dll"; DestDir: "{app}"; Components: program; Check: IsPortable(); Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdauth.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdautoaway.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdaway.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdchat.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdclist.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdcrypt.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdemail.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdfile.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdhelp.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdidle.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdmsg.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stduihist.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stdurl.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stduserinfo.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Core\stduseronline.dll"; DestDir: "{app}\Core"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
; LangPacks
Source: "Files\langpack_czech.txt"; DestDir: "{app}"; Components: lang\czech; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\langpack_german.txt"; DestDir: "{app}"; Components: lang\german; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\langpack_polish.txt"; DestDir: "{app}"; Components: lang\polish; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\langpack_russian.txt"; DestDir: "{app}"; Components: lang\russian; Flags: ignoreversion; AfterInstall: ShowPercent()
;Plugins - not selectable
Source: "Files\Plugins\AdvaImg.dll"; DestDir: "{app}\Plugins"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\AVS.dll"; DestDir: "{app}\Plugins"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\DbChecker.dll"; DestDir: "{app}\Plugins"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Import.dll"; DestDir: "{app}\Plugins"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\PluginUpdater.dll"; DestDir: "{app}\Plugins"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\pu_stub.exe"; DestDir: "{app}"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
; Protocols
Source: "Files\Plugins\AIM.dll"; DestDir: "{app}\Plugins"; Components: protocols\aim; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Facebook.dll"; DestDir: "{app}\Plugins"; Components: protocols\facebook; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\GG.dll"; DestDir: "{app}\Plugins"; Components: protocols\gg; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\ICQ.dll"; DestDir: "{app}\Plugins"; Components: protocols\icq; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\IRC.dll"; DestDir: "{app}\Plugins"; Components: protocols\irc; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Jabber.dll"; DestDir: "{app}\Plugins"; Components: protocols\jabber; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\MSN.dll"; DestDir: "{app}\Plugins"; Components: protocols\msn; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Yahoo.dll"; DestDir: "{app}\Plugins"; Components: protocols\yahoo; Flags: ignoreversion; AfterInstall: ShowPercent()
; Clists
Source: "Files\Plugins\Clist_blind.dll"; DestDir: "{app}\Plugins"; Components: clicts\blind; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Clist_modern.dll"; DestDir: "{app}\Plugins"; Components: clicts\modern; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Clist_nicer.dll"; DestDir: "{app}\Plugins"; Components: clicts\nicer; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Cln_skinedit.dll"; DestDir: "{app}\Plugins"; Components: clicts\nicer; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\TopToolBar.dll"; DestDir: "{app}\Plugins"; Components: clicts\modern or clicts\nicer; Flags: ignoreversion; AfterInstall: ShowPercent()
; Message sessions
Source: "Files\Plugins\TabSRMM.dll"; DestDir: "{app}\Plugins"; Components: messagewin\tabsrmm; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Scriver.dll"; DestDir: "{app}\Plugins"; Components: messagewin\scriver; Flags: ignoreversion; AfterInstall: ShowPercent()
; DB drivers
Source: "Files\Plugins\Dbx_mmap.dll"; DestDir: "{app}\Plugins"; Components: dbx\mmap; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\Plugins\Dbx_3x.dll"; DestDir: "{app}\Plugins"; Components: dbx\3x; Flags: ignoreversion; AfterInstall: ShowPercent()
; Config files
Source: "Files\Settings\mirandaboot_default.ini"; DestDir: "{app}"; Components: program; DestName: "mirandaboot.ini"; Check: IsDefault(); Flags: ignoreversion onlyifdoesntexist; AfterInstall: ShowPercent()
Source: "Files\Settings\mirandaboot_portable.ini"; DestDir: "{app}"; Components: program; DestName: "mirandaboot.ini"; Check: IsPortable(); Flags: ignoreversion onlyifdoesntexist; AfterInstall: ShowPercent()
Source: "Files\Settings\autoexec_sounds.ini"; DestDir: "{app}"; Components: sounds; Flags: ignoreversion; AfterInstall: ShowPercent()
Source: "Files\autoexec_nightly_pu.ini"; DestDir: "{app}"; Components: program; Flags: ignoreversion; AfterInstall: ShowPercent()
; Installer add-ons
Source: "Installer\ISWin7.dll"; Flags: dontcopy
Source: "Installer\descctrl.dll"; Flags: dontcopy
Source: "Installer\{#VcRedistName}"; DestDir: {tmp}; Flags: deleteafterinstall; Check: RedistIsNotInstalled
[Components]
Name: "program"; Description: "{cm:Program}"; Types: extended regular minimal custom; Flags: fixed
Name: "sounds"; Description: "{cm:Sounds}"; Types: extended custom
Name: "protocols"; Description: "{cm:Protocols}"; Types: extended regular minimal custom; Flags: fixed
Name: "protocols\aim"; Description: "{cm:Aim}"; Types: extended regular minimal
Name: "protocols\facebook"; Description: "{cm:Facebook}"; Types: extended regular minimal
Name: "protocols\gg"; Description: "{cm:Gg}"; Types: extended regular minimal
Name: "protocols\icq"; Description: "{cm:Icq}"; Types: extended regular minimal
Name: "protocols\irc"; Description: "{cm:Irc}"; Types: extended regular minimal
Name: "protocols\jabber"; Description: "{cm:Jabber}"; Types: extended regular minimal
Name: "protocols\msn"; Description: "{cm:Msn}"; Types: extended regular minimal
Name: "protocols\yahoo"; Description: "{cm:Yahoo}"; Types: extended regular minimal
Name: "clists"; Description: "{cm:Clists}"; Types: extended regular minimal custom; Flags: fixed
Name: "clicts\stdclist"; Description: "{cm:StdClist}"; Types: minimal; Flags: exclusive
Name: "clicts\blind"; Description: "{cm:BlindClist}"; Types: custom; Flags: exclusive
Name: "clicts\nicer"; Description: "{cm:NicerClist}"; Types: custom; Flags: exclusive
Name: "clicts\modern"; Description: "{cm:ModernClist}"; Types: extended regular; Flags: exclusive
Name: "messagewin"; Description: "{cm:MessageWin}"; Types: extended regular minimal custom; Flags: fixed
Name: "messagewin\stdmsg"; Description: "{cm:StdMsg}"; Types: minimal; Flags: exclusive
Name: "messagewin\scriver"; Description: "{cm:Scriver}"; Types: custom; Flags: exclusive
Name: "messagewin\tabsrmm"; Description: "{cm:Tabsrmm}"; Types: extended regular; Flags: exclusive
Name: "dbx"; Description: "{cm:Dbx}"; Types: extended regular minimal custom ; Flags: fixed
Name: "dbx\3x"; Description: "{cm:Dbx_3x}"; Types: custom; Flags: exclusive
Name: "dbx\mmap"; Description: "{cm:Mmap}"; Types: extended regular minimal; Flags: exclusive
Name: "lang"; Description: "{cm:Lang}"; Types: extended regular custom minimal; Flags: fixed
Name: "lang\russian"; Description: "{cm:LangRussian}"; Flags: exclusive
Name: "lang\czech"; Description: "{cm:LangCzech}"; Flags: exclusive
Name: "lang\polish"; Description: "{cm:LangPolish}"; Flags: exclusive
Name: "lang\german"; Description: "{cm:LangGerman}"; Flags: exclusive
Name: "lang\english"; Description: "{cm:LangEnglish}"; Flags: exclusive
[Types]
Name: "regular"; Description: "{cm:TypeRegular}"
Name: "minimal"; Description: "{cm:TypeMinimal}"
Name: "extended"; Description: "{cm:TypeExtended}"
Name: "custom"; Description: "{cm:TypeCustom}"; Flags: iscustom
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Icons]
Name: "{app}\DbChecker"; Filename: "{app}\{#MirName}"; Parameters: "/svc:dbchecker"; Check: IsDefault()
Name: "{group}\Miranda NG"; Filename: "{app}\{#MirName}"
Name: "{group}\{cm:UninstallProgram,Miranda NG}"; Filename: {app}\Uninstall\Unins000.exe
Name: "{userdesktop}\Miranda NG"; Filename: "{app}\{#MirName}"; WorkingDir: {app}; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Miranda NG"; Filename: "{app}\{#MirName}"; WorkingDir: {app}; Tasks: quicklaunchicon
[Run]
Filename: "{tmp}\{#VcRedistName}"; Parameters: "/passive /Q:a /c:""msiexec /qb /i vcredist.msi"" "; Check: RedistIsNotInstalled(); StatusMsg: Installing Microsoft Visual C++ 2010 SP1 Redistributable Package ({#Ptf})
Filename: "{app}\{#MirName}"; Description: "{cm:LaunchProgram,Miranda NG}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
Type: filesandordirs; Name: {app}
[CustomMessages]
; English
en.InstTypeHeader=Installation Mode
en.InstTypeText=Select installation type
en.DefTypeInstRadio=Normal Installation (recommended)
en.PortTypeInstRadio=Portable Installation
en.DefTypeInstLabel=Profiles and user data files are stored in Application Data.%nUAC compatible (Windows Vista/7/8)
en.PortTypeInstLabel=Profiles and user data files are stored in program folder.%nVersion for installation on removable storage devices (such as USB flash drive)%n(Do not install to Program Files with enabled UAC!!!)
en.ProfileUninst=WARNING!!!%nYou are about to delete profile folder containing all your settings, contacts and message history!%nAre you sure you want to remove profile?%n(You may need it later)
en.FolderExists1=Folder
en.FolderExists2=already exists. Continue installation?
en.PercentDone=% done
en.TypeRegular=Regular installation
en.TypeMinimal=Minimal installation
en.TypeExtended=Extended installation
en.TypeCustom=Custom installation
en.Program=Core components
en.Sounds=Sound files
en.Protocols=Protocols
en.Aim=AIM protocol
en.Facebook=Facebook protocol
en.GG=GG protocol
en.Icq=ICQ protocol
en.Irc=IRC protocol
en.Jabber=Jabber protocol
en.Msn=MSN protocol
en.Yahoo=Yahoo protocol
en.Clists=Contact lists
en.StdClist=Classic contact list
en.BlindClist=Contact list for blind folks
en.NicerClist=Nicer contact list
en.ModernClist=Modern contact list
en.MessageWin=Message session
en.StdMsg=SRMM and Chat plugins
en.Scriver=Scriver message plugin
en.Tabsrmm=TabSRMM message plugin
en.Dbx=Database drivers
en.Mmap=Dbx_mmap database driver (recommended)
en.Dbx_3x=Dbx_3x database driver
en.Lang=Localization files
en.LangRussian=Russian langpack
en.LangCzech=Czech langpack
en.LangPolish=Polish langpack
en.LangGerman=German langpack
en.LangEnglish=English interface
en.DescriptionTitle=Description
en.InfoCaption=Hover over the component to get additional information
en.CoreFilesDescription=The minimum set of files needed to run the program.
en.SoundsDescription=Sound notification support for various events.
en.ProtocolsDescription=Various protocols for instant messaging and more.
en.ProtocolsAIMDescription=AOL Instant Messenger (AIM) protocol support for Miranda NG.
en.ProtocolsFbDescription=Facebook protocol support for Miranda NG. More advanced than XMPP facebook chat, supporting posting statuses, authorizations, searching contacts, and much more.
en.ProtocolsGGDescription=Gadu-Gadu protocol support for Miranda NG.
en.ProtocolsICQDescription=ICQ (OSCAR) protocol support for Miranda NG.
en.ProtocolsIRCDescription=Internet Relay Chat (IRC) protocol support for Miranda NG.
en.ProtocolsJabberDescription=Open-standard communications protocol (XMPP) for message-oriented middleware based on XML.
en.ProtocolsMSNDescription=Microsoft Network (MSN) protocol support for Miranda NG.
en.ProtocolsYahooDescription=Yahoo protocol support for Miranda NG.
en.ClistsDescription=Contact list plugins.
en.StdClistDescription=Basic contact list core module.
en.BlindClistDescription=This is a contact list for blind folks. It uses a list control to show all contacts, so screen readers can "read" the clist to the user.
en.ModernClistDescription=Supports skins, displays contacts, event notifications, protocol status with advantage visual modifications. Supported MW modifications, enhanced metacontact cooperation.
en.NicerClistDescription=Displays contacts, event notifications, protocol status.
en.MessageWinDescription=Message session plugins.
en.StdMsgDescription=Basic messaging and group chats core modules. No tabs support.
en.ScriverDescription=Easy and lightweight messaging plugin.
en.TabsrmmDescription=Advanced IM and group chat module for Miranda NG. Supports skins.
en.DBXDescription=Various database drivers.
en.MMAPDescription=Provides Miranda database support: global settings, contacts, history, settings per contact.(Recommended)
en.DBX_3xDescription=Provides Miranda database support: global settings, contacts, history, settings per contact.
en.LangDescription=Localization files for Miranda NG.
en.LangRussianDescription=Translation of Miranda NG user interface to Russian.
en.LangCzechDescription=Translation of Miranda NG user interface to Czech.
en.LangPolishDescription=Translation of Miranda NG user interface to Polish.
en.LangGermanDescription=Translation of Miranda NG user interface to German.
en.LangEnglishDescription=Original Miranda NG user interface in English.
; Russian
ru.InstTypeHeader=Тип установки
ru.InstTypeText=Выберите тип установки программы.
ru.DefTypeInstRadio=Обычная установка (рекомендуется)
ru.PortTypeInstRadio=Портативная установка
ru.DefTypeInstLabel=Профиль и все необходимые файлы хранятся в папке пользователя%n(Application Data).%nСовместимо с UAC (Windows Vista/7/8)
ru.PortTypeInstLabel=Профиль и файлы пользователя находятся в папке с программой.%nПодходит для установки на Flash-накопители, не оставляет следов в ОС.%n(Не устанавливать в Program Files при включенном UAC!!!)
ru.ProfileUninst=ПРЕДУПРЕЖДЕНИЕ!!!%nВы можете удалить папку профиля, включающую в себя настройки, контакты и историю переписки!%nВы действительно хотите удалить файлы профиля?%n(Может понадобиться в дальнейшем)
ru.FolderExists1=Папка
ru.FolderExists2=уже существует. Продолжить установку?
ru.PercentDone=% выполнено
ru.TypeRegular=Обычная установка
ru.TypeMinimal=Минимальная установка
ru.TypeExtended=Расширенная установка
ru.TypeCustom=Выборочная установка
ru.Program=Основные файлы
ru.Sounds=Звуки
ru.Protocols=Протоколы
ru.Aim=Протокол AIM
ru.Facebook=Протокол Facebook
ru.GG=Протокол GG
ru.Icq=Протокол ICQ
ru.Irc=Протокол IRC
ru.Jabber=Протокол Jabber
ru.Msn=Протокол MSN
ru.Yahoo=Протокол Yahoo
ru.Clists=Списки контактов
ru.StdClist=Список контактов Classic
ru.BlindClist=Список контактов для слабовидящих
ru.NicerClist=Список контактов Nicer
ru.ModernClist=Список контактов Modern
ru.MessageWin=Диалоговые окна
ru.StdMsg=Плагины SRMM и Chat
ru.Scriver=Диалоговое окно Scriver
ru.Tabsrmm=Диалоговое окно TabSRMM
ru.Dbx=Драйверы базы данных
ru.Mmap=Драйвер Dbx_mmap (рекомендуется)
ru.Dbx_3x=Драйвер Dbx_3x
ru.Lang=Языковые пакеты
ru.LangRussian=Русский
ru.LangCzech=Чешский
ru.LangPolish=Польский
ru.LangGerman=Немецкий
ru.LangEnglish=Английский
ru.DescriptionTitle=Описание
ru.InfoCaption=Наведите на компонент, чтобы получить дополнительную информацию
ru.CoreFilesDescription=Минимальный набор файлов, необходимый для работы программы.
ru.SoundsDescription=Звуковые эффекты, проигрываемые при различных событиях в программе.
ru.ProtocolsDescription=Различные протоколы для обмена сообщениями и не только.
ru.ProtocolsAIMDescription=Поддержка протокола AOL Instant Messenger (AIM) в Miranda NG.
ru.ProtocolsFbDescription=Поддержка протокола Facebook в Miranda NG. Поддержка статусов, поиск контактов, авторизация и не только.
ru.ProtocolsGGDescription=Поддержка протокола Gadu-Gadu в Miranda NG.
ru.ProtocolsICQDescription=Поддержка протокола ICQ в Miranda NG.
ru.ProtocolsIRCDescription=Поддержка протокола Internet Relay Chat (IRC) в Miranda NG.
ru.ProtocolsJabberDescription=Поддержка протокола Jabber (XMPP) в Miranda NG. Протокол основан на открытых стандартах, базирующихся на XML.
ru.ProtocolsMSNDescription=Поддержка протокола Microsoft Network (MSN) в Miranda NG.
ru.ProtocolsYahooDescription=Поддержка протокола Yahoo в Miranda NG.
ru.ClistsDescription=Плагины списков контактов.
ru.StdClistDescription=Список контактов, являющийся модулем ядра, обеспечивает базовый функционал.
ru.BlindClistDescription=Список контактов для слабовидящих. Вспомогательные программы для людей с проблемами зрения могут легко "считать" информацию пользователю.
ru.ModernClistDescription=Показывает контакты, события, статусы протоколов с расширенными функциями оформления (скины). Мультиоконная модификация, расширенная поддержка метаконтактов.
ru.NicerClistDescription=Показывает контакты, события, статусы протоколов.
ru.MessageWinDescription=Плагины диалоговых окон.
ru.StdMsgDescription=Модули ядра, обеспечивающие базовый функционал переписки и чатов. Нет поддержки табов.
ru.ScriverDescription=Простой плагин диалоговых окон с поддержкой вкладок. Не поддерживает скины.
ru.TabsrmmDescription=Продвинутый плагин диалоговых окон с поддержкой вкладок и скинов.
ru.DBXDescription=Выбор драйвера базы данных Miranda NG.
ru.MMAPDescription=Поддержка базы Miranda NG: глобальные настройки, контакты, история, настройки контактов и т. п. Отличается меньшим количеством обращений к базе данных в процессе работы.(Рекомендуется).
ru.DBX_3xDescription=Поддержка базы Miranda NG: глобальные настройки, контакты, история, настройки контактов и т. п.
ru.LangDescription=Файлы перевода для Miranda NG.
ru.LangRussianDescription=Перевод интерфейса Miranda NG на русский язык.
ru.LangCzechDescription=Перевод интерфейса Miranda NG на чешский язык.
ru.LangPolishDescription=Перевод интерфейса Miranda NG на польский язык.
ru.LangGermanDescription=Перевод интерфейса Miranda NG на немецкий язык.
ru.LangEnglishDescription=Интерфейс Miranda NG по умолчанию — английский.
; Czech
cz.InstTypeHeader=Režim instalace
cz.InstTypeText=Zvolte režim instalace
cz.DefTypeInstRadio=Běžná instalace (doporučeno)
cz.PortTypeInstRadio=Přenositelná verze
cz.DefTypeInstLabel=Profily a uživatelská data jsou uložena ve složce Data aplikací.%nKompatibilní se zapnutým Řízením uživatelských účtů (UAC) (Windows Vista/7/8)
cz.PortTypeInstLabel=Profily a uživatelská data jsou uložena ve složce spolu s programem.%nTento způsob je vhodný pro přenosné disky (jako USB flash disky)%n(Neinstalujte do Program Files, pokud máte zapnuté UAC!!!)
cz.ProfileUninst=VAROVÁNÍ!!!%nChystáte se odstranit složku s profily, která obsahuje všechno vaše nastavení, kontakty a historii komunikace!%nOpravdu si přejete odstranit vaše data?%n(V budoucnu se vám ještě mohou hodit.)
cz.FolderExists1=Složka
cz.FolderExists2=již existuje. Pokračovat v instalaci?
cz.PercentDone=% dokončeno
cz.TypeRegular=Běžná instalace
cz.TypeMinimal=Minimální instalace
cz.TypeExtended=Rozšířená instalace
cz.TypeCustom=Vlastní instalace
cz.Program=Základní komponenty
cz.Sounds=Zvukové soubory
cz.protocols=Protokoly
cz.Aim=AIM protokol
cz.Facebook=Facebook protokol
cz.GG=GG protokol
cz.Icq=ICQ protokol
cz.Irc=IRC protokol
cz.Jabber=Jabber protokol
cz.Msn=MSN protokol
cz.Yahoo=Yahoo protokol
cz.Clists=Seznamy kontaktů
cz.StdClist=Clist_classic
cz.BlindClist=Clist_blind (pro nevidomé)
cz.NicerClist=Clist_nicer
cz.ModernClist=Clist_modern
cz.MessageWin=Komunikační okna
cz.StdMsg=SRMM a Chat
cz.Scriver=Scriver
cz.Tabsrmm=TabSRMM
cz.Dbx=Ovladače databáze
cz.Mmap=Dbx_mmap (doporučeno)
cz.Dbx_3x=Dbx_3x
cz.Lang=Jazykové rozhraní
cz.LangRussian=Ruština
cz.LangCzech=Čeština
cz.LangPolish=Polština
cz.LangGerman=Němčina
cz.LangEnglish=Angličtina
cz.DescriptionTitle=Popis
cz.InfoCaption=Najeďte myší na název komponenty pro zobrazení více informací
cz.CoreFilesDescription=Balíček základních komponent vyžadovaných pro spuštění programu.
cz.SoundsDescription=Podpora zvukových efektů pro různé události.
cz.protocolsDescription=Různé protokoly pro rychlou komunikaci a další funkce.
cz.protocolsAIMDescription=AOL Instant Messenger (AIM) protokol pro Mirandu NG.
cz.protocolsFbDescription=Facebook protokol pro Mirandu NG. Pokročilejší verze než Facebook chat přes Jabber (XMPP). Podporuje sdílení stavů, neviditelnost, autorizace, vyhledávání kontaktů a mnohem více.
cz.protocolsGGDescription=Gadu-Gadu protokol pro Mirandu NG.
cz.protocolsICQDescription=ICQ (OSCAR) protokol pro Mirandu NG.
cz.protocolsIRCDescription=Internet Relay Chat (IRC) protokol pro Mirandu NG.
cz.protocolsJabberDescription=Otevřený komunikační protokol Jabber (XMPP) pro Mirandu NG.
cz.protocolsMSNDescription=Microsoft Network (MSN) protokol pro Mirandu NG.
cz.protocolsYahooDescription=Yahoo protokol pro Mirandu NG.
cz.ClistsDescription=Doplňky pro seznamy kontaktů.
cz.StdClistDescription=Základní integrovaný modul pro seznam kontaktů.
cz.BlindClistDescription=Seznam kontaktů pro nevidomé uživatele. Pro zobrazení kontaktů využívá jednoduchý seznam, který může být jednoduše přečten.
cz.ModernClistDescription=Podporuje skiny, zobrazuje kontakty, upozornění na události, stavy protokolů a umožňuje pokročilé úpravy vzhledu. Podporuje rámečky a rozšířenou práci s metakontakty.
cz.NicerClistDescription=Zobrazuje kontakty, upozornění na události, stavy protokolů a podporuje rámečky.
cz.MessageWinDescription=Doplňky pro komunikační okna.
cz.StdMsgDescription=Základní integrovaný modul pro komunikaci a skupinové chaty. Bez podpory více záložek v jednom okně.
cz.ScriverDescription=Jednoduchý a rychlý modul pro komunikaci a skupinové chaty. S podporou více záložek v jednom okně.
cz.TabsrmmDescription=Pokročilý modul pro komunikaci a skupinové chaty. Podporuje skiny a více záložek v jednom okně.
cz.DBXDescription=Různé ovladače databáze.
cz.MMAPDescription=Podpora pro databáze Mirandy: globální nastavení, kontakty, historie, nastavení pro jednotlivé kontakty. (doporučeno)
cz.DBX_3xDescription=Podpora pro databáze Mirandy: globální nastavení, kontakty, historie, nastavení pro jednotlivé kontakty.
cz.LangDescription=Jazykové balíčky pro Mirandu NG.
cz.LangRussianDescription=Překlad rozhraní Mirandy NG do ruštiny.
cz.LangCzechDescription=Překlad rozhraní Mirandy NG do češtiny.
cz.LangPolishDescription=Překlad rozhraní Mirandy NG do polštiny.
cz.LangGermanDescription=Překlad rozhraní Mirandy NG do němčiny.
cz.LangEnglishDescription=Výchozí rozhraní Mirandy NG v angličtině.
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "cz"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
[Code]
//глобальные переменные
var
DefTypeInstLabel, PortTypeInstLabel, ProgressLabel: TLabel;
DefTypeInstRadio, PortTypeInstRadio: TRadioButton;
InstallTypePage: TWizardPage;
ComponentInfo: TNewStaticText;
ComponentList: TStringList;
//--Функции из внешних длл--
//Aero эффект
procedure iswin7_add_glass(Handle:HWND; Left, Top, Right, Bottom : Integer; GDIPLoadMode: boolean);
external 'iswin7_add_glass@files:iswin7.dll stdcall';
procedure iswin7_add_button(Handle:HWND);
external 'iswin7_add_button@files:iswin7.dll stdcall';
procedure iswin7_free;
external 'iswin7_free@files:iswin7.dll stdcall';
//Описание компонентов
function EnableDescription(ComponentsListHandle: HWND; DescLabelHandle: HWND; DescStrings: PAnsiChar): BOOL;
external 'enabledesc@files:descctrl.dll stdcall';
function DisableDescription: BOOL;
external 'disabledesc@files:descctrl.dll stdcall';
//Получение всех логических дисков
function GetLogicalDriveStrings(nLenDrives: LongInt; lpDrives: ansistring): integer;
external 'GetLogicalDriveStringsA@kernel32.dll stdcall';
//Получение типа диска
function GetDriveType(lpDisk: ansistring): integer;
external 'GetDriveTypeA@kernel32.dll stdcall';
//константы типов дисков
const
DRIVE_UNKNOWN = 0; // The drive type cannot be determined.
DRIVE_NO_ROOT_DIR = 1; // The root path is invalid. For example, no volume is mounted at the path.
DRIVE_REMOVABLE = 2; // The disk can be removed from the drive.
DRIVE_FIXED = 3; // The disk cannot be removed from the drive.
DRIVE_REMOTE = 4; // The drive is a remote (network) drive.
DRIVE_CDROM = 5; // The drive is a CD-ROM drive.
DRIVE_RAMDISK = 6; // The drive is a RAM disk.
//проверка версии установки по дефолту
function IsDefault: Boolean;
begin
if (DefTypeInstRadio.Checked) then
Result:= True;
end;
//проверка версии установки портативной
function IsPortable: Boolean;
begin
if (PortTypeInstRadio.Checked) then
Result:= True;
end;
//vc redist installation check
function RedistIsNotInstalled: Boolean;
begin
Result := not RegKeyExists{#RedistRegChk};
end;
//создание страницы установки с типами установки (обычная или портативная)
procedure CreateInstallTypePage();
begin
InstallTypePage:=CreateCustomPage(wpLicense, ExpandConstant('{cm:InstTypeHeader}'), ExpandConstant('{cm:InstTypeText}'));
DefTypeInstRadio:=TRadioButton.Create(InstallTypePage);
with DefTypeInstRadio do
begin
Parent:=InstallTypePage.Surface;
Checked:=True;
Top:=35;
Left:=20;
Width:=210;
Caption:=ExpandConstant('{cm:DefTypeInstRadio}');
end;
DefTypeInstLabel:=TLabel.Create(InstallTypePage);
with DefTypeInstLabel do
begin
Parent:=InstallTypePage.Surface;
Top:=DefTypeInstRadio.Top+DefTypeInstRadio.Height+2;
Left:=DefTypeInstRadio.Left+15;
Caption:=ExpandConstant('{cm:DefTypeInstLabel}');
end;
PortTypeInstRadio:=TRadioButton.Create(InstallTypePage);
with PortTypeInstRadio do
begin
Parent:=InstallTypePage.Surface;
Checked:=False;
Top:=DefTypeInstLabel.Top+DefTypeInstLabel.Height+20;
Left:=20;
Width:=150;
Caption:=ExpandConstant('{cm:PortTypeInstRadio}');
end;
PortTypeInstLabel:=TLabel.Create(InstallTypePage);
with PortTypeInstLabel do
begin
Parent:=InstallTypePage.Surface;
Top:=PortTypeInstRadio.Top+PortTypeInstRadio.Height+2;
Left:=PortTypeInstRadio.Left+15;
Caption:=ExpandConstant('{cm:PortTypeInstLabel}');
end;
end;
// Панель информации о компонентах
procedure CreateComponentsInfoPanel();
var
InfoCaption: TNewStaticText;
InfoPanel: TPanel;
begin
WizardForm.TypesCombo.Width := ScaleX(234);
WizardForm.ComponentsList.Width := ScaleX(234);
InfoPanel := TPanel.Create(WizardForm);
InfoPanel.Parent := WizardForm.SelectComponentsPage;
InfoPanel.Caption := '';
InfoPanel.Top := WizardForm.TypesCombo.Top;
InfoPanel.Left := ScaleX(250);
InfoPanel.Width := ScaleX(166);
InfoPanel.Height := WizardForm.ComponentsList.Height + WizardForm.TypesCombo.Height + 5;
InfoPanel.BevelInner := bvRaised;
InfoPanel.BevelOuter := bvLowered;
InfoCaption := TNewStaticText.Create(WizardForm);
InfoCaption.Parent := WizardForm.SelectComponentsPage;
InfoCaption.Caption := ExpandConstant('{cm:DescriptionTitle}');
InfoCaption.Left := ScaleX(258);
InfoCaption.Top := InfoPanel.Top - ScaleY(5);
//InfoCaption.Font.Color := clActiveCaption;
ComponentInfo := TNewStaticText.Create(WizardForm);
ComponentInfo.Parent := InfoPanel;
ComponentInfo.AutoSize := False;
ComponentInfo.Left := ScaleX(6);
ComponentInfo.Width := ScaleX(154);
ComponentInfo.Top := ScaleY(12);
ComponentInfo.Height := WizardForm.ComponentsList.Height - ScaleY(17);
ComponentInfo.Caption := ExpandConstant('{cm:InfoCaption}');
ComponentInfo.WordWrap := true;
end;
//выбор папки установки
procedure CheckFolder();
var
drivesletters, drive: ansistring;
lenletters, disktype, posnull, n: integer;
FreeMB, TotalMB: Cardinal;
begin
if (DefTypeInstRadio.Checked) then
WizardForm.DirEdit.Text := {#MirPfInstDir} + '\Miranda NG';
if (PortTypeInstRadio.Checked) then
begin
//получаем все диски системы
drivesletters := StringOfChar(' ', 64);
lenletters := GetLogicalDriveStrings(63, drivesletters);
SetLength(drivesletters , lenletters);
drive := '';
n := 0;
//перебираем все диски в цикле
while ((Length(drivesletters) > 0)) do
begin
posnull := Pos(#0, drivesletters);
if posnull > 0 then
begin
drive:= UpperCase(Copy(drivesletters, 1, posnull - 1));
// получаем тип диска
disktype := GetDriveType(drive);
//если съемный, то проверяем совбодное место и предлагаем поставить на него
if (disktype = DRIVE_REMOVABLE) then
begin
GetSpaceOnDisk(drive, True, FreeMB, TotalMB);
if (FreeMB > 26) then
begin
WizardForm.DirEdit.Text:=drive+'Miranda NG';
break;
end;
end;
Delete(drivesletters, 1, posnull);
posnull := Pos(#0, drivesletters);
end;
end;
if (drivesletters='') and (CompareStr(WizardForm.DirEdit.Text, drive+'Miranda NG') <> 0) then
WizardForm.DirEdit.Text := ExpandConstant('{sd}')+'\Miranda NG';
end;
end;
//выбор группы меню
procedure CheckGroup();
begin
if DefTypeInstRadio.Checked then
WizardForm.NoIconsCheck.Checked := False;
if PortTypeInstRadio.Checked then
WizardForm.NoIconsCheck.Checked := True;
end;
// Проверка выбора протоколов
procedure ComponentOnClick(Sender: TObject);
begin
if (Pos(ExpandConstant('{cm:Protocols}'), ' ' + WizardSelectedComponents(True)) = 0) then
begin
WizardForm.NextButton.Enabled := False;
end
else
WizardForm.NextButton.Enabled := True;
end;
// Проверка выбора протоколов
procedure ComponentOnKeyPress(Sender: TObject; var Key: Char);
begin
if Key = ' ' then
if (Pos(ExpandConstant('{cm:Protocols}'), ' ' + WizardSelectedComponents(True)) = 0) then
begin
WizardForm.NextButton.Enabled := False;
end
else
WizardForm.NextButton.Enabled := True;
end;
//рассчет и вывод процентов установки в лейбл
procedure ShowPercent();
begin
with WizardForm.ProgressGauge do
ProgressLabel.Caption:= IntToStr((Position-Min)/((Max - Min)/100)) + ExpandConstant('{cm:PercentDone}');
end;
//начальная инициализация
procedure InitializeWizard();
var
Version: TWindowsVersion;
begin
// Для более красивого отображения уменьшаем нижнюю границу
WizardForm.Bevel.Height := 1;
GetWindowsVersionEx(Version);
if Version.NTPlatform and
(Version.Major <= 6) and
(Version.Minor < 2) then
begin
// Инициализируем библиотеку
iswin7_add_button(WizardForm.BackButton.Handle);
iswin7_add_button(WizardForm.NextButton.Handle);
iswin7_add_button(WizardForm.CancelButton.Handle);
// Параметр True не трогать он для htuos ))
iswin7_add_glass(WizardForm.Handle, 0, 0, 0, 47, True);
end;
// Компоненты
ComponentList := TStringList.Create();
with ComponentList do
begin
ComponentList.Add('program');
ComponentList.Add('sounds');
ComponentList.Add('protocols');
ComponentList.Add('protocols\aim');
ComponentList.Add('protocols\facebook');
ComponentList.Add('protocols\gg');
ComponentList.Add('protocols\icq');
ComponentList.Add('protocols\irc');
ComponentList.Add('protocols\jabber');
ComponentList.Add('protocols\msn');
ComponentList.Add('protocols\yahoo');
ComponentList.Add('clists');
ComponentList.Add('clists\stdclist');
ComponentList.Add('clists\blind');
ComponentList.Add('ckists\nicer');
ComponentList.Add('ckists\modern');
ComponentList.Add('messagewin');
ComponentList.Add('messagewin\stdmsg');
ComponentList.Add('messagewin\scriver');
ComponentList.Add('messagewin\tabsrmm');
ComponentList.Add('dbx');
ComponentList.Add('dbx\3x');
ComponentList.Add('dbx\mmap');
ComponentList.Add('lang');
ComponentList.Add('lang\russian');
ComponentList.Add('lang\czech');
ComponentList.Add('lang\polish');
ComponentList.Add('lang\german');
ComponentList.Add('lang\english');
end;
WizardForm.NoIconsCheck.Visible:=True;
// Создание страниц
CreateInstallTypePage(); //страница выбора типа установки (обычная или портативная)
//добавление описаний к компонентам установки
CreateComponentsInfoPanel();
//обработчики проверки выбора хотя бы 1 протокола
WizardForm.ComponentsList.OnClick := @ComponentOnClick;
WizardForm.ComponentsList.OnKeyPress := @ComponentOnKeyPress;
//создание лейбла для вывода процентов установки
ProgressLabel := TLabel.Create(WizardForm);
with WizardForm.ProgressGauge do
begin
ProgressLabel.Top := Top + Height + ScaleY(8);
ProgressLabel.Left:= Left;
ProgressLabel.Caption := '0' + ExpandConstant('{cm:PercentDone}');
ProgressLabel.AutoSize := True;
ProgressLabel.Parent := WizardForm.InstallingPage;
end;
end;
//пропуск неиспользуемых страниц
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if ((PageID = wpSelectProgramGroup) or (PageID = wpSelectTasks)) and (PortTypeInstRadio.Checked) then
Result := True;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
//кастыль, чтобы обойти создание тасков
if CurPageID = wpSelectTasks then
WizardForm.TasksList.CheckItem(1, coCheck);
//langpack selection
if CurPageID = wpSelectComponents then
begin
if ActiveLanguage = 'en' then
WizardForm.ComponentsList.Checked[28]:= True
else if ActiveLanguage = 'ru' then
WizardForm.ComponentsList.Checked[24]:= True
else if ActiveLanguage = 'cz' then
WizardForm.ComponentsList.Checked[25]:= True
else if ActiveLanguage = 'pl' then
WizardForm.ComponentsList.Checked[26]:= True
else if ActiveLanguage = 'de' then
WizardForm.ComponentsList.Checked[27]:= True;
end;
end;
//обработчик нажатия кнопки Далее
function NextButtonClick(CurPage: Integer): Boolean;
begin
Result:=true;
if (CurPage=InstallTypePage.ID) then
CheckFolder();
if (CurPage = wpSelectDir) then
begin
EnableDescription(WizardForm.ComponentsList.Handle, ComponentInfo.Handle,
ExpandConstant('{cm:CoreFilesDescription}') + ';' +
ExpandConstant('{cm:SoundsDescription}') + ';' +
ExpandConstant('{cm:ProtocolsDescription}') + ';' +
ExpandConstant('{cm:ProtocolsAIMDescription}') + ';' +
ExpandConstant('{cm:ProtocolsFbDescription}') + ';' +
ExpandConstant('{cm:ProtocolsGGDescription}') + ';' +
ExpandConstant('{cm:ProtocolsICQDescription}') + ';' +
ExpandConstant('{cm:ProtocolsIRCDescription}') + ';' +
ExpandConstant('{cm:ProtocolsJabberDescription}') + ';' +
ExpandConstant('{cm:ProtocolsMSNDescription}') + ';' +
ExpandConstant('{cm:ProtocolsYahooDescription}') + ';' +
ExpandConstant('{cm:ClistsDescription}') + ';' +
ExpandConstant('{cm:StdClistDescription}') + ';' +
ExpandConstant('{cm:BlindClistDescription}') + ';' +
ExpandConstant('{cm:NicerClistDescription}') + ';' +
ExpandConstant('{cm:ModernClistDescription}') + ';' +
ExpandConstant('{cm:MessageWinDescription}') + ';' +
ExpandConstant('{cm:StdMsgDescription}') + ';' +
ExpandConstant('{cm:ScriverDescription}') + ';' +
ExpandConstant('{cm:TabsrmmDescription}') + ';' +
ExpandConstant('{cm:DBXDescription}') + ';' +
ExpandConstant('{cm:DBX_3xDescription}') + ';' +
ExpandConstant('{cm:MMAPDescription}') + ';' +
ExpandConstant('{cm:LangDescription}') + ';' +
ExpandConstant('{cm:LangRussianDescription}') + ';' +
ExpandConstant('{cm:LangCzechDescription}') + ';' +
ExpandConstant('{cm:LangPolishDescription}') + ';' +
ExpandConstant('{cm:LangGermanDescription}') + ';' +
ExpandConstant('{cm:LangEnglishDescription}') + ';' +
'');
if DirExists(WizardForm.DirEdit.Text) then
begin
case MsgBox(ExpandConstant('{cm:FolderExists1}')+#10+#10+WizardForm.DirEdit.Text+#10+#10+ExpandConstant('{cm:FolderExists2}'), mbconfirmation, mb_YesNo) of
IDYES:;
IDNO:
Result := False;
end;
end;
end;
if CurPage = wpSelectComponents then
CheckGroup();
if CurPage=wpFinished then
begin
if DirExists(AddBackslash(ExpandConstant('{app}\Icons\Fp_ClientIcons'))) then
begin
DelTree(AddBackslash(ExpandConstant('{app}\Icons\Fp_ClientIcons')), True, True, True);
end;
end;
end;
//Деинсталляция
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep=usPostUninstall then
begin
if DirExists(AddBackslash(ExpandConstant('{userappdata}\Miranda NG'))) then
if MsgBox(ExpandConstant('{cm:ProfileUninst}'), mbError, MB_YESNO or MB_DEFBUTTON2) = IDYES then
begin
DelTree(AddBackslash(ExpandConstant('{userappdata}\Miranda NG')), True, True, True);
end;
end;
end;
//Деинициализация установки
procedure DeinitializeSetup();
var
Version: TWindowsVersion;
begin
GetWindowsVersionEx(Version);
if Version.NTPlatform and
(Version.Major <= 6) and
(Version.Minor < 2) then
begin
// Отключаем библиотеку
iswin7_free;
end;
DisableDescription();
end;
|