zivha
18th August 2010 06:47 UTC
Can you tell if user hit Alt-F4 or click Cancel?
Hi,
Is there a way to know if the user is aborting the installation by hitting Alt-F4 or by clicking the Cancel button? It seems like both will fire up the Abort callback but I can not seem to find a way to tell within that function the reason for the abort.
Thanks!
Afrow UK
18th August 2010 10:13 UTC
I think I wrote a plug-in for a company a long time ago for this. You will have to do the same. Subclass $HWNDPARENT to catch Alt+F4 then set a Boolean flag which is returned from a plug-in function.
Stu
Animaether
18th August 2010 13:37 UTC
Anders wrote a subclassing plugin a long time ago..
http://nsis.sourceforge.net/WndSubclass_plug-in
..not sure if it's appropriate for the intended use here, though.
zivha
18th August 2010 17:10 UTC
Thanks guys, I'll look into it I guess I'll need to go and implement a plug-in for that, was hoping to avoid that task.