Commit 8023376e authored by PA-ROGS\whitrail's avatar PA-ROGS\whitrail
Browse files

2023.02.24 - 3.0.36 MRB23022401.DNF4 릴리즈2

 - 설치 프로세스 / 프로그램 실행 위치를 변경
parent 73cbddd8
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define MyAppDataName "fontbada3" #define MyAppDataName "fontbada3"
#define MyAppProcessName "FontManager" #define MyAppProcessName "FontManager"
#define MyAppPrjFilePath "{pf}\hanyang" #define MyAppPrjFilePath "{pf}\hanyang"
#define MyAppRootPath "{userappdata}\..\Local\hanyang" #define MyAppRootPath "{localappdata}\hanyang"
#define MyAppWindowName "FontbadaManager" #define MyAppWindowName "FontbadaManager"
#define MyAppFilter "fontmanager.exe" #define MyAppFilter "fontmanager.exe"
...@@ -339,7 +339,10 @@ type ...@@ -339,7 +339,10 @@ type
end; end;
TProcessEntryList = array of TProcessEntry; TProcessEntryList = array of TProcessEntry;
var
ExitCode: Boolean;
function GetProcessList(const Filter: string; out List: TProcessEntryList): Integer; function GetProcessList(const Filter: string; out List: TProcessEntryList): Integer;
var var
I: Integer; I: Integer;
...@@ -373,7 +376,6 @@ end; ...@@ -373,7 +376,6 @@ end;
function IsFontManagerProcesss: Boolean; function IsFontManagerProcesss: Boolean;
var var
S: string;
I: Integer; I: Integer;
Filter: string; Filter: string;
ProcessList: TProcessEntryList; ProcessList: TProcessEntryList;
...@@ -421,6 +423,39 @@ begin ...@@ -421,6 +423,39 @@ begin
end; end;
procedure DeinitializeSetup();
var
ResultCode: Integer;
begin
// Log(Format('DeinitializeSetup ExitCode -> [ %d ]', [ExitCode]));
if ExitCode = True then
begin
Exec(ExpandConstant('{#MyAppPrjFilePath}\{#MyAppFolderName}\{#MyAppProcessName}.exe'), '', '', SW_SHOW, ewNoWait, ResultCode);
end;
end;
procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
ExitCode := False;
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;
procedure InitializeWizard; procedure InitializeWizard;
begin begin
with TNewStaticText.Create(WizardForm) do with TNewStaticText.Create(WizardForm) do
...@@ -451,6 +486,7 @@ var ...@@ -451,6 +486,7 @@ var
ResultCode: Integer; ResultCode: Integer;
UnInstallString: string; UnInstallString: string;
begin begin
ExitCode := False;
Result := False; Result := False;
// 폰트바다 매니저 실행 상태 확인 // 폰트바다 매니저 실행 상태 확인
...@@ -483,4 +519,3 @@ Name: {userstartup}\ ...@@ -483,4 +519,3 @@ Name: {userstartup}\
[Run] [Run]
Filename: "schtasks";Parameters: "/create /sc onLogon /tn FontManager /tr /f ""'{#MyAppPrjFilePath}\{#MyAppFolderName}\{#MyAppProcessName}.exe'"" /RL HIGHEST /DELAY 0000:10"; Flags:ShellExec; Filename: "schtasks";Parameters: "/create /sc onLogon /tn FontManager /tr /f ""'{#MyAppPrjFilePath}\{#MyAppFolderName}\{#MyAppProcessName}.exe'"" /RL HIGHEST /DELAY 0000:10"; Flags:ShellExec;
Filename: {#MyAppPrjFilePath}\{#MyAppFolderName}\{#MyAppProcessName}.exe; Flags: nowait postinstall skipifsilent;
\ No newline at end of file
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