When I tried the following piece of code:
DWORD dret; PROCESS_INFORMATION processor; ret = CreateProcess(L"\\Windows\\wceload.exe", L"\\Temp\\New Folder\\GoogleMaps.CAB", NULL, NULL, FALSE, INHERIT_CALLER_PRIORITY, NULL, NULL, NULL, &processor);
The installer could not be triggered successfully.
But it works if the second parameter is L"\\Temp\\GoogleMaps.CAB".
So seems that the problem comes from whitespace in path.
Would anybody tell me how can I use whitespace correctly in path?
You have to put paths with spaces into quotes. If you don’t then space is treated as parameter separator.
This should do it:
Thank you Ilya, it works.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?