Documentation
¶
Index ¶
- func Confirm(caption string, title string) (bool, error)
- func Error(caption string, title string) error
- func InstallUsingBootstrapper() (bool, error)
- func InstallUsingEmbeddedBootstrapper() (bool, error)
- func MessageBox(caption string, title string, flags uint) (int, error)
- func OpenInstallerDownloadWebpage() error
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
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 InstallUsingBootstrapper ¶
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 ¶
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 ¶
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
Types ¶
type Info ¶
Info contains all the information about an installation of the webview2 runtime.
func GetInstalledVersion ¶
func GetInstalledVersion() *Info
GetInstalledVersion returns the installed version of the webview2 runtime. If there is no version installed, a blank string is returned.