1 |
#define AppName "Tera Term" |
#define AppName "Tera Term" |
2 |
#define AppVer "4.69-RC3" |
#define AppVer "4.72" |
3 |
;#define snapshot GetDateTimeString('yyyymmdd_hhnnss', '', ''); |
;#define snapshot GetDateTimeString('yyyymmdd_hhnnss', '', ''); |
4 |
|
|
5 |
[Setup] |
[Setup] |
16 |
ShowLanguageDialog=yes |
ShowLanguageDialog=yes |
17 |
AllowNoIcons=true |
AllowNoIcons=true |
18 |
UninstallDisplayIcon={app}\ttermpro.exe |
UninstallDisplayIcon={app}\ttermpro.exe |
|
;AppMutex=TeraTermProAppMutex, TeraTermProMacroAppMutex, TeraTermProKeycodeAppMutex, TeraTermMenuAppMutex, CygTermAppMutex, Global\TeraTermProAppMutex, Global\TeraTermProMacroAppMutex, Global\TeraTermProKeycodeAppMutex, Global\TeraTermMenuAppMutex, Global\CygTermAppMutex |
|
19 |
#ifndef snapshot |
#ifndef snapshot |
20 |
OutputBaseFilename=teraterm-{#AppVer} |
OutputBaseFilename=teraterm-{#AppVer} |
21 |
#else |
#else |
73 |
Source: ..\cygterm\cygterm.cfg; DestDir: {app}; Components: cygterm; Flags: onlyifdoesntexist uninsneveruninstall; Permissions: authusers-modify |
Source: ..\cygterm\cygterm.cfg; DestDir: {app}; Components: cygterm; Flags: onlyifdoesntexist uninsneveruninstall; Permissions: authusers-modify |
74 |
Source: ..\cygterm\cyglaunch.exe; DestDir: {app}; Components: cygterm |
Source: ..\cygterm\cyglaunch.exe; DestDir: {app}; Components: cygterm |
75 |
Source: ..\cygterm\cygterm+.tar.gz; DestDir: {app}; Components: cygterm |
Source: ..\cygterm\cygterm+.tar.gz; DestDir: {app}; Components: cygterm |
76 |
Source: ..\libs\logmett\Setup_LogMeTT_2_9_8_1.exe; DestDir: {tmp}; Components: LogMeTT; Flags: deleteafterinstall |
Source: ..\libs\logmett\Setup_LogMeTT_2_9_9_2.exe; DestDir: {tmp}; Components: LogMeTT; Flags: deleteafterinstall |
77 |
Source: ..\libs\logmett\Setup_TTLEditor_1_2_1.exe; DestDir: {tmp}; Components: TTLEdit; Flags: deleteafterinstall |
Source: ..\libs\logmett\Setup_TTLEditor_1_4_41.exe; DestDir: {tmp}; Components: TTLEdit; Flags: deleteafterinstall |
78 |
Source: ..\ttpmenu\Release\ttpmenu.exe; DestDir: {app}; Components: TeraTerm_Menu; Flags: ignoreversion |
Source: ..\ttpmenu\Release\ttpmenu.exe; DestDir: {app}; Components: TeraTerm_Menu; Flags: ignoreversion |
79 |
Source: release\ttmenu_readme-j.txt; DestDir: {app}; Components: TeraTerm_Menu |
Source: release\ttmenu_readme-j.txt; DestDir: {app}; Components: TeraTerm_Menu |
80 |
Source: ..\TTProxy\Release\TTXProxy.dll; DestDir: {app}; Components: TTProxy; Flags: ignoreversion |
Source: ..\TTProxy\Release\TTXProxy.dll; DestDir: {app}; Components: TTProxy; Flags: ignoreversion |
113 |
Name: TeraTerm; Description: Tera Term & Macro; Flags: fixed; Types: custom compact full standard |
Name: TeraTerm; Description: Tera Term & Macro; Flags: fixed; Types: custom compact full standard |
114 |
Name: TTSSH; Description: TTSSH; Types: compact full standard |
Name: TTSSH; Description: TTSSH; Types: compact full standard |
115 |
Name: cygterm; Description: CygTerm+; Types: full standard; Check: not isIA64 |
Name: cygterm; Description: CygTerm+; Types: full standard; Check: not isIA64 |
116 |
Name: LogMeTT; Description: LogMeTT; Types: full standard; MinVersion: 4.1.1998,4.0.1381sp6 |
Name: LogMeTT; Description: LogMeTT ({cm:comp_installer}); Types: full; MinVersion: 4.1.1998,4.0.1381sp6 |
117 |
Name: TTLEdit; Description: TTLEdit; Types: full standard; MinVersion: 4.1.1998,4.0.1381sp6 |
Name: TTLEdit; Description: TTLEdit ({cm:comp_installer}); Types: full; MinVersion: 4.1.1998,4.0.1381sp6 |
118 |
Name: TeraTerm_Menu; Description: TeraTerm Menu; Types: full |
Name: TeraTerm_Menu; Description: TeraTerm Menu; Types: full |
119 |
Name: TTProxy; Description: TTProxy; Types: full standard |
Name: TTProxy; Description: TTProxy; Types: full standard |
120 |
Name: Collector; Description: Collector; Types: full |
Name: Collector; Description: Collector; Types: full |
144 |
[Registry] |
[Registry] |
145 |
; Cygterm Here |
; Cygterm Here |
146 |
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
147 |
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d \""%L\"""; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
Root: HKCU; Subkey: Software\Classes\Folder\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d ""\""%L\"""""; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
148 |
Root: HKCR; Subkey: Folder\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Check: not isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
Root: HKCR; Subkey: Folder\shell\cygterm; ValueType: string; ValueData: Cy>erm Here; Flags: uninsdeletekey; Check: not isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
149 |
Root: HKCR; Subkey: Folder\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d \""%L\"""; Flags: uninsdeletekey; Check: not isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
Root: HKCR; Subkey: Folder\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d ""\""%L\"""""; Flags: uninsdeletekey; Check: not isWin2kOrLater; Components: cygterm; Tasks: cygtermhere |
150 |
|
; Cygterm Here from folder Background |
151 |
|
; MinVersion 5.00.0000 = not Win9x, 6.0.6000 = Vista or later |
152 |
|
Root: HKCU; Subkey: Software\Classes\Directory\Background\shell\cygterm; ValueType: string; ValueData: "Cy>erm Here"; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere; MinVersion: 5.00.0000,6.0.6000 |
153 |
|
Root: HKCU; Subkey: Software\Classes\Directory\Background\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d ""\""%V\"""""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere; MinVersion: 5.00.0000,6.0.6000 |
154 |
|
Root: HKCU; Subkey: Software\Classes\LibraryFolder\Background\shell\cygterm; ValueType: string; ValueData: "Cy>erm Here"; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere; MinVersion: 5.00.0000,6.0.6000 |
155 |
|
Root: HKCU; Subkey: Software\Classes\LibraryFolder\Background\shell\cygterm\command; ValueType: string; ValueData: """{app}\cyglaunch.exe"" -nocd -nols -d ""\""%V\"""""; Flags: uninsdeletekey; Components: cygterm; Tasks: cygtermhere; MinVersion: 5.00.0000,6.0.6000 |
156 |
; Associate with .TTL |
; Associate with .TTL |
157 |
Root: HKCU; Subkey: Software\Classes\.ttl; ValueType: string; ValueData: TeraTerm.MacroFile; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: TeraTerm; Tasks: macroassoc |
Root: HKCU; Subkey: Software\Classes\.ttl; ValueType: string; ValueData: TeraTerm.MacroFile; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: TeraTerm; Tasks: macroassoc |
158 |
Root: HKCU; Subkey: Software\Classes\TeraTerm.MacroFile; ValueType: string; ValueData: Tera Term Macro File; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: TeraTerm; Tasks: macroassoc |
Root: HKCU; Subkey: Software\Classes\TeraTerm.MacroFile; ValueType: string; ValueData: Tera Term Macro File; Flags: uninsdeletekey; Check: isWin2kOrLater; Components: TeraTerm; Tasks: macroassoc |
213 |
|
|
214 |
[Run] |
[Run] |
215 |
Filename: {app}\ttermpro.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_teraterm}; Components: TeraTerm |
Filename: {app}\ttermpro.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_teraterm}; Components: TeraTerm |
216 |
Filename: {tmp}\Setup_LogMeTT_2_9_7.exe; Components: LogMeTT |
Filename: {tmp}\Setup_LogMeTT_2_9_9_2.exe; Components: LogMeTT |
217 |
Filename: {tmp}\Setup_TTLEditor_1_2_1.exe; Components: TTLEdit |
Filename: {tmp}\Setup_TTLEditor_1_4_41.exe; Components: TTLEdit |
218 |
Filename: {app}\ttpmenu.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_ttmenu}; Components: TeraTerm_Menu |
Filename: {app}\ttpmenu.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_ttmenu}; Components: TeraTerm_Menu |
219 |
Filename: {app}\Collector\Collector.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_collector}; Components: Collector |
Filename: {app}\Collector\Collector.exe; Flags: nowait postinstall skipifsilent unchecked; Description: {cm:launch_collector}; Components: Collector |
220 |
|
|
287 |
ja.comp_TTXAlwaysOnTop=常に最前面に表示できるようにする |
ja.comp_TTXAlwaysOnTop=常に最前面に表示できるようにする |
288 |
en.comp_TTXRecurringCommand=Recurring Command can be used |
en.comp_TTXRecurringCommand=Recurring Command can be used |
289 |
ja.comp_TTXRecurringCommand=定期的に文字列を送信する |
ja.comp_TTXRecurringCommand=定期的に文字列を送信する |
290 |
en.msg_AppRunningError=Setup has detected that Tera Term is currently running.%n%nPlease close all instances of it now, then click Next to continue. |
en.comp_installer=Other installer is started |
291 |
ja.msg_AppRunningError=セットアップは実行中の Tera Term を検出しました。%n%n開いているアプリケーションをすべて閉じてから「次へ」をクリックしてください。 |
ja.comp_installer=インストーラが起動します |
292 |
|
en.msg_AppRunningError=Setup has detected that %s is currently running.%n%nPlease close all instances of it now, then click Next to continue. |
293 |
|
ja.msg_AppRunningError=セットアップは実行中の %s を検出しました。%n%n開いているアプリケーションをすべて閉じてから「次へ」をクリックしてください。 |
294 |
|
|
295 |
[Code] |
[Code] |
296 |
const |
const |
366 |
end; |
end; |
367 |
} |
} |
368 |
|
|
369 |
function CheckAppUsing(Filename:String) : integer; |
function CheckFileUsing(Filename:String) : integer; |
370 |
var |
var |
371 |
TmpFileName : String; |
TmpFileName : String; |
372 |
begin |
begin |
391 |
Result := 0; |
Result := 0; |
392 |
end; |
end; |
393 |
|
|
394 |
function CheckAppsUsing() : integer; |
function CheckAppsUsing() : string; |
395 |
var |
var |
396 |
FileDir : String; |
FileDir : String; |
397 |
FileName : array[0..6] of String; |
FileName : array[0..6] of String; |
398 |
|
FileDesc : array[0..6] of String; |
399 |
i : integer; |
i : integer; |
|
flag : boolean; |
|
400 |
begin |
begin |
401 |
FileDir := ExpandConstant('{app}'); |
FileDir := ExpandConstant('{app}'); |
402 |
FileName[0] := FileDir + '\ttermpro.exe'; |
FileName[0] := FileDir + '\ttermpro.exe'; |
406 |
FileName[4] := FileDir + '\cygterm.exe'; |
FileName[4] := FileDir + '\cygterm.exe'; |
407 |
FileName[5] := FileDir + '\Collector.exe'; |
FileName[5] := FileDir + '\Collector.exe'; |
408 |
FileName[6] := FileDir + '\Collector_org.exe'; |
FileName[6] := FileDir + '\Collector_org.exe'; |
409 |
|
FileDesc[0] := 'Tera Term'; |
410 |
|
FileDesc[1] := 'Tera Term Macro'; |
411 |
|
FileDesc[2] := 'Keycode'; |
412 |
|
FileDesc[3] := 'TeraTerm Menu'; |
413 |
|
FileDesc[4] := 'CygTerm+'; |
414 |
|
FileDesc[5] := 'Collector'; |
415 |
|
FileDesc[6] := 'Collector'; |
416 |
|
|
|
flag := True; |
|
417 |
for i := 0 to 6 do |
for i := 0 to 6 do |
418 |
begin |
begin |
419 |
if flag = True then |
case CheckFileUsing(FileName[i]) of |
420 |
begin |
1: |
421 |
case CheckAppUsing(FileName[i]) of |
// Failed to delete. In use. |
422 |
1: |
begin |
423 |
// failed to delete. in use. |
if Length(Result) > 0 then |
424 |
begin |
Result := Result + ', ' + FileDesc[i] |
425 |
Result := 1; |
else |
426 |
flag := False; |
Result := FileDesc[i] |
427 |
end; |
end; |
428 |
-1: |
else |
429 |
// failed to copy/rename |
// -1: Failed to copy/rename |
430 |
begin |
// 0: OK |
431 |
Result := -1; |
// NOP |
|
flag := False; |
|
|
end; |
|
|
else |
|
|
// OK |
|
|
end; |
|
432 |
end; |
end; |
433 |
end; |
end; |
434 |
|
|
457 |
VTFont := GetIniString('Tera Term', 'VTFont', '', iniFile); |
VTFont := GetIniString('Tera Term', 'VTFont', '', iniFile); |
458 |
TEKFont := GetIniString('Tera Term', 'TEKFont', '', iniFile); |
TEKFont := GetIniString('Tera Term', 'TEKFont', '', iniFile); |
459 |
FileDir := GetIniString('Tera Term', 'FileDir', '', iniFile); |
FileDir := GetIniString('Tera Term', 'FileDir', '', iniFile); |
460 |
FileDir := GetIniString('Tera Term', 'FileDir', '', iniFile); |
TCPPort := GetIniInt('Tera Term', 'TCPPort', 0, 0, 65535, iniFile) |
461 |
ViewlogEditor := GetIniString('Tera Term', 'ViewlogEditor', '', iniFile); |
ViewlogEditor := GetIniString('Tera Term', 'ViewlogEditor', '', iniFile); |
462 |
|
|
463 |
case GetUILanguage and $3FF of |
case GetUILanguage and $3FF of |
483 |
if CodePage = 0 then |
if CodePage = 0 then |
484 |
SetIniInt('Tera Term', 'CodePage', 932, iniFile); |
SetIniInt('Tera Term', 'CodePage', 932, iniFile); |
485 |
if Length(VTFont) = 0 then |
if Length(VTFont) = 0 then |
486 |
SetIniString('Tera Term', 'VTFont', 'MS 明朝,0,-16,128', iniFile); |
SetIniString('Tera Term', 'VTFont', 'Terminal,0,-19,128', iniFile); |
487 |
if Length(TEKFont) = 0 then |
if Length(TEKFont) = 0 then |
488 |
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,128', iniFile); |
SetIniString('Tera Term', 'TEKFont', 'Terminal,0,-8,128', iniFile); |
489 |
end; |
end; |
611 |
var |
var |
612 |
uninstaller : String; |
uninstaller : String; |
613 |
uninstaller2 : String; |
uninstaller2 : String; |
614 |
ResultCode: Integer; |
ResultCode : Integer; |
615 |
iniFile : String; |
iniFile : String; |
616 |
|
ErrMsg : String; |
617 |
begin |
begin |
618 |
Result := True; |
Result := True; |
619 |
|
|
653 |
wpSelectDir: |
wpSelectDir: |
654 |
begin |
begin |
655 |
|
|
656 |
ResultCode := CheckAppsUsing(); |
ErrMsg := CheckAppsUsing(); |
657 |
if ResultCode = 1 then |
if Length(ErrMsg) > 0 then |
658 |
begin |
begin |
659 |
MsgBox(CustomMessage('msg_AppRunningError'), mbError, MB_OK); |
MsgBox(Format(CustomMessage('msg_AppRunningError'), [ErrMsg]), mbError, MB_OK); |
660 |
Result := False; |
Result := False; |
661 |
end; |
end |
662 |
// if -1, goto next. turn over to Inno Setup. |
else |
663 |
|
// -1: goto next. Turn over to Inno Setup. |
664 |
|
// 0: goto next. No problem. |
665 |
|
// NOP |
666 |
end; |
end; |
667 |
|
|
668 |
wpSelectComponents: |
wpSelectComponents: |
699 |
begin; |
begin; |
700 |
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\Folder\shell\cygterm'); |
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\Folder\shell\cygterm'); |
701 |
RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'Folder\shell\cygterm'); |
RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'Folder\shell\cygterm'); |
702 |
|
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\Directory\Background\shell\cygterm'); |
703 |
|
RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\LibraryFolder\Background\shell\cygterm'); |
704 |
end; |
end; |
705 |
|
|
706 |
if not IsTaskSelected('macroassoc') then |
if not IsTaskSelected('macroassoc') then |
719 |
RegDeleteValue(HKEY_CLASSES_ROOT, 'telnet\shell', ''); |
RegDeleteValue(HKEY_CLASSES_ROOT, 'telnet\shell', ''); |
720 |
end; |
end; |
721 |
|
|
722 |
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0); |
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0); |
723 |
|
|
724 |
end; // ssDone |
end; // ssDone |
725 |
end; // case CurStep of |
end; // case CurStep of |
804 |
Name: {app}\libeay.txt; Type: files |
Name: {app}\libeay.txt; Type: files |
805 |
|
|
806 |
[InnoIDE_PreCompile] |
[InnoIDE_PreCompile] |
807 |
;Name: makechm.bat |
Name: makechm.bat |
|
;Name: build.bat; Parameters: rebuild |
|
808 |
;Name: build.bat |
;Name: build.bat |
809 |
|
Name: build.bat; Parameters: rebuild |
810 |
|
|
811 |
|
[InnoIDE_PostCompile] |
812 |
|
Name: makearchive.bat; Parameters: release |