From aced77886f7a9f231fbb49a36508099513519162 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Fri, 20 Oct 2023 18:56:21 +0800 Subject: [PATCH] FIX: register source without runas Change-Id: I7307941878471ab0dc195e467a048ad31a8a7656 Jira: STUDIO-4854 (cherry picked from commit 2a9e6f74f5b2d0ffb12ead2a072959bc075dc455) --- src/slic3r/GUI/wxMediaCtrl2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/wxMediaCtrl2.cpp b/src/slic3r/GUI/wxMediaCtrl2.cpp index 465a82ce5..2b46b5c70 100644 --- a/src/slic3r/GUI/wxMediaCtrl2.cpp +++ b/src/slic3r/GUI/wxMediaCtrl2.cpp @@ -91,7 +91,7 @@ void wxMediaCtrl2::Load(wxURI url) [dll_path] { int res = wxMessageBox(_L("BambuSource has not correctly been registered for media playing! Press Yes to re-register it."), _L("Error"), wxYES_NO | wxICON_ERROR); if (res == wxYES) { - SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"runas", L"regsvr32", dll_path.wstring().c_str(), SW_HIDE }; + SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"open", L"regsvr32", dll_path.wstring().c_str(), SW_HIDE }; ::ShellExecuteEx(&info); } }); @@ -110,9 +110,9 @@ void wxMediaCtrl2::Load(wxURI url) if (path != dll_path) { static bool notified = false; if (!notified) CallAfter([dll_path] { - int res = wxMessageBox(_L("Using a BambuSource from a different install, video play may not work correctly! Press Yes to re-register it."), _L("Warning"), wxYES_NO | wxICON_WARNING); + int res = wxMessageBox(_L("Using a BambuSource from a different install, video play may not work correctly! Press Yes to fix it."), _L("Warning"), wxYES_NO | wxICON_WARNING); if (res == wxYES) { - SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"runas", L"regsvr32", dll_path.wstring().c_str(), SW_HIDE}; + SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"open", L"regsvr32", dll_path.wstring().c_str(), SW_HIDE}; ::ShellExecuteEx(&info); } });