ExecDos and cancel/close (x) buttons
Hello everyone,
Is it somehow possible to terminate the thread created by ExecDos::exec when the user clicks on the cancel button?
I am using ExecDos::exec to run a perl script that installs some packages from CPAN and displays the progress from console in a multi-line text window. Since the installation can take several minutes, I would like to give the user the opportunity to stop the installation.
I can disable next, back and cancel buttons, but weird things happen also when I use the 'x' in the corner of the installer to close it (and I think that some users might try that if all the other buttons are disabled).
I was also thinking about creating a separate installer for the CPAN packages installation, is there any other function that respects the cancel button? (I've looked at nsExec documentation but haven't found anything useful yet)
Thank you for any suggestions.