webview2runtime

package
v2.0.0-beta.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(caption string, title string) (bool, error)

Confirm will prompt the user with a message and OK / CANCEL buttons. Returns true if OK is selected by the user. Returns an error if something went wrong.

func Error

func Error(caption string, title string) error

Error will an error message to the user. Returns an error if something went wrong.

func InstallUsingBootstrapper

func InstallUsingBootstrapper() (bool, error)

InstallUsingBootstrapper will extract the embedded bootstrapper from Microsoft and run it to install the latest version of the runtime. Returns true if the installer ran successfully. Returns an error if something goes wrong

func InstallUsingEmbeddedBootstrapper

func InstallUsingEmbeddedBootstrapper() (bool, error)

InstallUsingEmbeddedBootstrapper will download the bootstrapper from Microsoft and run it to install the latest version of the runtime. Returns true if the installer ran successfully. Returns an error if something goes wrong

func MessageBox

func MessageBox(caption string, title string, flags uint) (int, error)

MessageBox prompts the user with the given caption and title. Flags may be provided to customise the dialog. Returns an error if something went wrong.

func OpenInstallerDownloadWebpage

func OpenInstallerDownloadWebpage() error

OpenInstallerDownloadWebpage will open the browser on the WebView2 download page

func ShellExecuteAndWait

func ShellExecuteAndWait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) error

ShellExecuteAndWait is version of ShellExecuteEx which want process

func ShellExecuteEx

func ShellExecuteEx(pExecInfo *_SHELLEXECUTEINFO) error

ShellExecuteEx is Windows API

func ShellExecuteNowait

func ShellExecuteNowait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) error

ShellExecuteNoWait is version of ShellExecuteEx which don't want process

Types

type Info

type Info struct {
	Location        string
	Name            string
	Version         string
	SilentUninstall string
}

Info contains all the information about an installation of the webview2 runtime.

func (*Info) IsOlderThan

func (i *Info) IsOlderThan(requiredVersion string) (bool, error)

IsOlderThan returns true if the installed version is older than the given required version. Returns error if something goes wrong.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL