K
Kevin
Hi,
I'm developing an application that performs an automatic upgrade. The upgrade is
in the form of a CAB file that gets downloaded onto the user's device. When the
CAB file is successfully downloaded, I want to automatically start the CAB
installation. However, the CAB file contains the application I am currently
running. I need to be able to exit the application and start the CAB file
install automatically. Here's what I'm doing:
*Currently in a dialog processing the CAB file download*
*Done with downloading; show a MessageBox.
Process p = new Process();
p.StartInfo.FileName = <full name of CAB file>;
p.Start();
Application.Exit();
Generally, this works. However, when the CAB installs, it stops on the
application EXE file because it is still in use (running). I need it to stop
running.
Is it because I am spawning a process within my application's main process and
it won't die until all other threads/processes are finished?
Any help, guidance, or clarification is greatly appreciated.
Thanks,
Kevin
I'm developing an application that performs an automatic upgrade. The upgrade is
in the form of a CAB file that gets downloaded onto the user's device. When the
CAB file is successfully downloaded, I want to automatically start the CAB
installation. However, the CAB file contains the application I am currently
running. I need to be able to exit the application and start the CAB file
install automatically. Here's what I'm doing:
*Currently in a dialog processing the CAB file download*
*Done with downloading; show a MessageBox.
Process p = new Process();
p.StartInfo.FileName = <full name of CAB file>;
p.Start();
Application.Exit();
Generally, this works. However, when the CAB installs, it stops on the
application EXE file because it is still in use (running). I need it to stop
running.
Is it because I am spawning a process within my application's main process and
it won't die until all other threads/processes are finished?
Any help, guidance, or clarification is greatly appreciated.
Thanks,
Kevin