Pass infoUrl argument to updater directely via Notepad++

Close #17116
This commit is contained in:
Don Ho 2025-10-30 15:18:59 +01:00
parent 8149f72717
commit e6739c0ab7
3 changed files with 7 additions and 0 deletions

View File

@ -3648,6 +3648,9 @@ void Notepad_plus::command(int id)
{ {
param += L" -parm64"; param += L" -parm64";
} }
param += L" -i";
param += INFO_URL;
} }
Process updater(updaterFullPath.c_str(), param.c_str(), updaterDir.c_str()); Process updater(updaterFullPath.c_str(), param.c_str(), updaterDir.c_str());

View File

@ -30,6 +30,7 @@
//********************************************************** //**********************************************************
#define INFO_URL L"https://notepad-plus-plus.org/update/getDownloadUrl.php"
#ifndef IDC_STATIC #ifndef IDC_STATIC

View File

@ -399,6 +399,9 @@ bool launchUpdater(const std::wstring& updaterFullPath, const std::wstring& upda
updaterParams += L" -parm64"; updaterParams += L" -parm64";
} }
updaterParams += L" -i";
updaterParams += INFO_URL;
Process updater(updaterFullPath.c_str(), updaterParams.c_str(), updaterDir.c_str()); Process updater(updaterFullPath.c_str(), updaterParams.c_str(), updaterDir.c_str());
updater.run(); updater.run();