They provide detailed instructions of how to detect if webview2 runtime is installed.
Could this be inbuilt into the inno setup compiler?
Ok, but how would that fit in context of a sample script?Thanks.
At which point do I add this check code?
So you run the check in PTI and cache the result into a global var. Then where I already add files for download (NextButtonClick (CurPageID wpSelectTasks) I add these files to the list.
At the moment I fire any downloaded installers in CurStepChanged (CurStep = ssPostInstall).
I will try it out,
Thanks.
Sent from Mail for Windows 10
--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/_SfytB8FGdI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/3ca9f12d-7f62-9eeb-b5d8-9c5dd80727e5%40gmail.com.
So you run the check in PTI and cache the result into a global var.
I do it there because I also have a task that allows the user to specify if another file should also be included in the downloads:
function NextButtonClick(CurPageID: integer): boolean;
begin
Result := True;
if (CurPageID = wpSelectTasks) then
begin
DownloadPage.Clear;
if (dotNetNeeded) then
begin
{ We need to download the 4.6.2 setup from the Microsoft Website }
dotNetRedistPath :=
ExpandConstant('{tmp}\NDP451-KB2858728-x86-x64-AllOS-ENU.exe');
AddFileForDownload(dotnetRedistURL, 'NDP451-KB2858728-x86-x64-AllOS-ENU.exe', '');
end;
if (bVcRedist64BitNeeded) then
begin
{ We need to download the 64 Bit VC Redistributable from the Microsoft Website }
vcRedist64BitPath := ExpandConstant('{tmp}\vc_redist.x64.exe');
AddFileForDownload(vcRedist64BitURL, 'vc_redist.x64.exe', '');
end;
if (bVcRedist32BitNeeded) then
begin
{ We need to download the 32 Bit VC Redistributable from the Microsoft Website }
vcRedist32BitPath := ExpandConstant('{tmp}\vc_redist.x86.exe');
AddFileForDownload(vcRedist32BitURL, 'vc_redist.x86.exe', '');
end;
if (WizardIsTaskSelected('downloadhelp')) then
AddFileForDownload('{#HelpDocSetupURL}', 'HelpDocSetup.exe',
'{#GetSHA256OfFile("..\HelpNDoc\CHM\Output\MSAHelpDocumentationSetup.exe")}');
end
else
if (CurPageID = wpReady) then
begin
DownloadPage.Show;
try
try
DownloadPage.Download;
Result := True;
except
SuppressibleMsgBox(
AddPeriod(GetExceptionMessage), mbCriticalError, MB_OK, IDOK);
Result := False;
end;
finally
DownloadPage.Hide;
end;
end;
end;
This code does not account for the WebView2 Runtime yet.
Sent from Mail for Windows 10
From: Martijn Laan
Sent: 12 July 2021 16:32
To: inno...@googlegroups.com
Subject: Re: Detecting if WebView2 Runtime is installed
Op 12-7-2021 om 17:16 schreef Andrew Truckle:
--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/_SfytB8FGdI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/bae3e98b-ea90-b0ff-210b-4eba92d47448%40gmail.com.