MCPcopy Create free account
hub / github.com/wailsapp/wails / InstallUsingBootstrapper

Function InstallUsingBootstrapper

v2/internal/webview2runtime/webview2runtime.go:92–106  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

90// Returns true if the installer ran successfully.
91// Returns an error if something goes wrong
92func InstallUsingBootstrapper() (bool, error) {
93
94 installer, err := downloadBootstrapper()
95 if err != nil {
96 return false, err
97 }
98
99 result, err := runInstaller(installer)
100 if err != nil {
101 return false, err
102 }
103
104 return result, os.Remove(installer)
105
106}
107
108func runInstaller(installer string) (bool, error) {
109 // Credit: https://stackoverflow.com/a/10385867

Callers

nothing calls this directly

Calls 3

downloadBootstrapperFunction · 0.85
runInstallerFunction · 0.85
RemoveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…