From: Hugh McMaster Subject: uninstaller: Allow use of program names when uninstalling from the command line Message-Id: Date: Fri, 17 Jul 2015 22:41:23 +1000 Users are limited to using the UUID (and enclosing braces) of their program as an argument from the commnand line. The source code implies that program names are allowed, given the use of WCHAR *nameW. --- programs/uninstaller/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 6b16e5d..7239daf 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -97,7 +97,8 @@ static void RemoveSpecificProgram(WCHAR *nameW) for (i=0; i < numentries; i++) { - if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].key, -1, nameW, -1) == CSTR_EQUAL) + if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].key, -1, nameW, -1) == CSTR_EQUAL || + CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].descr, -1, nameW, -1) == CSTR_EQUAL) { entries[i].active++; break; -- 1.9.1