-
Notifications
You must be signed in to change notification settings - Fork 43
/
teraterm.iss
executable file
·845 lines (772 loc) · 42.3 KB
/
teraterm.iss
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
#define AppName "Tera Term"
#ifndef AppVer
#define AppVer "5.4-dev"
#endif
;#define VerSubStr
;#define OutputSubStr
[InnoIDE_PreCompile]
Name: makechm.bat
Name: build.bat
;Name: build.bat; Parameters: rebuild
[InnoIDE_PostCompile]
;Name: makearchive.bat; Parameters: release
[PreCompile]
Name: makechm.bat
Name: build.bat
;Name: build.bat; Parameters: rebuild
[PostCompile]
;Name: makearchive.bat; Parameters: release
[_ISToolPreCompile]
Name: makechm.bat
Name: build.bat
;Name: build.bat; Parameters: rebuild
[_ISToolPostCompile]
;Name: makearchive.bat; Parameters: release
[Setup]
AppCopyright=(C) 2004-2024 TeraTerm Project
AppPublisher=TeraTerm Project
AppPublisherURL=https://teratermproject.github.io/
AppSupportURL=https://teratermproject.github.io/
AppId={{07A7E17A-F6D6-44A7-82E6-6BEE528CCA2A}
AppName={#AppName}
#ifndef VerSubStr
AppVersion={#AppVer}
#else
AppVersion={#AppVer} {#VerSubStr}
#endif
LicenseFile=release\license.txt
DefaultDirName={commonpf}\teraterm5
DefaultGroupName={#AppName} 5
ShowLanguageDialog=yes
AllowNoIcons=true
UninstallDisplayIcon={app}\ttermpro.exe
#ifndef OutputSubStr
OutputBaseFilename=teraterm-{#AppVer}
#else
OutputBaseFilename=teraterm-{#AppVer}-{#OutputSubStr}
#endif
PrivilegesRequired=none
SolidCompression=yes
Compression=lzma2/ultra64
[Languages]
Name: en; MessagesFile: compiler:Default.isl
Name: ja; MessagesFile: compiler:Languages\Japanese.isl
[Dirs]
Name: {app}\theme; Components: TeraTerm
Name: {app}\theme\scale; Components: TeraTerm
Name: {app}\theme\tile; Components: TeraTerm
Name: {app}\plugin; Components: TeraTerm
Name: {app}\lang; Components: TeraTerm
Name: {app}\lang_utf16le; Components: TeraTerm
[Files]
Source: ..\teraterm\release\ttermpro.exe; DestDir: {app}; Components: TeraTerm; Flags: ignoreversion
Source: ..\teraterm\release\ttpcmn.dll; DestDir: {app}; Components: TeraTerm; Flags: ignoreversion
Source: release\TERATERM.INI; DestDir: {app}; Components: TeraTerm
Source: release\TSPECIAL1.TTF; DestDir: {commonfonts}; Components: TeraTerm; Attribs: readonly; Flags: onlyifdoesntexist overwritereadonly uninsneveruninstall; FontInstall: Tera Special; Check: isAbleToInstallFont
;Source: release\TSPECIAL1.TTF; DestDir: {app}; Components: TeraTerm
Source: ..\doc\en\teraterm.chm; DestDir: {app}; Components: TeraTerm
Source: ..\doc\ja\teratermj.chm; DestDir: {app}; Components: TeraTerm
Source: release\license.txt; DestDir: {app}; Components: TeraTerm
Source: release\IBMKEYB.CNF; DestDir: {app}; Components: TeraTerm
Source: release\IBMKEYB.CNF; DestDir: {app}; Components: TeraTerm; DestName: KEYBOARD.CNF
Source: release\VT200.CNF; DestDir: {app}; Components: TeraTerm
Source: ..\teraterm\release\keycode.exe; DestDir: {app}; Components: TeraTerm; Flags: ignoreversion
Source: ..\teraterm\release\ttpmacro.exe; DestDir: {app}; Components: TeraTerm; Flags: ignoreversion
Source: release\delpassw.ttl; DestDir: {app}; Components: TeraTerm
Source: release\dialup.ttl; DestDir: {app}; Components: TeraTerm
Source: release\login.ttl; DestDir: {app}; Components: TeraTerm
Source: release\mpause.ttl; DestDir: {app}; Components: TeraTerm
Source: release\random.ttl; DestDir: {app}; Components: TeraTerm
Source: release\screencapture.ttl; DestDir: {app}; Components: TeraTerm
Source: release\ssh2login.ttl; DestDir: {app}; Components: TeraTerm
Source: release\wait_regex.ttl; DestDir: {app}; Components: TeraTerm
Source: release\lang\Default.lng; DestDir: {app}\lang; Components: TeraTerm; Flags: onlyifdoesntexist uninsneveruninstall; Permissions: authusers-modify
Source: release\lang\Japanese.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\German.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\French.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Russian.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Korean.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Simplified Chinese.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Spanish.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Traditional Chinese.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang\Tamil.lng; DestDir: {app}\lang; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Default.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Flags: onlyifdoesntexist uninsneveruninstall; Permissions: authusers-modify
Source: release\lang_utf16le\Japanese.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\German.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\French.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Russian.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Korean.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Simplified Chinese.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Spanish.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Traditional Chinese.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: release\lang_utf16le\Tamil.lng; DestDir: {app}\lang_utf16le; Components: TeraTerm; Attribs: readonly; Flags: uninsremovereadonly overwritereadonly
Source: ..\ttssh2\ttxssh\Release\ttxssh.dll; DestDir: {app}; Components: TTSSH; Flags: ignoreversion
Source: release\ssh_known_hosts; DestDir: {app}; Components: TTSSH
Source: ..\cygwin\cygterm\cygterm.cfg; DestDir: {app}; Components: cygterm
Source: ..\cygwin\cygterm\cygterm+.tar.gz; DestDir: {app}; Components: cygterm
Source: ..\cygwin\cygterm\cygterm+-x86_64\cygterm.exe; DestDir: {app}; Components: cygterm
Source: ..\cygwin\Release\cyglaunch.exe; DestDir: {app}; Components: cygterm
Source: ..\ttpmenu\Release\ttpmenu.exe; DestDir: {app}; Components: TeraTerm_Menu; Flags: ignoreversion
Source: ..\ttpmenu\readme.txt; DestDir: {app}; DestName: "ttmenu_readme-j.txt"; Components: TeraTerm_Menu
Source: ..\TTProxy\Release\TTXProxy.dll; DestDir: {app}; Components: TTProxy; Flags: ignoreversion
Source: release\theme\Advanced.sample; DestDir: {app}\theme\; Components: TeraTerm
Source: release\theme\ImageFile.INI; DestDir: {app}\theme\; Components: TeraTerm
Source: release\theme\Scale.INI; DestDir: {app}\theme\; Components: TeraTerm
Source: release\theme\Tile.INI; DestDir: {app}\theme\; Components: TeraTerm
Source: release\theme\scale\23.jpg; DestDir: {app}\theme\scale; Components: TeraTerm
Source: release\theme\scale\43.jpg; DestDir: {app}\theme\scale; Components: TeraTerm
Source: release\theme\tile\03.jpg; DestDir: {app}\theme\tile; Components: TeraTerm
Source: release\theme\tile\44.jpg; DestDir: {app}\theme\tile; Components: TeraTerm
Source: ..\TTXKanjiMenu\release\ttxkanjimenu.dll; DestDir: {app}\; Components: Additional_Plugins/TTXKanjiMenu; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXResizeMenu.dll; DestDir: {app}\; Components: Additional_Plugins/TTXResizeMenu; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXttyrec.dll; DestDir: {app}\; Components: Additional_Plugins/TTXttyrec; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXttyplay.dll; DestDir: {app}\; Components: Additional_Plugins/TTXttyrec; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXKcodeChange.dll; DestDir: {app}\; Components: Additional_Plugins/TTXKcodeChange; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXViewMode.dll; DestDir: {app}\; Components: Additional_Plugins/TTXViewMode; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXAlwaysOnTop.dll; DestDir: {app}\; Components: Additional_Plugins/TTXAlwaysOnTop; Flags: ignoreversion
Source: ..\TTXSamples\release\TTXRecurringCommand.dll; DestDir: {app}\; Components: Additional_Plugins/TTXRecurringCommand; Flags: ignoreversion
[Types]
Name: standard; Description: {cm:type_standard}
Name: full; Description: {cm:type_full}
Name: compact; Description: {cm:type_compact}
Name: custom; Description: {cm:type_custom}; Flags: iscustom
[Components]
Name: TeraTerm; Description: Tera Term & Macro; Flags: fixed; Types: custom compact full standard
Name: TTSSH; Description: TTSSH; Types: compact full standard
Name: cygterm; Description: CygTerm+; Types: full standard; Check: isExecutableCygtermX64
Name: TeraTerm_Menu; Description: TeraTerm Menu; Types: full
Name: TTProxy; Description: TTProxy; Types: full standard
Name: Additional_Plugins; Description: {cm:comp_TTX}
Name: Additional_Plugins/TTXResizeMenu; Description: TTXResizeMenu ({cm:comp_TTXResizeMenu}); Types: full standard
Name: Additional_Plugins/TTXttyrec; Description: TTXttyrec ({cm:comp_TTXttyrec}); Types: full standard
Name: Additional_Plugins/TTXKanjiMenu; Description: TTXKanjiMenu ({cm:comp_TTXKanjiMenu}); Languages: en
Name: Additional_Plugins/TTXKanjiMenu; Description: TTXKanjiMenu ({cm:comp_TTXKanjiMenu}); Types: full; Languages: ja
Name: Additional_Plugins/TTXKcodeChange; Description: TTXKcodeChange ({cm:comp_TTXKcodeChange}); Languages: en
Name: Additional_Plugins/TTXKcodeChange; Description: TTXKcodeChange ({cm:comp_TTXKcodeChange}); Types: full; Languages: ja
Name: Additional_Plugins/TTXViewMode; Description: TTXViewMode ({cm:comp_TTXViewMode}); Types: full
Name: Additional_Plugins/TTXAlwaysOnTop; Description: TTXAlwaysOnTop ({cm:comp_TTXAlwaysOnTop}); Types: full
Name: Additional_Plugins/TTXRecurringCommand; Description: TTXRecurringCommand ({cm:comp_TTXRecurringCommand}); Types: full
[Icons]
Name: {group}\Tera Term; Filename: {app}\ttermpro.exe; WorkingDir: {app}; IconFilename: {app}\ttermpro.exe; IconIndex: 0; Components: TeraTerm; Flags: createonlyiffileexists
Name: {group}\{cm:UninstallProgram,{#AppName}}; Filename: {uninstallexe}; Components: TeraTerm; Flags: createonlyiffileexists
Name: {group}\cyglaunch; Filename: {app}\cyglaunch.exe; WorkingDir: {app}; IconFilename: {app}\cyglaunch.exe; IconIndex: 0; Components: cygterm; Flags: createonlyiffileexists
Name: {group}\TeraTerm Menu; Filename: {app}\ttpmenu.exe; WorkingDir: {app}; IconFilename: {app}\ttpmenu.exe; IconIndex: 0; Components: TeraTerm_Menu; Flags: createonlyiffileexists
Name: {userdesktop}\Tera Term 5; Filename: {app}\ttermpro.exe; WorkingDir: {app}; IconFilename: {app}\ttermpro.exe; Components: TeraTerm; Tasks: desktopicon; IconIndex: 0; Flags: createonlyiffileexists
Name: {userstartup}\TeraTerm Menu; Filename: {app}\ttpmenu.exe; WorkingDir: {app}; IconFilename: {app}\ttpmenu.exe; Components: TeraTerm_Menu; IconIndex: 0; Tasks: startupttmenuicon; Flags: createonlyiffileexists
[Registry]
; Cygterm Here
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm; ValueType: string; ValueName: Icon; ValueData: """{app}\cyglaunch.exe"""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -v CHERE_INVOKING=y -d ""\""%L\"""""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
; Cygterm Here from folder Background
Root: HKCU; Subkey: Software\Classes\Directory\Background\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\Directory\Background\shell\cygterm; ValueType: string; ValueName: Icon; ValueData: """{app}\cyglaunch.exe"""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\Directory\Background\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -v CHERE_INVOKING=y -d ""\""%V\"""""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\LibraryFolder\Background\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\LibraryFolder\Background\shell\cygterm; ValueType: string; ValueName: Icon; ValueData: """{app}\cyglaunch.exe"""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
Root: HKCU; Subkey: Software\Classes\LibraryFolder\Background\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -v CHERE_INVOKING=y -d ""\""%V\"""""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere
; Associate with .TTL
Root: HKCU; Subkey: Software\Classes\.ttl; ValueType: string; ValueData: TeraTerm.MacroFile; Flags: uninsdeletekey; Components: TeraTerm; Tasks: macroassoc
Root: HKCU; Subkey: Software\Classes\TeraTerm.MacroFile; ValueType: string; ValueData: Tera Term Macro File; Flags: uninsdeletekey; Components: TeraTerm; Tasks: macroassoc
Root: HKCU; Subkey: Software\Classes\TeraTerm.MacroFile\DefaultIcon; ValueType: string; ValueData: {app}\ttpmacro.exe,3; Flags: uninsdeletekey; Components: TeraTerm; Tasks: macroassoc
Root: HKCU; Subkey: Software\Classes\TeraTerm.MacroFile\shell\open\command; ValueType: string; ValueData: """{app}\ttpmacro.exe"" ""%1"""; Flags: uninsdeletekey; Components: TeraTerm; Tasks: macroassoc
; Associate with telnet://
Root: HKCU; Subkey: Software\Classes\telnet\shell; ValueType: string; ValueData: Open with Tera Term; Flags: uninsclearvalue; Components: TeraTerm; Tasks: telnetassoc
Root: HKCU; Subkey: Software\Classes\telnet\shell\Open with Tera Term\command; ValueType: string; ValueData: """{app}\ttermpro.exe"" /T=1 /nossh %1"; Flags: uninsdeletekey; Components: TeraTerm; Tasks: telnetassoc
; Associate with ssh://
Root: HKCU; Subkey: Software\Classes\ssh; ValueType: string; ValueData: URL: SSH Protocol; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\ssh; ValueName: URL Protocol; ValueType: string; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\ssh; ValueName: EditFlags; ValueType: dword; ValueData: 2; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\ssh\DefaultIcon; ValueType: string; ValueData: """{app}\ttxssh.dll"",0"; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\ssh\shell\open\command; ValueType: string; ValueData: """{app}\ttermpro.exe"" %1"; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
; Associate with slogin://
Root: HKCU; Subkey: Software\Classes\slogin; ValueType: string; ValueData: URL: slogin Protocol; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\slogin; ValueName: URL Protocol; ValueType: string; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\slogin; ValueName: EditFlags; ValueType: dword; ValueData: 2; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\slogin\DefaultIcon; ValueType: string; ValueData: """{app}\ttxssh.dll"",0"; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
Root: HKCU; Subkey: Software\Classes\slogin\shell\open\command; ValueType: string; ValueData: """{app}\ttermpro.exe"" %1"; Flags: uninsdeletekey; Components: TTSSH; Tasks: sshassoc
; Associate with .TTY
Root: HKCU; Subkey: Software\Classes\.tty; ValueType: string; ValueData: TTYRecordFile; Flags: uninsdeletekey; Components: Additional_Plugins/TTXttyrec; Tasks: ttyplayassoc
Root: HKCU; Subkey: Software\Classes\TTYRecordFile; ValueType: string; ValueData: TTY Record File; Flags: uninsdeletekey; Components: Additional_Plugins/TTXttyrec; Tasks: ttyplayassoc
Root: HKCU; Subkey: Software\Classes\TTYRecordFile\DefaultIcon; ValueType: string; ValueData: {app}\ttermpro.exe,0; Flags: uninsdeletekey; Components: Additional_Plugins/TTXttyrec; Tasks: ttyplayassoc
Root: HKCU; Subkey: Software\Classes\TTYRecordFile\shell\open\command; ValueType: string; ValueData: """{app}\ttermpro.exe"" /R=""%1"" /TTYPLAY"; Flags: uninsdeletekey; Components: Additional_Plugins/TTXttyrec; Tasks: ttyplayassoc
[Tasks]
Name: desktopicon; Description: {cm:task_desktopicon}; Components: TeraTerm
Name: startupttmenuicon; Description: {cm:task_startupttmenuicon}; Components: TeraTerm_Menu
Name: cygtermhere; Description: {cm:task_cygtermhere}; Components: cygterm; Flags: unchecked
Name: macroassoc; Description: {cm:task_macroassoc}; Components: TeraTerm; Flags: unchecked
Name: telnetassoc; Description: {cm:task_telnetassoc}; Components: TeraTerm; Flags: unchecked
Name: sshassoc; Description: {cm:task_sshassoc}; Components: TTSSH; Flags: unchecked
Name: ttyplayassoc; Description: {cm:task_ttyplayassoc}; Components: Additional_Plugins/TTXttyrec; Flags: unchecked
[Run]
Filename: {app}\ttermpro.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_teraterm}; Components: TeraTerm
Filename: {app}\ttpmenu.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_ttmenu}; Components: TeraTerm_Menu
[CustomMessages]
en.task_desktopicon=Create Tera Term shortcut to &Desktop
en.task_startupttmenuicon=Create TeraTerm &Menu shortcut to Startup
en.task_cygtermhere=Add "Cy>erm Here" to Context menu
en.task_macroassoc=Associate .&ttl file to ttpmacro.exe
en.task_telnetassoc=Associate t&elnet protocol to ttermpro.exe
en.task_sshassoc=Associate &ssh protocol to ttermpro.exe
en.task_ttyplayassoc=Associate .tty file to tterm&pro.exe
ja.task_desktopicon=デスクトップに Tera Term のショートカットを作る(&D)
ja.task_startupttmenuicon=スタートアップに TeraTerm &Menu のショートカットを作る
ja.task_cygtermhere=コンテキストメニューに "Cy>erm Here" を追加する
ja.task_macroassoc=.&ttl ファイルを ttpmacro.exe に関連付ける
ja.task_telnetassoc=t&elnet プロトコルを ttermpro.exe に関連付ける
ja.task_sshassoc=&ssh プロトコルを ttermpro.exe に関連付ける
ja.task_ttyplayassoc=.tty ファイルを tterm&pro.exe に関連付ける
en.type_standard=Standard installation
en.type_full=Full installation
en.type_compact=Compact installation
en.type_custom=Custom installation
ja.type_standard=標準インストール
ja.type_full=フルインストール
ja.type_compact=コンパクトインストール
ja.type_custom=カスタムインストール
en.launch_teraterm=Launch &Tera Term
en.launch_ttmenu=Launch TeraTerm &Menu
ja.launch_teraterm=今すぐ &Tera Term を実行する
ja.launch_ttmenu=今すぐ TeraTerm &Menu を実行する
en.msg_language_caption=Select Language
en.msg_language_description=Which language shoud be used?
en.msg_language_subcaption=Select the language of application's menu and dialog, then click Next.
en.msg_language_none=&English
en.msg_language_japanese=&Japanese
en.msg_language_german=&German
en.msg_language_french=&French
en.msg_language_russian=&Russian
en.msg_language_korean=&Korean
en.msg_language_chinese=&Chinese(Simplified)
en.msg_language_tchinese=Chinese(&Traditional)
en.msg_language_spanish=&Spanish
en.msg_language_tamil=T&amil
ja.msg_language_caption=言語の選択
ja.msg_language_description=ユーザーインターフェースの言語を選択してください。
ja.msg_language_subcaption=アプリケーションのメニューやダイアログ等の表示言語を選択して、「次へ」をクリックしてください。
ja.msg_language_none=英語(&E)
ja.msg_language_japanese=日本語(&J)
ja.msg_language_german=ドイツ語(&G)
ja.msg_language_french=フランス語(&F)
ja.msg_language_russian=ロシア語(&R)
ja.msg_language_korean=韓国語(&K)
ja.msg_language_chinese=簡体字中国語(&C)
ja.msg_language_tchinese=繁体字中国語(&T)
ja.msg_language_spanish=スペイン語(&S)
ja.msg_language_tamil=タミル語(&A)
en.msg_del_confirm=Are you sure that you want to delete %s ?
ja.msg_del_confirm=%s を削除しますか?
en.msg_uninstall_confirm=It seems a former version is installed. You are recommended to uninstall it previously. Do you uninstall former version ?
ja.msg_uninstall_confirm=以前のバージョンがインストールされているようです。先にアンインストールすることをお勧めします。アンインストールしますか?
en.comp_TTX=Additional Plugins
ja.comp_TTX=追加プラグイン
en.comp_TTXResizeMenu=VT-Window size can be changed from preset
ja.comp_TTXResizeMenu=VTウィンドウのサイズをプリセット値の中から変更できるようにする
en.comp_TTXttyrec=ttyrec format record data can be recorded or playback
ja.comp_TTXttyrec=ttyrec形式の録画データを記録/再生できるようにする
en.comp_TTXKanjiMenu=Changes Japanese Kanji Code from VT-Window menu
ja.comp_TTXKanjiMenu=日本語の漢字コードをVTウィンドウのメニューから設定できるようにする
en.comp_TTXKcodeChange=Change Japanese Kanji code by remote sequence
ja.comp_TTXKcodeChange=リモートからのシーケンスで日本語の漢字コードを変更する
en.comp_TTXViewMode=View-only mode can be used
ja.comp_TTXViewMode=表示専用モードにすることができる
en.comp_TTXAlwaysOnTop=Always On Top can be used
ja.comp_TTXAlwaysOnTop=常に最前面に表示できるようにする
en.comp_TTXRecurringCommand=Recurring Command can be used
ja.comp_TTXRecurringCommand=定期的に文字列を送信する
en.comp_installer=Other installer is started
ja.comp_installer=インストーラが起動します
en.msg_AppRunningError=Setup has detected that %s is currently running.%n%nPlease close all instances of it now, then click Next to continue.
ja.msg_AppRunningError=セットアップは実行中の %s を検出しました。%n%n開いているアプリケーションをすべて閉じてから「次へ」をクリックしてください。
[Code]
const
SHCNF_IDLIST = $0000;
SHCNE_ASSOCCHANGED = $08000000;
IMAGE_FILE_MACHINE_UNKNOWN = $0000;
IMAGE_FILE_MACHINE_I386 = $014c;
IMAGE_FILE_MACHINE_AMD64 = $8664;
procedure SHChangeNotify(wEventId, uFlags, dwItem1, dwItem2: Integer);
external '[email protected] stdcall';
var
UILangFilePage: TInputOptionWizardPage;
// Windows 11 or later
function isWin11OrLater : Boolean;
var
Version: TWindowsVersion;
begin;
GetWindowsVersionEx(Version);
if (Version.Major >= 10) and (Version.Build >= 22000) then
Result := True
else
Result := False;
end;
// Cygterm x86_64 is executable
function isExecutableCygtermX64 : Boolean;
begin
if ProcessorArchitecture = paX64 then
Result := True
else if ProcessorArchitecture = paARM64 then
// x86_64 binary is executable on ARM64 by WoW64
if isWin11OrLater then
Result := True
else
Result := False
else
Result := False;
end;
// Admins or PowerUsers
function isAbleToInstallFont : Boolean;
begin;
if IsAdmin() then begin
Result := True;
end else begin
Result := False
end;
end;
{
// If value is not found in INI, returns ""
function GetIniString2(Section:String; Key:String; Filename:String) : String;
var
Default1: String;
Default2: String;
Value1: String;
Value2: String;
begin
Default1 := 'on';
Default2 := 'off';
Value1 := GetIniString(Section, Key, Default1, Filename);
Value2 := GetIniString(Section, Key, Default2, Filename);
if Value1 <> Value2 then
// no value in INI
Result := ''
else
// value in INI
Result := Value1
end;
}
function CheckFileUsing(Filename:String) : integer;
var
TmpFileName : String;
begin
if FileExists(FileName) then
begin
TmpFileName := FileName + '.' + GetDateTimeString('yyyymmddhhnnss', #0, #0); // Tmp file ends with timestamp
if FileCopy(FileName, TmpFileName, True) then
if DeleteFile(FileName) then
if RenameFile(TmpFileName, FileName) then
Result := 0
else
Result := -1 // permission?
else
begin
Result := 1; // failed to delete
DeleteFile(TmpFileName);
end
else
Result := -1 // permission?
end
else
Result := 0;
end;
function CheckAppsUsing() : string;
var
FileDir : String;
FileName : array[0..6] of String;
FileDesc : array[0..6] of String;
i : integer;
begin
FileDir := ExpandConstant('{app}');
FileName[0] := FileDir + '\ttermpro.exe';
FileName[1] := FileDir + '\ttpmacro.exe';
FileName[2] := FileDir + '\keycode.exe';
FileName[3] := FileDir + '\ttpmenu.exe';
FileName[4] := FileDir + '\cygterm.exe';
FileDesc[0] := 'Tera Term';
FileDesc[1] := 'Tera Term Macro';
FileDesc[2] := 'Keycode';
FileDesc[3] := 'TeraTerm Menu';
FileDesc[4] := 'CygTerm+';
for i := 0 to 4 do
begin
case CheckFileUsing(FileName[i]) of
1:
// Failed to delete. In use.
begin
if Length(Result) > 0 then
Result := Result + ', ' + FileDesc[i]
else
Result := FileDesc[i]
end;
else
// -1: Failed to copy/rename
// 0: OK
// NOP
end;
end;
end;
function GetDefaultIniFilename : String;
begin
Result := ExpandConstant('{app}') + '\TERATERM.INI';
end;
procedure SetIniFile(iniFile: String);
var
Language : String;
VTFont : String;
TEKFont : String;
TCPPort : integer;
ViewlogEditor : String;
CipherOrder : String;
begin
Language := GetIniString('Tera Term', 'Language', '', iniFile);
VTFont := GetIniString('Tera Term', 'VTFont', '', iniFile);
TEKFont := GetIniString('Tera Term', 'TEKFont', '', iniFile);
TCPPort := GetIniInt('Tera Term', 'TCPPort', 0, 0, 65535, iniFile)
ViewlogEditor := GetIniString('Tera Term', 'ViewlogEditor', '', iniFile);
CipherOrder := GetIniString('TTSSH', 'CipherOrder', '', iniFile);
case GetUILanguage and $3FF of
$04: // Chinese
begin
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'UTF-8', iniFile);
if Length(VTFont) = 0 then
SetIniString('Tera Term', 'VTFont', 'Terminal,0,-12,255', iniFile);
if Length(TEKFont) = 0 then
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,255', iniFile);
SetIniString('Tera Term', 'UnicodeAmbiguousWidth', '2', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiOverride', 'on', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiWidth', '2', iniFile);
end;
$11: // Japanese
begin
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'Japanese', iniFile);
if Length(VTFont) = 0 then
SetIniString('Tera Term', 'VTFont', 'MS ゴシック,0,-16,128', iniFile);
if Length(TEKFont) = 0 then
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,128', iniFile);
SetIniString('Tera Term', 'UnicodeAmbiguousWidth', '2', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiOverride', 'on', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiWidth', '2', iniFile);
end;
$12: // Korean
begin
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'Korean', iniFile);
if Length(VTFont) = 0 then
SetIniString('Tera Term', 'VTFont', 'Terminal,0,-12,255', iniFile);
if Length(TEKFont) = 0 then
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,255', iniFile);
SetIniString('Tera Term', 'UnicodeAmbiguousWidth', '2', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiOverride', 'on', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiWidth', '2', iniFile);
end;
$19: // Russian
begin
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'Russian', iniFile);
if Length(VTFont) = 0 then
SetIniString('Tera Term', 'VTFont', 'Terminal,0,-12,255', iniFile);
if Length(TEKFont) = 0 then
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,255', iniFile);
SetIniString('Tera Term', 'UnicodeAmbiguousWidth', '1', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiOverride', 'off', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiWidth', '1', iniFile);
end;
else // Other
begin
if GetUILanguage = $409 then begin // en-US
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'UTF-8', iniFile);
end else begin // Other
if Length(Language) = 0 then
SetIniString('Tera Term', 'Language', 'English', iniFile);
end;
if Length(VTFont) = 0 then
SetIniString('Tera Term', 'VTFont', 'Terminal,0,-12,255', iniFile);
if Length(TEKFont) = 0 then
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,255', iniFile);
SetIniString('Tera Term', 'UnicodeAmbiguousWidth', '1', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiOverride', 'off', iniFile);
SetIniString('Tera Term', 'UnicodeEmojiWidth', '1', iniFile);
end;
end;
case UILangFilePage.SelectedValueIndex of
1:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Japanese.lng', iniFile);
2:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\German.lng', iniFile);
3:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\French.lng', iniFile);
4:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Russian.lng', iniFile);
5:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Korean.lng', iniFile);
6:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Simplified Chinese.lng', iniFile);
7:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Traditional Chinese.lng', iniFile);
8:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Spanish.lng', iniFile);
9:
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Tamil.lng', iniFile);
else
SetIniString('Tera Term', 'UILanguageFile', 'lang_utf16le\Default.lng', iniFile);
end;
if TCPPort = 0 then begin
if WizardIsComponentSelected('TTSSH') then
SetIniInt('Tera Term', 'TCPPort', 22, iniFile)
else
SetIniInt('Tera Term', 'TCPPort', 23, iniFile);
end;
if ViewlogEditor = 'notepad.exe' then begin
ViewlogEditor := ExpandConstant('{win}') + '\' + 'notepad.exe';
SetIniString('Tera Term', 'ViewlogEditor', ViewlogEditor, iniFile);
end;
if WizardIsComponentSelected('TTSSH') then
begin
// これまでの TERATERM.INI のデフォルト値と同じ値なら、最新のデフォルト値で上書きする
// 新しく追加した方式が disable line より後ろに行ってしまう現象への対処
CipherOrder := GetIniString('TTSSH', 'CipherOrder', '', iniFile);
if (CompareStr(CipherOrder, 'MLK>H:J=G9I<F8C7D;EB30A@?62') = 0) or
(CompareStr(CipherOrder, 'K>H:J=G9I<F8C7D;EB30A@?62') = 0) or
(CompareStr(CipherOrder, 'K>H:J=G9I<F8C7D;A@?EB3062') = 0) or
(CompareStr(CipherOrder, '>:=9<8C7D;A@?EB3062') = 0) or
(CompareStr(CipherOrder, '>:=9<87;A@?B3026') = 0) or
(CompareStr(CipherOrder, '>:=9<87;A@?3026') = 0) or
(CompareStr(CipherOrder, '>:=9<87;?3026') = 0) or
(CompareStr(CipherOrder, '<8=9>:7;3026') = 0) or
(CompareStr(CipherOrder, '87;9:<=>3026') = 0) or
(CompareStr(CipherOrder, '87;9:3026') = 0) or
(CompareStr(CipherOrder, '873026') = 0) then
SetIniString('TTSSH', 'CipherOrder', 'MKN>H:J=G9LI<F8C7D;EB30A@?62', iniFile)
end;
end;
procedure InitializeWizard;
var
UILangFilePageCaption : String;
UILangFilePageDescription : String;
UILangFilePageSubCaption : String;
UILangFilePageNone : String;
UILangFilePageJapanese : String;
UILangFilePageGerman : String;
UILangFilePageFrench : String;
UILangFilePageRussian : String;
UILangFilePageKorean : String;
UILangFilePageChinese : String;
UILangFilePageTChinese : String;
UILangFilePageSpanish : String;
UILangFilePageTamil : String;
begin
UILangFilePageCaption := CustomMessage('msg_language_caption');
UILangFilePageDescription := CustomMessage('msg_language_description');
UILangFilePageSubCaption := CustomMessage('msg_language_subcaption');
UILangFilePageNone := CustomMessage('msg_language_none');
UILangFilePageJapanese := CustomMessage('msg_language_japanese');
UILangFilePageGerman := CustomMessage('msg_language_german');
UILangFilePageFrench := CustomMessage('msg_language_french');
UILangFilePageRussian := CustomMessage('msg_language_russian');
UILangFilePageKorean := CustomMessage('msg_language_korean');
UILangFilePageChinese := CustomMessage('msg_language_chinese');
UILangFilePageTChinese := CustomMessage('msg_language_tchinese');
UILangFilePageSpanish := CustomMessage('msg_language_spanish');
UILangFilePageTamil := CustomMessage('msg_language_tamil');
UILangFilePage := CreateInputOptionPage(wpSelectComponents,
UILangFilePageCaption, UILangFilePageDescription,
UILangFilePageSubCaption, True, False);
UILangFilePage.Add(UILangFilePageNone);
UILangFilePage.Add(UILangFilePageJapanese);
UILangFilePage.Add(UILangFilePageGerman);
UILangFilePage.Add(UILangFilePageFrench);
UILangFilePage.Add(UILangFilePageRussian);
UILangFilePage.Add(UILangFilePageKorean);
UILangFilePage.Add(UILangFilePageChinese);
UILangFilePage.Add(UILangFilePageTChinese);
UILangFilePage.Add(UILangFilePageSpanish);
UILangFilePage.Add(UILangFilePageTamil);
case ActiveLanguage of
'ja':
UILangFilePage.SelectedValueIndex := 1;
// 他の言語は最新版に追従していないので、日本語だけ特別扱い
else
UILangFilePage.SelectedValueIndex := 0;
end;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
var
iniFile : String;
ErrMsg : String;
begin
Result := True;
case CurPageID of
wpSelectDir:
begin
ErrMsg := CheckAppsUsing();
if Length(ErrMsg) > 0 then
begin
MsgBox(Format(CustomMessage('msg_AppRunningError'), [ErrMsg]), mbError, MB_OK);
Result := False;
end
else
// -1: goto next. Turn over to Inno Setup.
// 0: goto next. No problem.
// NOP
end;
wpSelectComponents:
begin
if FileExists(GetDefaultIniFileName()) then
begin
iniFile := Lowercase(GetIniString('Tera Term', 'UILanguageFile', '', GetDefaultIniFilename()));
if iniFile = 'lang_utf16le\japanese.lng' then
UILangFilePage.SelectedValueIndex := 1
else if iniFile = 'lang_utf16le\german.lng' then
UILangFilePage.SelectedValueIndex := 2
else if iniFile = 'lang_utf16le\french.lng' then
UILangFilePage.SelectedValueIndex := 3
else if iniFile = 'lang_utf16le\russian.lng' then
UILangFilePage.SelectedValueIndex := 4
else if iniFile = 'lang_utf16le\korean.lng' then
UILangFilePage.SelectedValueIndex := 5
else if iniFile = 'lang_utf16le\simplified chinese.lng' then
UILangFilePage.SelectedValueIndex := 6
else if iniFile = 'lang_utf16le\traditional chinese.lng' then
UILangFilePage.SelectedValueIndex := 7
else if iniFile = 'lang_utf16le\Spanish.lng' then
UILangFilePage.SelectedValueIndex := 8
else if iniFile = 'lang_utf16le\Tamil.lng' then
UILangFilePage.SelectedValueIndex := 9
else
UILangFilePage.SelectedValueIndex := 0;
end;
end;
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
var
iniFile : String;
begin
case CurStep of
ssPostInstall:
begin
iniFile := GetDefaultIniFilename();
SetIniFile(iniFile);
if not WizardIsTaskSelected('cygtermhere') then
begin;
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\Folder\shell\cygterm');
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\Directory\Background\shell\cygterm');
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\LibraryFolder\Background\shell\cygterm');
end;
if not WizardIsTaskSelected('macroassoc') then
begin;
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\.ttl');
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\TeraTerm.MacroFile');
end;
if not WizardIsTaskSelected('telnetassoc') then
begin;
// デフォルトで telnet プロトコルに関連付けがある Windows バージョンがあるため、Tera Term への関連付けだけを削除する
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\telnet\shell\Open with Tera Term');
RegDeleteValue(HKEY_CURRENT_USER, 'Software\Classes\telnet\shell', '');
end;
if not WizardIsTaskSelected('sshassoc') then
begin;
// デフォルトの関連付けがないので、プロトコルごと削除
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\ssh');
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\slogin');
end;
if not WizardIsTaskSelected('ttyplayassoc') then
begin;
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\.tty');
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\TTYRecordFile');
end;
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0);
end; // ssPostInstall
end; // case CurStep of
end; // CurStepChanged
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
ini : array[0..1] of String;
buf : String;
conf : String;
confmsg : String;
app : String;
i, res : Integer;
silent : Boolean;
begin
case CurUninstallStep of
usPostUninstall:
begin
ini[0] := '\lang\Default.lng';
ini[1] := '\lang_utf16le\Default.lng';
conf := CustomMessage('msg_del_confirm');
app := ExpandConstant('{app}');
silent := false;
for i := 0 to ParamCount() do
begin
if (CompareText('/SUPPRESSMSGBOXES', ParamStr(i)) = 0) then
silent := true;
end;
if not silent then begin
// delete config files
for i := 0 to 1 do
begin
buf := app + ini[i];
if FileExists(buf) then begin
confmsg := Format(conf, [buf]);
res := MsgBox(confmsg, mbInformation, MB_YESNO or MB_DEFBUTTON2);
if res = IDYES then
DeleteFile(buf);
end;
end;
// delete registory
if RegKeyExists(HKEY_CURRENT_USER, 'Software\ShinpeiTools\TTermMenu') then begin
confmsg := Format(conf, ['HKEY_CURRENT_USER' + '\Software\ShinpeiTools\TTermMenu']);
res := MsgBox(confmsg, mbInformation, MB_YESNO or MB_DEFBUTTON2);
if res = IDYES then begin
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\ShinpeiTools\TTermMenu');
RegDeleteKeyIfEmpty(HKEY_CURRENT_USER, 'Software\ShinpeiTools');
end;
end;
end;
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0);
// directory is deleted only if empty
RemoveDir(app + '\lang');
RemoveDir(app + '\lang_utf16le');
RemoveDir(app);
end;
end;
end;
[InstallDelete]
; インストーラに含めたことがあり、のちに含めなくなったファイルを指定する。
; 新しいインストーラで上書きインストールしたあとのアンインストーラでは削除されないため。
Name: {app}\OpenSSH-LICENCE.txt; Type: files
Name: {app}\cygterm-README.txt; Type: files
Name: {app}\cygterm-README-j.txt; Type: files
Name: {app}\keycode.txt; Type: files
Name: {app}\keycodej.txt; Type: files
Name: {app}\RE.txt; Type: files
Name: {app}\RE-ja.txt; Type: files
Name: {app}\ssh2_readme.txt; Type: files
Name: {app}\ssh2_readme-j.txt; Type: files
Name: {app}\utf8_readme.txt; Type: files
Name: {app}\utf8_readme-j.txt; Type: files
Name: {app}\OpenSSH-LICENSE.txt; Type: files
Name: {app}\OpenSSL-LICENSE.txt; Type: files
Name: {group}\TeraTerm Document.lnk; Type: files
Name: {group}\TeraTerm Document(Japanese).lnk; Type: files
Name: {group}\TTSSH Document.lnk; Type: files
Name: {group}\TTSSH Document(Japanese).lnk; Type: files
Name: {app}\LogMeTT.hlp; Type: files
Name: {app}\macro.hlp; Type: files
Name: {app}\macroj.hlp; Type: files
Name: {app}\ttermp.hlp; Type: files
Name: {app}\ttermpj.hlp; Type: files
Name: {app}\copyfont.bat; Type: files
Name: {app}\copyfont.pif; Type: files
Name: {app}\libeay.txt; Type: files
Name: {app}\cygterm+-x86_64\cyglaunch.exe; Type: files
Name: {app}\ttpdlg.dll; Type: files
Name: {app}\ttpset.dll; Type: files
Name: {app}\ttptek.dll; Type: files
[UninstallDelete]
; cygterm.exe は cygterm+-x86_64\cygterm.exe か cygterm+-i686\cygterm.exe を
; スクリプトでコピーしたもので、自動でアンインストールされないため。
Name: {app}\cygterm.exe; Type: files