install CAP file already in the PDA programatically

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!
 
P

Peter Foot [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top