From 0d8bbc0f7a8337aca0e2da30a12eb17769b74be7 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Geenz\" Goodman" Date: Thu, 12 Mar 2026 17:46:04 -0400 Subject: Potential fix for uninstaller not being functional. --- indra/newview/llvelopack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview/llvelopack.cpp') diff --git a/indra/newview/llvelopack.cpp b/indra/newview/llvelopack.cpp index 774eb811dc..2f91951016 100644 --- a/indra/newview/llvelopack.cpp +++ b/indra/newview/llvelopack.cpp @@ -494,7 +494,9 @@ static void register_uninstall_info(const std::wstring& install_dir, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hkey, NULL) == ERROR_SUCCESS) { std::wstring exe_path = install_dir + L"\\" + get_viewer_exe_name(); - std::wstring uninstall_cmd = L"\"" + install_dir + L"\\Update.exe\" --uninstall"; + // Update.exe lives one level above the current\ directory where the viewer exe runs + std::filesystem::path update_exe = std::filesystem::path(install_dir).parent_path() / L"Update.exe"; + std::wstring uninstall_cmd = L"\"" + update_exe.wstring() + L"\" --uninstall"; RegSetValueExW(hkey, L"DisplayName", 0, REG_SZ, (BYTE*)app_name.c_str(), (DWORD)((app_name.size() + 1) * sizeof(wchar_t))); -- cgit v1.3