Simple EVC4.0 app to run a CAB
-
To create a simple app in EVC4.0 to run another .exe, I would simply use the "CreateProcess" command! This, however will not run a CAB file... Can someone tell me how I can do this ??? Please....:((
you can run cab files through the WCELoad.exe app in the windows folder
CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );
where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Greetings, Davy -
you can run cab files through the WCELoad.exe app in the windows folder
CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );
where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Greetings, DavyGDavy wrote: you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Thank You very Much ! I will give this a try tonight, and post back with the results.. I appreciate the quick reply ! Regards Joe.........:-D ZapMe1
-
GDavy wrote: you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Thank You very Much ! I will give this a try tonight, and post back with the results.. I appreciate the quick reply ! Regards Joe.........:-D ZapMe1
:confused: Strange! I don't understand why I can't get it to work.. I setup the "CreateProcess" just as you have above, and included the full path to the cab! The new app compiles and downloads to the device without error, but will not run !!!! Any Ideas ?? :( ZapMe1
-
:confused: Strange! I don't understand why I can't get it to work.. I setup the "CreateProcess" just as you have above, and included the full path to the cab! The new app compiles and downloads to the device without error, but will not run !!!! Any Ideas ?? :( ZapMe1
Ok, This is how I run the cab files programmatically:
PROCESS_INFORMATION pProcInfo; WCHAR cmdPara[256] = L"/noaskdest /delete 1 "; //underneath FileName is the full path + filename of the cab file. //eg FileName: "\FlashDisk\TheInstallFile.cab" wcscat( cmdPara, FileName ); return CreateProcess( L"\\Windows\\WCELoad.exe", cmdPara, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );
Hope this helps you... Maybe it was the missing parameters that failed to make it work for you... This should give some info about params you can pass in the cmdPara: WCELoad info[^] Greetings, Davy -
Ok, This is how I run the cab files programmatically:
PROCESS_INFORMATION pProcInfo; WCHAR cmdPara[256] = L"/noaskdest /delete 1 "; //underneath FileName is the full path + filename of the cab file. //eg FileName: "\FlashDisk\TheInstallFile.cab" wcscat( cmdPara, FileName ); return CreateProcess( L"\\Windows\\WCELoad.exe", cmdPara, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );
Hope this helps you... Maybe it was the missing parameters that failed to make it work for you... This should give some info about params you can pass in the cmdPara: WCELoad info[^] Greetings, Davy