Skip to content

Commit 2d6fb1f

Browse files
committed
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).
1 parent 528d15e commit 2d6fb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Setup/Setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ int APIENTRY wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCm
222222
bool bQuiet=false;
223223
for (;count>0;count--,params++)
224224
{
225-
if (_wcsicmp(params[0],L"help")==0 || _wcsicmp(params[0],L"/?")==0)
225+
if (_wcsicmp(params[0],L"help")==0 || _wcsicmp(params[0],L"/help")==0 || _wcsicmp(params[0],L"/h")==0 || _wcsicmp(params[0],L"/?")==0)
226226
{
227227
wchar_t strTitle[256];
228228
if (!LoadString(hInstance,IDS_APP_TITLE,strTitle,_countof(strTitle))) strTitle[0]=0;

0 commit comments

Comments
 (0)