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
 
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
 
Back
Top