Exploding CAB files with Rapi

  • Thread starter Thread starter Will Chapman
  • Start date Start date
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?
 
Only one instance of wceload can be running at a time - could that be the
issue?
 
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
 
Back
Top