install CAP file already in the PDA programatically

  • Thread starter Thread starter Patino
  • Start date Start date
P

Patino

I have a CAB file already in a folder in my PDA. How can I install it
from a program running on my PDA? I'm using Windows Mobile 2005 in C#.
I read about ShellExecuteEx in the Shellapi.h.....but is this
PlatformInvoke? Does the .NET 2005 have already a similar function to
do this?

Thanks!
 
In .NETCF v2.0 use the System.Diagnostics.Process class e.g.

using System.Diagnostics;
....

Process.Start("wceload.exe", "/silent "\\\My Documents\\MyCab.cab\"");

Replace the path and remember to add escaped quotes if the path contains
spaces. The /silent switch is optional and will install without ui on
Windows Mobile 5.0. Use /noui /noaskdest on older versions of Windows
Mobile.

Peter
 
Back
Top