Archive: Enable cancel button during install?


Enable cancel button during install?
Hello.

I have an installer that extracts files during the installer, and while the plugin (nsisunz) is extracting, the cancel button is grayed out.

How do I enable this button, because if not possible, my users will be unable to cancel the installation until the installation is complete.

EDIT: I am not sure nsisunz is doing this (disabling the cancel button) since I just put a "sleep 5000" after the extraction and the cancel button remains disabled.


Are you speaking of the NSIS cancel button?
If so then enabling it won't do anything anyway. You'd need to modify nsisunz to use an asynchronous thread and include a cancel flag.

Stu


well shouldn't the cancel button become available when nsisunz isn't doing anything (e.g. during a sleep)?


Afrow I am not able to understand your answer
Hi,
I also have the same problem, you talked about nsisunz, but that for zip files, How it is related with this problem. your answer will be very helpful.

Thanks,
Prabhat.


Any updates on this,i think this feature is essential "enable the cancel button" else the user need to wait for a long time for the installation to complete.


I wrote an installer for the company I work for which addresses the cancel problem using a modified version of NSISUNZ which keeps checking the stack for a cancel flag flag.

I have organized each section of an installer to have an extract (which enables the cancel button), finish (critical section, not cancellation) and remove, which also allows for roll back during the install.

We will most likely be releasing this source once the quality is high enough. I just want to put this out there to gauge the level on interest.


Can you please give the source for this feature.I need to see how you have did it.

Originally posted by aidengrandfield
I wrote an installer for the company I work for which addresses the cancel problem using a modified version of NSISUNZ which keeps checking the stack for a cancel flag flag.

I have organized each section of an installer to have an extract (which enables the cancel button), finish (critical section, not cancellation) and remove, which also allows for roll back during the install.

We will most likely be releasing this source once the quality is high enough. I just want to put this out there to gauge the level on interest.