Call .cab from my app

  • Thread starter Eduardo S.E. de Castro
  • Start date
E

Eduardo S.E. de Castro

Hi,
I'm created my app and I want to run a .cab when a user open the app, I
tried to use the same method that I use to open Internet Explorer, but it
doesn't work.

String strProgPath = "\\mycab.cab"; //Path is correct, I verified the path
ProcessInfo pi = new ProcessInfo();
CreateProcess(strProgPath, "file://"+ sfDialog.FileName, pi);

Nothing happens, if I use "IExplore.exe", it runs.

Thanks
Eduardo S.E. de Castro - MCSA/MCP
 
C

Chris Tacke, eMVP

It's becasue CAB files cannot be "run". They are extracted with
wceload.exe, so you need to run wceload with the CAB path as a parameter.
Something like this:

CreateProcess("wceload.exe", cabPathAndName, pi);

-Chris
 

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