Problem with wceload.exe in Windows Mobile 5.0?

Hi,

I'm a developer working on PDA devices, specifically with operating systems Pocket PC 2003 and Windows Mobile 5.0.

We have an application which uses wceload.exe to trigger installation of CAB files on the PDA device, however, while this works perfectly on PPC 2003, it fails on Windows Mobile 5.0.

Is there a change in the installation method of CAB files in Windows Mobile 5.0 Is there any difference in the way wceload.exe works in Windows Mobile 5.0 Any inputs would be welcomed.

Oh, and these are the devices I am using, in case you need the info:

HP iPAQ 3115 - running Pocket PC OS 2003

Dell Axim Pro - running Windows Mobile 5.0.

Thanks in advance!



Answer this question

Problem with wceload.exe in Windows Mobile 5.0?

  • HL8476

    Hi,

    Different versions of wceload.exe accept different sets of command line arguments (and especially in the very early days of Pocket PC this seemed to even vary depending upon OEM). wceload.exe isn't particulary good with it's command line interface. For instance the process exit code typically has the same value wether or not the CAB file actually installed successfully, meaning it is difficult for the caller to determine if the CAB file has installed or not (atleast without making Configuration Service Provider XML queries for the Uninstall CSP to query currently installed applications).

    Could you provide the command line arguments you are providing to wceload.exe

    My suggestion would be to remove any command line arguments you are using to attempt to get silent installs (if this is indeed what you are using wceload.exe for). In my experince these problems are usally a result of the installation process displaying an error message or prompt for the user to confirm something which the silent install has aborted on in lue of displaying a user interface. This will also probably be the reason why Peter asked what the value of VersionMax is in your *.INF file (since this controls the maximum version of Windows CE that your application will run on and could be one possible reason why wceload.exe could abort installation on WM2005 devices)

    Once you have stripped back your call to wceload.exe to simply pass the name of the CAB file you are attempting to install and verified that this works, attempt to add the command line arguments back in one at a time until you find the one causing the problem.

    The version of wceload.exe provided with Windows CE 5.0 is documented at http://msdn2.microsoft.com/en-us/library/ms933760.aspx

    Thanks,

    Christopher Fairbairn



  • Davids Learning

    hi

    I've the similar problem, instead, I try to trigger the installation process from my vb.net program, here is the command-line i've passed;

    CeCreateProcess("\Windows\wceload.exe", "/noaskdest /noui \Program Files\myProgram.ARM.CAB", Nothing, Nothing, False, 0, Nothing, Nothing, Nothing, ProcInfo)

    where this method always returns "true" but the installation process never prompt on the pocket PC.

    by the way, i'm using:

    HP iPAQ hx2495 Pocket PC and WM 5.0


    thanx


  • Zubair Masoodi

    What command-line parameters are you passing to wceload.exe Is your CAB file signed What is the VersionMax parameter set to in the .inf file used to create the .cab file

    Peter



  • Scøtt

    Sorry, the path must be contained in double quotes if it has embedded space. This was the reason in my case.

    Thanks

    Hi,

    I am also facing the issue with WinCELoad. When calling the winCE loader it extract and install the cab files if the cab file is in same folder however i need the cab file be in a separace folder and then extract them one by one. Is there some switch or command line parameter that can be passed to WinCE loader to install the cab files from different folder.

    It must be possible because when we tab on the cab files in any folder manually it extract and install the files successfully.

    Thanks

    Vipin


  • Problem with wceload.exe in Windows Mobile 5.0?