mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:36:22 +00:00
Installer: Check that VC Redist x86 exists.
This commit is contained in:
parent
90a6c5d5c1
commit
841efaeedd
@ -77,8 +77,10 @@ Name: "{commondesktop}\{#APP_NAME}"; Filename: "{#APP_EXE}"; WorkingDir: "{app}"
|
||||
[Run]
|
||||
Filename: "{app}\driver\scripts\reinstall.bat"; Description: "Re-install driver"; Flags: runascurrentuser
|
||||
Filename: "sc.exe"; Parameters: "start {#APP_SVC_NAME}"; Description: "Start service"; Flags: runascurrentuser nowait
|
||||
|
||||
Filename: "https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads"; \
|
||||
Description: "Visual C++ x86 redistributable"; Flags: shellexec postinstall
|
||||
Description: "Install the latest Visual C++ x86 redistributable!"; Flags: shellexec postinstall; \
|
||||
Check: not VCRedist86Exists()
|
||||
|
||||
[UninstallRun]
|
||||
Filename: "{#APP_EXE}"; Parameters: "-u"; RunOnceId: "DelProvider"; Flags: runascurrentuser
|
||||
@ -105,3 +107,8 @@ function LanguageName(Param: String): String;
|
||||
begin
|
||||
Result := ActiveLanguage;
|
||||
end;
|
||||
|
||||
function VCRedist86Exists(): Boolean;
|
||||
begin
|
||||
Result := FileExists(ExpandConstant('{syswow64}\vcruntime140.dll'));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user