diff options
-rw-r--r-- | desktop/source/app/app.cxx | 4 | ||||
-rw-r--r-- | scp2/source/quickstart/registryitem_quickstart.scp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index ea01399eb954..96172623cb45 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -48,6 +48,7 @@ #endif #include <i18nlangtag/languagetag.hxx> +#include <o3tl/char16_t2wchar_t.hxx> #include <o3tl/runtimetooustring.hxx> #include <svl/languageoptions.hxx> #include <svtools/javacontext.hxx> @@ -2549,10 +2550,11 @@ void Desktop::CheckFirstRun( ) #ifdef _WIN32 // Check if Quickstarter should be started (on Windows only) + OUString sRootKey = ReplaceStringHookProc("Software\\%OOOVENDOR\\%PRODUCTNAME\\%PRODUCTVERSION"); WCHAR szValue[8192]; DWORD nValueSize = sizeof(szValue); HKEY hKey; - if ( ERROR_SUCCESS == RegOpenKeyW( HKEY_LOCAL_MACHINE, L"Software\\LibreOffice", &hKey ) ) + if (ERROR_SUCCESS == RegOpenKeyW(HKEY_LOCAL_MACHINE, o3tl::toW(sRootKey.getStr()), &hKey)) { if ( ERROR_SUCCESS == RegQueryValueExW( hKey, L"RunQuickstartAtFirstStart", nullptr, nullptr, reinterpret_cast<LPBYTE>(szValue), &nValueSize ) ) { diff --git a/scp2/source/quickstart/registryitem_quickstart.scp b/scp2/source/quickstart/registryitem_quickstart.scp index 58b794e2bd3f..3f015aa61dc6 100644 --- a/scp2/source/quickstart/registryitem_quickstart.scp +++ b/scp2/source/quickstart/registryitem_quickstart.scp @@ -20,7 +20,7 @@ RegistryItem gid_Regitem_Software_OpenOffice_RunQuickstartAtFirstStart ParentID = PREDEFINED_HKEY_LOCAL_MACHINE; - Subkey = "Software\LibreOffice"; + Subkey = "Software\%MANUFACTURER\%PRODUCTNAME\%PRODUCTVERSION"; ModuleID = gid_Module_Optional_Quickstart; Name = "RunQuickstartAtFirstStart"; Value = "1"; |