description | extendedZipContent | languages | page_type | products | urlFragment | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Demonstrate the deployment workflow of WebView2 with WiX Burn Bundle. |
|
|
sample |
|
WV2DeploymentWiXBurnBundleSample |
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.
- Visual Studio 2019 with C++ support installed.
- WiX Toolset.
- WiX Toolset Visual Studio 2019 Extension.
To create a WiX installer that chain-installs the Evergreen WebView2 Runtime through Burn Bundle,
- Clone the repo.
- Open
../WebView2Samples.sln
with Visual Studio. - This sample is an extension to the WV2DeploymentWiXCustomActionSample sample. Let's open
Product.wxs
under theWV2DeploymentWiXCustomActionSample
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. - Open
Bundle.wxs
under theWV2DeploymentWiXBurnBundleSample
project. EditBundle.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.
- For "Package the Evergreen WebView2 Runtime Bootstrapper", uncomment the
- If you plan to package the Evergreen WebView2 Runtime Bootstrapper, download the Bootstrapper and place it under the enclosing
SampleApps
folder. - Build the
WV2DeploymentWiXBurnBundleSample
project.