Wait for the shelled app to finish

  • Thread starter Thread starter Ewa Sowa
  • Start date Start date
E

Ewa Sowa

I'm using CeCreateProcess to run a program that installs myApp.exe on my
Pocket PC. If myApp is already installed, a dialog box pops up asking if
you want to reinstall. Right after myApp.exe is installed, I want to use
CeDeleteFile to remove the icon associated with myApp (it's a hidden app
that the user is not supposed to see).

The problem is that CeDeleteFile fires before the myApp is installed.
How do I tell the program to wait for the shelled app to finish?

I'd appreciate your help. Thanks.
 
Hello,

Ewa Sowa said:
I'm using CeCreateProcess to run a program that installs
myApp.exe on my Pocket PC.

Are you sure the question is in any way related to the VB.NET language?

Regards,
Herfried K. Wagner
 
You can call WaitForSingleObject to wait the process ends.

Thanks
Lifeng
MS VB
 

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

Back
Top