P
Paul
I need to uninstall applications from within my .Net CF application. I
originally tried directly from my .Net app with a P\Invoke with:
CreateProcess("\windows\unload.exe", "CM TestApp", IntPtr.Zero,
IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, aPi)
It uninstalls the program (TestApp) as expected, but it also
terminates my
..Net application! I use other calls to to CreateProcess that work
fine, it is
just the call to unload.exe that causes the .Net app to terminate.
If I have multiple .Net apps running when I try to spawn the
unload.exe, they
all terminate.
I wrote a very simple MFC app that makes a direct call to
CreateProcess to
spawn the unload.exe with no adverse affects to the MFC app. If I have
any
..Net applications running when the MFC app makes the call; again, all
the .Net
apps terminate.
That leads me to believe that the unload.exe executable stops the .Net
framework, or something similar. Does anyone have a solution or
work-around?
Thanks,
Paul
originally tried directly from my .Net app with a P\Invoke with:
CreateProcess("\windows\unload.exe", "CM TestApp", IntPtr.Zero,
IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, aPi)
It uninstalls the program (TestApp) as expected, but it also
terminates my
..Net application! I use other calls to to CreateProcess that work
fine, it is
just the call to unload.exe that causes the .Net app to terminate.
If I have multiple .Net apps running when I try to spawn the
unload.exe, they
all terminate.
I wrote a very simple MFC app that makes a direct call to
CreateProcess to
spawn the unload.exe with no adverse affects to the MFC app. If I have
any
..Net applications running when the MFC app makes the call; again, all
the .Net
apps terminate.
That leads me to believe that the unload.exe executable stops the .Net
framework, or something similar. Does anyone have a solution or
work-around?
Thanks,
Paul