Exploding CAB files with Rapi

W

Will Chapman

Using the Rapi Class in the OpenNETCF.Communication.library
I have come up with the following code which copies a CAB file
to a PPC and then explodes it.

The explosion in turn produces another CAB file and when
I try to explode with the same process it fails (the CAB is
good as it can be exploded manually on the PPC).

Can anyone advise what I am missing?
string cCE = "EyeMHere.cab";

if (!m_rapi.DeviceFileExists(cCE))

{
m_rapi.CopyFileToDevice(@"C:\EyeMHere\EyeMHereCab\Release\EyeMHere.Cab",
"EyeMHere.cab", true);
}

if (m_rapi.DeviceFileExists(cCE))
{
m_rapi.CreateProcess("wceload.exe", cCE);
}

//Up to this point the code works fine and the target CAB is exploded.....

However, it won't work again.....

cCE = "\\Program Files\\GpsLibCE.arm.CAB";

if (m_rapi.DeviceFileExists(cCE)) ///this evaluates true
{
m_rapi.CreateProcess("wceload.exe", cCE); //this line is processed but
nothing happens...
}

Any ideas/suggestions?
 
R

Robert Levy [MS]

Only one instance of wceload can be running at a time - could that be the
issue?
 
W

Will Chapman

Robert said:
Only one instance of wceload can be running at a time - could that be the
issue?

That doesn't appear to be the problem as it doesn't explode even if it
is the first call on wceload.

Thanks for your input...


Will Chapman
 

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