Documentation
¶
Index ¶
- func Confirm(caption string, title string) (bool, error)
- func Error(caption string, title string) error
- func GetInstalledVersion() string
- func InstallUsingBootstrapper() (bool, error)
- func InstallUsingEmbeddedBootstrapper() (bool, error)
- func MessageBox(caption string, title string, flags uint) (int, error)
- func OpenInstallerDownloadWebpage() error
- func ShellExecuteAndWait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) error
- func ShellExecuteEx(pExecInfo *_SHELLEXECUTEINFO) error
- func ShellExecuteNowait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) 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 GetInstalledVersion ¶
func GetInstalledVersion() string
GetInstalledVersion returns the installed version of the webview2 runtime. If there is no version installed, a blank string is returned.
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
func ShellExecuteAndWait ¶ added in v1.3.0
func ShellExecuteAndWait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) error
ShellExecuteAndWait is version of ShellExecuteEx which want process
func ShellExecuteEx ¶ added in v1.3.0
func ShellExecuteEx(pExecInfo *_SHELLEXECUTEINFO) error
ShellExecuteEx is Windows API
func ShellExecuteNowait ¶ added in v1.3.0
func ShellExecuteNowait(hwnd hwnd, lpOperation, lpFile, lpParameters, lpDirectory string, nShowCmd int) error
ShellExecuteNoWait is version of ShellExecuteEx which don't want process