diff options
Diffstat (limited to 'windows/nsis-plugins/src/msiutil/msiutil.cpp')
| -rw-r--r-- | windows/nsis-plugins/src/msiutil/msiutil.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/windows/nsis-plugins/src/msiutil/msiutil.cpp b/windows/nsis-plugins/src/msiutil/msiutil.cpp index cf6e467b41..131b52dbcd 100644 --- a/windows/nsis-plugins/src/msiutil/msiutil.cpp +++ b/windows/nsis-plugins/src/msiutil/msiutil.cpp @@ -121,9 +121,7 @@ void __declspec(dllexport) NSISCALL SilentInstall if (ERROR_SUCCESS != installResult) { - std::wstringstream ss; - ss << L"Install failed: " << installResult; - pushstring(ss.str().c_str()); + pushstring(common::string::ToWide(common::error::FormatWindowsError(installResult)).c_str()); pushint(NsisStatus::GENERAL_ERROR); return; } @@ -189,9 +187,7 @@ void __declspec(dllexport) NSISCALL SilentUninstall if (ERROR_SUCCESS != installResult) { - std::wstringstream ss; - ss << L"Uninstall failed: " << installResult; - pushstring(ss.str().c_str()); + pushstring(common::string::ToWide(common::error::FormatWindowsError(installResult)).c_str()); pushint(NsisStatus::GENERAL_ERROR); return; } |
