mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] online installer: fix launch app for msi package
This commit is contained in:
@ -159,7 +159,9 @@ namespace NS_Utils
|
||||
subkey += _T(APP_REG_PATH);
|
||||
for (auto &flag : flags) {
|
||||
RegQueryStringValue(HKEY_LOCAL_MACHINE, subkey.c_str(), flag, L"AppPath", path);
|
||||
if (!path.empty() /*&& NS_File::fileExists(path + _T(APP_LAUNCH_NAME))*/) {
|
||||
if (!path.empty() && (path.back() == L'\\' || path.back() == L'/'))
|
||||
path.pop_back();
|
||||
if (!path.empty() /*&& NS_File::fileExists(path + _T(APP_LAUNCH_NAME))*/) {
|
||||
if (arch) {
|
||||
#ifdef _WIN64
|
||||
*arch = (flag == 0) ? L"x64" : L"x86";
|
||||
|
||||
Reference in New Issue
Block a user