; NOTE: The value of AppId uniquely identifies this application.
...
...
@@ -374,6 +374,11 @@ begin
Result := (GetUninstallString() <> '');
end;
function IsFontbadaManagerRunning(): Boolean;
begin
Result := (FindWindowByWindowName('{#MyAppWindowName}') <> 0);
end;
function InitializeSetup: Boolean;
var
V: Integer;
...
...
@@ -382,10 +387,14 @@ var
begin
Result := True;
if RegValueExists(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows\CurrentVersion\Uninstall\{A2670E5F-4D34-4042-A9C5-5A3BC9547B37}_is1', 'UninstallString') then
begin
V := MsgBox(ExpandConstant('정상적인 설치를 위해 실행 중인 폰트바다 매니저를 종료(로그 아웃)해 주시기 바랍니다. 계속 진행하시겠습니까?'), mbInformation, MB_YESNO);
if V = IDYES then
begin
if IsFontbadaManagerRunning() then
begin
V := MsgBox(ExpandConstant('이전 폰트바다 매니저를 제거 후 새 폰트바다 매니저가 설치됩니다. 계속 진행하시겠습니까?'), mbInformation, MB_YESNO);
MsgBox('폰트바다 매니저({#MyAppWindowName})가 실행 중입니다. 정상 종료(로그 아웃) 후 다시 실행해 주세요.', mbError, MB_OK);
Result := false;
end
else
begin
V := MsgBox(ExpandConstant('이전 버전 폰트바다 매니저가 존재합니다. 삭제 후 설치를 권장합니다. 진행하시겠습니까?'), mbConfirmation, MB_YESNO);