Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 3.02 KB

File metadata and controls

45 lines (36 loc) · 3.02 KB
description extendedZipContent languages page_type products urlFragment
Demonstrate the deployment workflow of WebView2 with WiX Burn Bundle.
path target
SharedContent
SharedContent
path target
LICENSE
LICENSE
cpp
sample
microsoft-edge
WV2DeploymentWiXBurnBundleSample

WebView2 Deployment WiX Burn Bundle Sample

To help developers understand how to deploy the Evergreen WebView2 Runtime with your application, this sample creates a WiX installer for WebView2APISample and uses WiX Burn Bundle to chain-install the Evergreen WebView2 Runtime.

This sample showcases deployment workflows for,

  • Download the Evergreen WebView2 Runtime Bootstrapper through link.
  • Package the Evergreen WebView2 Runtime Bootstrapper.

Packaging the Evergreen WebView2 Runtime Standalone Installer is very similar to packaging the Evergreen WebView2 Runtime Bootstrapper.

Prerequisites

Build steps

To create a WiX installer that chain-installs the Evergreen WebView2 Runtime through Burn Bundle,

  1. Clone the repo.
  2. Open ../WebView2Samples.sln with Visual Studio.
  3. This sample is an extension to the WV2DeploymentWiXCustomActionSample sample. Let's open Product.wxs under the WV2DeploymentWiXCustomActionSample project, and comment out all the <Binary>, <CustomAction>, and <Custom> elements under <!-- Step 4: Config Custom Action to download/install Bootstrapper --> and <!-- Step 5: Config execute sequence of custom action --> so that Custom Action is not used.
  4. Open Bundle.wxs under the WV2DeploymentWiXBurnBundleSample project. Edit Bundle.wxs depending on the workflow you wish to use.
    • For "Package the Evergreen WebView2 Runtime Bootstrapper", uncomment the <ExePackage Id="InvokeBootstrapper" ...> element below <!-- [Package Bootstrapper] ... -->, and comment out other <ExePackage> elements.
    • For "Download the Evergreen WebView2 Runtime Bootstrapper through link", uncomment the <ExePackage Id="DownloadAndInvokeBootstrapper" ...> element below <!-- [Download Bootstrapper] ... -->, and comment out other <ExePackage> elements.
  5. If you plan to package the Evergreen WebView2 Runtime Bootstrapper, download the Bootstrapper and place it under the enclosing SampleApps folder.
  6. Build the WV2DeploymentWiXBurnBundleSample project.