From 2d6fb1f3bb2e73d57aa13faaaf2593b75f268fc5 Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Sun, 8 Jan 2023 12:44:14 +0100 Subject: [PATCH] Setup: Recognize also /h and /help parameters (#1278) Otherwise they will get passed to `msiexec` that will display its help window that may confuse our users (as they expect our help to be displayed). --- Src/Setup/Setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Setup/Setup.cpp b/Src/Setup/Setup.cpp index d3471af..b90bb4e 100644 --- a/Src/Setup/Setup.cpp +++ b/Src/Setup/Setup.cpp @@ -222,7 +222,7 @@ int APIENTRY wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCm bool bQuiet=false; for (;count>0;count--,params++) { - if (_wcsicmp(params[0],L"help")==0 || _wcsicmp(params[0],L"/?")==0) + if (_wcsicmp(params[0],L"help")==0 || _wcsicmp(params[0],L"/help")==0 || _wcsicmp(params[0],L"/h")==0 || _wcsicmp(params[0],L"/?")==0) { wchar_t strTitle[256]; if (!LoadString(hInstance,IDS_APP_TITLE,strTitle,_countof(strTitle))) strTitle[0]=0;