empezar
31st July 2007 12:44 UTC
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.
Afrow UK
31st July 2007 14:42 UTC
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
empezar
31st July 2007 16:04 UTC
well shouldn't the cancel button become available when nsisunz isn't doing anything (e.g. during a sleep)?
123mobile
8th August 2007 19:54 UTC
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.
Madhusudhanan
11th May 2009 08:17 UTC
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.
aidengrandfield
20th May 2009 14:37 UTC
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.
Madhusudhanan
2nd February 2010 11:03 UTC
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.