Skip to content
⌘ NSIS Forum Archive

Delete a file/folder if Cancel buton is pressed ?

3 posts

sixcode#

Delete a file/folder if Cancel buton is pressed ?

Hi again

like the topic say's, is this possible ?
i have the hwndparent (GetDlgItem $R0 $HWNDPARENT 2)
but al the things i did try non of them work

any help ?

thanks
Ender7584#
Last I checked, Kichik disabled the cancel button while your installer is running.

If your talking about before your install runs, you can use a .onuserabort function.

I tried everything to get kichik to enable the cancel button, but with no luck. 😠
Comm@nder21#
ender, you can enable it yourself!

by either ...
- using a plugin (there are some in the forums, just search)
- using the right winapi calls with system.dll
- changing nsis' source and recompile it (very easy thanx to scons)