using unload.exe within application kills it

  • Thread starter Thread starter Malc
  • Start date Start date
M

Malc

Hi I'm trying to uninstall an application from code as follows:

OpenNETCF.Diagnostics.Process.Start("\\windows\\unload.exe","SymbolicTools
PocketConsole");

It works but it causes the C# application to instantly exit. Is there a
way to uninstall without this behaviour?

Cheers,

Malc.
 
Try changing UseShellExecute to false. To do this you will need the overload
that takes ProcessStartupInfo as a parameter
 
It was sending WM_CLOSE to all applications, so I just had to catch that.
 
That's clever. I suppose the WM_CLOSE was actually sent from CESetup.dll
associated with the app. I don't think unload.exe would do that on its own
 
Malc,

I have the same problem. But how did you catch the WM_CLOSE? Thx.

Alan
 

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