Hello!

I'm developing an application that will install cab files by starting a
new process with wceload as the command and the cabfile as the argument.

The problem I'm having is that no matter if the cab file exists wceload
always return ok. The CreateProcess will return 1 (OK) and
GetExitCodeProcess will return 0 when the wceload returns.

Is this the behavior of wceload or am I doing something wrong?

The device is a Symbol 9000 with PPC 2003.

Sincerly
Linus Rörstad

Re: Wceload return value by Lao

Lao
Tue Apr 04 15:41:12 CDT 2006

Hi,

Just wondering why you cannot check whether the cab file exists in your
own code...

---
Lao K
Windows Mobile Pocket PC Smartphone Programming Hints and Tips
http://windowsmobilepro.blogspot.com


Re: Wceload return value by pipecity

pipecity
Wed Apr 05 03:23:44 CDT 2006

Hi,

That's one approach, but I want to check if the cabfile was installed or
not and if not stop the application. I also want to make it possible to
start other programs than Wceload.

Sincerly
Linus Rörstad


Lao K wrote:
> Hi,
>
> Just wondering why you cannot check whether the cab file exists in your
> own code...
>
> ---
> Lao K
> Windows Mobile Pocket PC Smartphone Programming Hints and Tips
> http://windowsmobilepro.blogspot.com
>

Re: Wceload return value by Lao

Lao
Thu Apr 06 13:53:04 CDT 2006

The more you want to do like you mentioned, the better is to put the
code and logic into the Install_Init function (or Install_Exit, up to
your requirement):

- you can check whether the application is already installed
Read here:
- Programmatically find out all the programs that can be unInstalled in
Windows Mobile devices
(http://windowsmobilepro.blogspot.com/2006/03/programmatically-find-out-all-programs.html)
- Programmatically unInstall/remove/delete one program in Windows
Mobile devices
(http://windowsmobilepro.blogspot.com/2006/03/programmatically-uninstallremovedelete.html)
and you also find the complete source code.

- you can shutdown an application
easy task

- you can start a program


You still have to write the code to meet your requirements. Now it is
just the matter of where to put the code.

---
Lao K
Windows Mobile Pocket PC Smartphone Programming Hints and Tips
http://windowsmobilepro.blogspot.com