diff --git a/v3/internal/doctor/doctor_windows.go b/v3/internal/doctor/doctor_windows.go index 90f5fd4db..c8b0c6b29 100644 --- a/v3/internal/doctor/doctor_windows.go +++ b/v3/internal/doctor/doctor_windows.go @@ -5,6 +5,7 @@ package doctor import ( "github.com/samber/lo" "github.com/wailsapp/go-webview2/webviewloader" + "os/exec" ) func getInfo() (map[string]string, bool) { @@ -17,5 +18,18 @@ func getInfo() (map[string]string, bool) { webviewVersion = "Error:" + err.Error() } result["WebView2 Version"] = webviewVersion + + // add nsis + result["NSIS"] = getNSISVersion() + return result, ok } + +func getNSISVersion() string { + // Execute nsis + output, err := exec.Command("makensis", "-VERSION").Output() + if err != nil { + return "Not Installed" + } + return string(output) +}