You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a WiX installer that chain-installs the Evergreen WebView2 Runtime through Custom Action,
Clone the repo.
Open ../WebView2Samples.sln with Visual Studio, then open Product.wxs under the WV2DeploymentWiXCustomActionSample project. Edit Product.wxs depending on the workflow you wish to use.
For "Download the Evergreen WebView2 Runtime Bootstrapper through link",
Under <!-- Step 4: Config Custom Action to download/install Bootstrapper -->, uncomment the <CustomAction Id='DownloadAndInvokeBootstrapper' ...> element below <!-- [Download Bootstrapper] ... -->. Comment out other <Binary> and <CustomAction> elements.
Under <!-- Step 5: Config execute sequence of custom action -->, uncomment the <Custom Action='DownloadAndInvokeBootstrapper' ...> element below <!-- [Download Bootstrapper] ...-->. Comment out other <Custom> elements.
For "Package the Evergreen WebView2 Runtime Bootstrapper",
Under <!-- Step 4: Config Custom Action to download/install Bootstrapper -->, uncomment the <Binary Id="MicrosoftEdgeWebview2Setup.exe" ...> and <CustomAction Id='InvokeBootstrapper' ...> elements below <!-- [Package Bootstrapper] ... -->. Comment out other <Binary> and <CustomAction> elements.
Under <!-- Step 5: Config execute sequence of custom action -->, uncomment the <Custom Action='InvokeBootstrapper' ...> element below <!-- [Package Bootstrapper] ...-->. Comment out other <Custom> elements.
For "Package the Evergreen WebView2 Runtime Standalone Installer",
Under <!-- Step 4: Config Custom Action to download/install Bootstrapper -->, uncomment the <Binary Id="MicrosoftEdgeWebView2RuntimeInstallerX64.exe" ...> and <CustomAction Id='InvokeStandalone' ...> elements below <!-- [Package Standalone Installer] ... -->. Comment out other <Binary> and <CustomAction> elements. If you're targeting non-X64 devices, you may also want to edit the MicrosoftEdgeWebView2RuntimeInstallerX64 filename to reflect the correct architecture.
Under <!-- Step 5: Config execute sequence of custom action -->, uncomment the <Custom Action='InvokeStandalone' ...> element below <!-- [Package Standalone Installer] ...-->. Comment out other <Custom> elements.
If you plan to package either the Bootstrapper or the Standalone Installer, download the Bootstrapper or the Standalone Installer and place it under the enclosing SampleApps folder.