RE: WM5 - CAB file install fails on device

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I think i found it!.

The culprit is COPYFLG_NOSKIP. Combining COPYFLG_NOSKIP and
CE_COPYFLG_NO_DATE_DIALOG is causing the problem.

Since CE_COPYFLG_NO_DATE_DIALOG is set the file is skipped since a newer
version exists on the device which is fine but the very fact that the file
was skipped is treated as an error since COPYFLG_NOSKIP is set and the
installation fails.

Maybe it is an illegal combination to begin with. Never had a problem until
now. Maybe MS fixed the cab installer in WM5.

-Shiva



"Shiv" wrote:

> Hi,
>
> I have a CAB file which has a few DLLs in them which are installed to the
> Windows folder on the device.
>
> Issue: The install on device fails when the device contains a newer version
> of the DLLs.
>
> The flags iam using in the CopyFiles section is 0xa0000002 which is a
> combination of CE_COPYFLG_SHARED | CE_COPYFLG_NO_DATE_DIALOG |
> COPYFLG_NOSKIP.
>
> It succeeds when i use 0x80000002 which is a combination of
> CE_COPYFLG_SHARED | COPYFLG_NOSKIP
>
> but as a result happily overwrites the newer version installed on the device
> which is no good for our purposes.
>
> Here is what i want to know:
>
> 1. Has anyone come across this issue and has a workaround
> 2. Is this a known issue with the CAB installer in WM5. If so are there any
> workarounds.
> 3. Is there something wrong in the flag value.
>
> I would greatly appreciate your feedback.
>
> - Shiva
>
.



Relevant Pages

  • Re: bug in CAB installer (WCELOAD.EXE) on Windows Mobile 6.2
    ... I'd call it an architectural or behavioral bug ... The CAB installer does not install CAB files if the dialog ... which does not list currently installed applications unless its previous ...
    (microsoft.public.pocketpc.developer)
  • Re: bug in CAB installer (WCELOAD.EXE) on Windows Mobile 6.2
    ... This is not a bug. ... The CAB installer does not install CAB files if the dialog ... which does not list currently installed applications unless its previous ...
    (microsoft.public.pocketpc.developer)
  • CE Cab install - return value from setup.dll
    ... file in a cab installer under CE, to pass data from the setup.dll back ... I would like to create a custom setup.dll that calls RegQueryValueEx ... Jack ...
    (microsoft.public.pocketpc.developer)
  • Re: Package "hours of operation"
    ... I was able to do that within the Installer. ... But a workaround is faily easy to implement. ... else it bails out with a retryable error code. ...
    (microsoft.public.sms.swdist)
  • Re: Cannot start install cd of 6.2-R at all
    ... If i delete TX2000 the installer loads fine. ... There is a better workaround which i used. ... Then install the whole system from CD-ROM. ... from CD-ROM on pretty much every PIII and old Celeron pc which i tried. ...
    (freebsd-stable)