Commit 31b3c5cf authored by PA-ROGS\whitrail's avatar PA-ROGS\whitrail
Browse files

2023.02.13 - 3.0.36 MR B23021401.DNF4 / 설치, 재설치 시퀀스 개선 업데이트

parent a0210bb7
; *** Inno Setup version 5.5.3+ Korean messages ***
;
; ▒ 5.5.3+ Translator: Domddol (domddol@gmail.com)
; ▒ Translation date: MAR 04, 2014
; ▒ Contributors: Hansoo KIM (iryna7@gmail.com), Woong-Jae An (a183393@hanmail.net)
; ▒ Storage: http://www.jrsoftware.org/files/istrans/
; ▒ 이 번역은 새로운 한국어 맞춤법 규칙을 준수합니다.
[LangOptions]
LanguageName=Korean
LanguageID=$0412
LanguageCodePage=949
[Messages]
; *** Application titles
SetupAppTitle=설치
SetupWindowTitle=%1 설치
......@@ -203,7 +194,7 @@ InstallingLabel=
FinishedHeadingLabel=[name] 설치 마법사 완료
FinishedLabelNoIcons=귀하의 컴퓨터에 [name]이(가) 설치되었습니다.
FinishedLabel=귀하의 컴퓨터에 [name]이(가) 설치되었습니다, 응용프로그램은 설치된 아이콘을 선택하여 시작할 수 있습니다.
ClickFinish=설치를 끝내려면 "종료"를 클릭하십시오.
ClickFinish=설치를 완료하려면 "종료"를 클릭하십시오.%n%n"종료" 후 폰트바다 매니저의 정상적인 동작을 위해 아래 프로그램을 설치합니다.%n%n - Microsoft Edge Webview2 런타임%n%n설치에 다소 시간이 소요될 수 있습니다.
FinishedRestartLabel=[name] 설치를 완료하려면, 컴퓨터를 다시 시작해야 합니다. 지금 다시 시작하시겠습니까?
FinishedRestartMessage=[name] 설치를 완료하려면, 컴퓨터를 다시 시작해야 합니다.%n%n지금 다시 시작하시겠습니까?
ShowReadmeCheck=예, README 파일을 표시합니다
......
......@@ -62,6 +62,6 @@
본 계약에 대해 의문사항이 있으면 연락하여 주십시오
(주)한양정보통신
(우)137-842 서울특별시 서초구 방배로114 다이치빌딩 4
(우)137-842 서울특별시 서초구 방배로84 유성빌딩 3
Tel: 02-598-0050, Fax: 02-598-0906
전자메일(support@hanyang.co.kr)
......@@ -4,7 +4,7 @@
#define MyAppName "폰트바다 매니저"
#define MyAppVersion "3.0"
#define MyAppVerName "36.MR"
#define MyAppBuildData "B23021401.F4"
#define MyAppBuildData "B23021401.W10DNF4"
#define MyAppPublisher "(주)한양정보통신"
#define MyAppURL "http://www.fontbada.co.kr/"
#define MyAppFolderName "FontbadaManager"
......@@ -13,6 +13,7 @@
#define MyAppRootPath "{userappdata}\..\Local\hanyang"
#define MyAppWindowName "FontbadaManager"
#define MyAppFilter "fontmanager.exe"
#define MyAppMinOS 10
[Setup]
......@@ -345,7 +346,6 @@ type
end;
TProcessEntryList = array of TProcessEntry;
var
ExitCode: Boolean;
......@@ -381,7 +381,7 @@ begin
end;
function RunProcesss(): Boolean;
function IsFontManagerProcesss: Boolean;
var
S: string;
I: Integer;
......@@ -402,6 +402,12 @@ begin
end;
function IsFontbadaManagerWindow: Boolean;
begin
Result := (FindWindowByWindowName('{#MyAppWindowName}') <> 0);
end;
function GetUninstallString: string;
var
sUnInstPath: string;
......@@ -425,81 +431,37 @@ begin
end;
function IsUpgrade: Boolean;
begin
Result := (GetUninstallString() <> '');
end;
function IsFontbadaManagerRunning(): Boolean;
begin
Result := (FindWindowByWindowName('{#MyAppWindowName}') <> 0);
end;
procedure DeinitializeSetup();
var
ResultCode: Integer;
begin
// Log(Format('DeinitializeSetup ExitCode %d', [ExitCode]));
// Log(Format('DeinitializeSetup ExitCode -> [ %d ]', [ExitCode]));
if ExitCode = True then
begin
MsgBox('프로그램의 정상적인 동작을 위해 Microsoft Edge Webview2 런타임을 설치합니다. 설치에 다소 시간이 소요될 수 있습니다.', mbInformation, MB_OK);
MsgBox('Microsoft Edge Webview2 런타임을 설치합니다.', mbInformation, MB_OK);
Exec(ExpandConstant('{#MyAppRootPath}\{#MyAppDataName}\MicrosoftEdgeWebview2Setup.exe'), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
MsgBox('설치가 완료되었습니다.', mbInformation, MB_OK);
end;
end;
function InitializeSetup: Boolean;
var
V: Integer;
ResultCode: Integer;
UnInstallString: string;
procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
Result := True;
ExitCode := True;
if RegValueExists(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A2670E5F-4D34-4042-A9C5-5A3BC9547B37}_is1', 'UninstallString') then
begin
// 윈도우즈 버전 확인 및 안내
if not IsWindowsVersionOrNewer(10, 0) then
begin
V := MsgBox('이 프로그램은 Windows 10 이전 OS에서 정상 동작하지 않을 수 있습니다. 설치하시겠습니까?', mbCriticalError, MB_YESNO);
if V = IDNO then
begin
Result := False;
end
end
ExitCode := False;
end;
if Result = False then
begin
MsgBox('설치를 종료합니다.', mbError, MB_OK);
ExitCode := False;
Exit;
end
else if IsFontbadaManagerRunning() and RunProcesss() then
begin
MsgBox('폰트바다 매니저({#MyAppWindowName})가 실행 중입니다. 정상 종료(로그 아웃) 후 다시 실행해 주세요.', mbError, MB_OK);
Result := False;
ExitCode := False;
end
else
begin
V := MsgBox(ExpandConstant('이전 버전 폰트바다 매니저가 존재합니다. 삭제 후 설치를 권장합니다. 진행하시겠습니까?'), mbConfirmation, MB_YESNO);
if V = IDYES then
begin
UnInstallString := GetUninstallString();
UnInstallString := RemoveQuotes(UnInstallString);
Exec(ExpandConstant(UnInstallString), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
Result := True;
end
else
begin
MsgBox('삭제 및 설치를 종료합니다.', mbError, MB_OK);
Result := False;
ExitCode := False;
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssInstall then
begin
// Log(Format('CurStepChanged CurStep -> [ %d ]', [CurStep]));
ExitCode := True;
end
else if CurStep = ssDone then
begin
// Log(Format('CurStepChanged CurStep -> [ %d ]', [CurStep]));
ExitCode := True;
end;
end;
......@@ -518,6 +480,65 @@ begin
end;
function CheckOSVersion: Boolean;
begin
Result := True;
if not IsWindowsVersionOrNewer({#MyAppMinOS}, 0) then
begin
MsgBox('이 프로그램은 Windows 10 이상을 지원합니다. 설치를 종료합니다.', mbCriticalError, MB_OK);
Result := False;
end;
end;
function CheckRunProcess: Boolean;
begin
Result := True;
if IsFontManagerProcesss and IsFontbadaManagerWindow then
begin
MsgBox('폰트바다 매니저({#MyAppWindowName})가 실행 중입니다. 정상 종료(로그 아웃) 후 다시 실행해 주세요.', mbCriticalError, MB_OK);
Result := False;
end;
end;
function InitializeSetup: Boolean;
var
ResultCode: Integer;
UnInstallString: string;
begin
ExitCode := False;
Result := False;
// 윈도우 버전 체크
if CheckOSVersion = False then
begin
Exit;
end
// 폰트바다 매니저 실행 상태 확인
if CheckRunProcess = False then
begin
Exit;
end
// 언인스톨러 확인
if RegValueExists(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A2670E5F-4D34-4042-A9C5-5A3BC9547B37}_is1', 'UninstallString') then
begin
MsgBox(ExpandConstant('이전 버전 폰트바다 매니저가 존재합니다. 삭제 후 설치를 진행합니다.'), mbInformation, MB_OK);
UnInstallString := GetUninstallString();
UnInstallString := RemoveQuotes(UnInstallString);
Exec(ExpandConstant(UnInstallString), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
// Log(Format('UnInstall ResultCode -> [ %d ]', [ResultCode]));
if ResultCode > 0 then
begin
Exit;
end;
end;
Result := True;
end;
[Icons]
Name: {userdesktop}\폰트바다; Filename: {#MyAppRootPath}\{#MyAppFolderName}\{#MyAppProcessName}.exe; WorkingDir: {#MyAppRootPath}\{#MyAppFolderName}\; Comment: "폰트바다 매니저"; IconFilename: {#MyAppRootPath}\{#MyAppFolderName}\{#MyAppProcessName}.exe;
Name: {userstartup}\폰트바다; Filename: {#MyAppRootPath}\{#MyAppFolderName}\{#MyAppProcessName}.exe; workingdir: {#MyAppRootPath}\{#MyAppFolderName}\;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment