forked from mia/Aegisub
Made the installer compile, but now I'm not sure if it's still installing the runtimes.
Originally committed to SVN as r1722.
This commit is contained in:
parent
d810e87d85
commit
bfea6fd11e
|
@ -171,7 +171,7 @@ Name: {commonprograms}\{#MyAppName}; Filename: {app}\Aegisub.exe; WorkingDir: {a
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
|
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
|
||||||
Filename: {tmp}\vcredist_x86.exe; StatusMsg: Installing runtime libraries...; Components: main/runtime; Parameters: /Q
|
;Filename: {tmp}\vcredist_x86.exe; StatusMsg: Installing runtime libraries...; Components: main/runtime; Parameters: /Q
|
||||||
|
|
||||||
[Components]
|
[Components]
|
||||||
Name: main; Description: Aegisub; Types: compact full custom; Languages: ; Flags: fixed
|
Name: main; Description: Aegisub; Types: compact full custom; Languages: ; Flags: fixed
|
||||||
|
@ -220,7 +220,7 @@ WelcomeLabel2=This will install {#MyAppVerName} on your computer.%n%n{#MyAppName
|
||||||
function LoadLibrary(lpFileName: string): LongInt; external 'LoadLibraryA@kernel32.dll stdcall';
|
function LoadLibrary(lpFileName: string): LongInt; external 'LoadLibraryA@kernel32.dll stdcall';
|
||||||
function FreeLibrary(hModule: LongInt): Boolean; external 'FreeLibrary@kernel32.dll stdcall';
|
function FreeLibrary(hModule: LongInt): Boolean; external 'FreeLibrary@kernel32.dll stdcall';
|
||||||
|
|
||||||
procedure CurStepChanged(CurStep: TSetupStep)
|
procedure CurStepChanged(CurStep: TSetupStep);
|
||||||
var
|
var
|
||||||
LibHandle: LongInt;
|
LibHandle: LongInt;
|
||||||
ExecResult: Integer;
|
ExecResult: Integer;
|
||||||
|
@ -233,7 +233,7 @@ begin
|
||||||
ExtractTemporaryFile('vcredist_x86.exe');
|
ExtractTemporaryFile('vcredist_x86.exe');
|
||||||
if not Exec(ExpandConstant('{tmp}\vcredist_x86.exe'), '/Q', '', SW_SHOW, ewWaitUntilTerminated, ExecResult) then
|
if not Exec(ExpandConstant('{tmp}\vcredist_x86.exe'), '/Q', '', SW_SHOW, ewWaitUntilTerminated, ExecResult) then
|
||||||
begin
|
begin
|
||||||
MsgBox('Installation of runtime libraries failed. Aegisub will probably not work. The error was: ' + SysErrorMessage(ExecResult));
|
MsgBox('Installation of runtime libraries failed. Aegisub will probably not work. The error was: ' + SysErrorMessage(ExecResult), mbInformation, MB_OK);
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue