#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
Go to the source code of this file.
◆ APP_ONLY
◆ SHOW_ALL
◆ UPD_ONLY
◆ _tmain()
Definition at line 201 of file appwiz.c.
222 if (
argc < 3)
goto ShowAll;
229 iNumber =
atoi(Char);
231 if (iNumber == 0)
return 0;
240 iNumber =
atoi(Char);
242 if (iNumber == 0)
return 0;
251 iNumber =
atoi(Char);
253 if (iNumber == 0)
return 0;
int ShowAppList(DWORD dwMode, INT iItem)
_Check_return_ _CRTIMP int __cdecl scanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
◆ CallUninstall()
Definition at line 51 of file appwiz.c.
BOOL WINAPI TranslateMessage(_In_ const MSG *)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
Referenced by ShowAppList().
◆ PrintHelp()
Definition at line 21 of file appwiz.c.
24 APPWIZ [/? /l] [/all /app /upd]\n\ 27 /all\t Show programs and updates\n\ 28 /app\t Show programs only\n\ 29 /upd\t Show updates only\n"));
Referenced by _tmain().
◆ RunGUIAppWiz()
◆ ShowAppList()
Definition at line 91 of file appwiz.c.
106 _T(
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"),
109 printf(
_T(
"ERROR: Can not open Uninstall key. Press any key for continue...\n"));
129 bIsSystemComponent = (dwValue == 0x1);
133 bIsSystemComponent =
FALSE;
149 if (!bIsSystemComponent)
155 wsprintf(szOutBuf,
_T(
" %d \t %s\n"), iCount, szDisplayName);
195 printf(
"\n\nPlease enter application/update number and press ENTER for uninstall\nor press any key for Exit...\n");
static const WCHAR szName[]
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
void CallUninstall(LPTSTR szUninstallString)
BOOL WINAPI SetConsoleTextAttribute(IN HANDLE hConsoleOutput, IN WORD wAttributes)
#define FOREGROUND_INTENSITY
#define STD_OUTPUT_HANDLE
#define RegCloseKey(hKey)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define HKEY_LOCAL_MACHINE
Referenced by _tmain().