1 |
#define AppName "Tera Term" |
#define AppName "Tera Term" |
2 |
#define AppVer "4.69-RC1" |
#define AppVer "4.69-RC3" |
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 |
19 |
AppMutex=TeraTermProAppMutex, TeraTermProMacroAppMutex, TeraTermProKeycodeAppMutex, TeraTermMenuAppMutex, CygTermAppMutex, Global\TeraTermProAppMutex, Global\TeraTermProMacroAppMutex, Global\TeraTermProKeycodeAppMutex, Global\TeraTermMenuAppMutex, Global\CygTermAppMutex |
;AppMutex=TeraTermProAppMutex, TeraTermProMacroAppMutex, TeraTermProKeycodeAppMutex, TeraTermMenuAppMutex, CygTermAppMutex, Global\TeraTermProAppMutex, Global\TeraTermProMacroAppMutex, Global\TeraTermProKeycodeAppMutex, Global\TeraTermMenuAppMutex, Global\CygTermAppMutex |
20 |
#ifndef snapshot |
#ifndef snapshot |
21 |
OutputBaseFilename=teraterm-{#AppVer} |
OutputBaseFilename=teraterm-{#AppVer} |
22 |
#else |
#else |
282 |
ja.comp_TTXAlwaysOnTop=常に最前面に表示できるようにする |
ja.comp_TTXAlwaysOnTop=常に最前面に表示できるようにする |
283 |
en.comp_TTXRecurringCommand=Recurring Command can be used |
en.comp_TTXRecurringCommand=Recurring Command can be used |
284 |
ja.comp_TTXRecurringCommand=定期的に文字列を送信する |
ja.comp_TTXRecurringCommand=定期的に文字列を送信する |
285 |
|
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. |
286 |
|
ja.msg_AppRunningError=セットアップは実行中の Tera Term を検出しました。%n%n開いているアプリケーションをすべて閉じてから「次へ」をクリックしてください。 |
287 |
|
|
288 |
[Code] |
[Code] |
289 |
const |
const |
359 |
end; |
end; |
360 |
} |
} |
361 |
|
|
362 |
|
function CheckAppUsing(Filename:String) : integer; |
363 |
|
var |
364 |
|
TmpFileName : String; |
365 |
|
begin |
366 |
|
if FileExists(FileName) then |
367 |
|
begin |
368 |
|
TmpFileName := FileName + '.' + GetDateTimeString('yyyymmddhhnnss', #0, #0); // Tmp file ends with timestamp |
369 |
|
if FileCopy(FileName, TmpFileName, True) then |
370 |
|
if DeleteFile(FileName) then |
371 |
|
if RenameFile(TmpFileName, FileName) then |
372 |
|
Result := 0 |
373 |
|
else |
374 |
|
Result := -1 // permission? |
375 |
|
else |
376 |
|
begin |
377 |
|
Result := 1; // failed to delete |
378 |
|
DeleteFile(TmpFileName); |
379 |
|
end |
380 |
|
else |
381 |
|
Result := -1 // permission? |
382 |
|
end |
383 |
|
else |
384 |
|
Result := 0; |
385 |
|
end; |
386 |
|
|
387 |
|
function CheckAppsUsing() : integer; |
388 |
|
var |
389 |
|
FileDir : String; |
390 |
|
FileName : array[0..6] of String; |
391 |
|
i : integer; |
392 |
|
flag : boolean; |
393 |
|
begin |
394 |
|
FileDir := ExpandConstant('{app}'); |
395 |
|
FileName[0] := FileDir + '\ttermpro.exe'; |
396 |
|
FileName[1] := FileDir + '\ttpmacro.exe'; |
397 |
|
FileName[2] := FileDir + '\keycode.exe'; |
398 |
|
FileName[3] := FileDir + '\ttpmenu.exe'; |
399 |
|
FileName[4] := FileDir + '\cygterm.exe'; |
400 |
|
FileName[5] := FileDir + '\Collector.exe'; |
401 |
|
FileName[6] := FileDir + '\Collector_org.exe'; |
402 |
|
|
403 |
|
flag := True; |
404 |
|
for i := 0 to 6 do |
405 |
|
begin |
406 |
|
if flag = True then |
407 |
|
begin |
408 |
|
case CheckAppUsing(FileName[i]) of |
409 |
|
1: |
410 |
|
// failed to delete. in use. |
411 |
|
begin |
412 |
|
Result := 1; |
413 |
|
flag := False; |
414 |
|
end; |
415 |
|
-1: |
416 |
|
// failed to copy/rename |
417 |
|
begin |
418 |
|
Result := -1; |
419 |
|
flag := False; |
420 |
|
end; |
421 |
|
else |
422 |
|
// OK |
423 |
|
end; |
424 |
|
end; |
425 |
|
end; |
426 |
|
|
427 |
|
end; |
428 |
|
|
429 |
function GetDefaultIniFilename : String; |
function GetDefaultIniFilename : String; |
430 |
begin |
begin |
431 |
Result := ExpandConstant('{app}') + '\TERATERM.INI'; |
Result := ExpandConstant('{app}') + '\TERATERM.INI'; |
606 |
ResultCode: Integer; |
ResultCode: Integer; |
607 |
iniFile : String; |
iniFile : String; |
608 |
begin |
begin |
609 |
|
Result := True; |
610 |
|
|
611 |
case CurPageID of |
case CurPageID of |
612 |
|
|
613 |
wpWelcome: |
wpWelcome: |
641 |
|
|
642 |
end; |
end; |
643 |
|
|
644 |
|
wpSelectDir: |
645 |
|
begin |
646 |
|
|
647 |
|
ResultCode := CheckAppsUsing(); |
648 |
|
if ResultCode = 1 then |
649 |
|
begin |
650 |
|
MsgBox(CustomMessage('msg_AppRunningError'), mbError, MB_OK); |
651 |
|
Result := False; |
652 |
|
end; |
653 |
|
// if -1, goto next. turn over to Inno Setup. |
654 |
|
|
655 |
|
end; |
656 |
|
|
657 |
wpSelectComponents: |
wpSelectComponents: |
658 |
begin |
begin |
659 |
|
|
672 |
|
|
673 |
end; |
end; |
674 |
end; |
end; |
|
Result := True; |
|
675 |
end; |
end; |
676 |
|
|
677 |
procedure CurStepChanged(CurStep: TSetupStep); |
procedure CurStepChanged(CurStep: TSetupStep); |
791 |
Name: {app}\libeay.txt; Type: files |
Name: {app}\libeay.txt; Type: files |
792 |
|
|
793 |
[InnoIDE_PreCompile] |
[InnoIDE_PreCompile] |
794 |
Name: makechm.bat |
;Name: makechm.bat |
795 |
Name: build.bat; Parameters: rebuild |
;Name: build.bat; Parameters: rebuild |
796 |
;Name: build.bat |
;Name: build.bat |