{
if (argcLeft == 0)
{
+ ConInitStdStreams(); // Initialize the Console Standard Streams
ConResMsgPrintf(StdOut, NULL, IDS_CMD_NEED_PACKAGE_NAME, szCommand);
return FALSE;
}
{
if (argcLeft != 1)
{
+ ConInitStdStreams(); // Initialize the Console Standard Streams
ConResMsgPrintf(StdOut, NULL, IDS_CMD_NEED_FILE_NAME, szCommand);
return FALSE;
}
+ FreeConsole();
ATL::CSimpleArray<ATL::CStringW> PkgNameList;
HINF InfHandle = SetupOpenInfFileW(argvLeft[0], NULL, INF_STYLE_WIN4, NULL);
if (hMutex)
CloseHandle(hMutex);
+
+ return TRUE;
}
else if (MatchCmdOption(argv[1], CMD_KEY_INSTALL))
{
{
return HandleSetupCommand(argv[1], argc - 2, argv + 2);
}
- else if (MatchCmdOption(argv[1], CMD_KEY_FIND))
+
+
+ ConInitStdStreams(); // Initialize the Console Standard Streams
+
+ if (MatchCmdOption(argv[1], CMD_KEY_FIND))
{
return HandleFindCommand(argv[1], argc - 2, argv + 2);
}
ConResPuts(StdOut, IDS_CMD_INVALID_OPTION);
return FALSE;
}
-
-
- return TRUE;
}
int wmain(int argc, wchar_t *argv[])
{
- ConInitStdStreams(); // Initialize the Console Standard Streams
-
BOOL bIsFirstLaunch;
InitializeAtlModule(GetModuleHandle(NULL), TRUE);