Skip to content
⌘ NSIS Forum Archive

ABORTWARNING problem for installing files 'Cancel' button?

4 posts

lovespy108#

ABORTWARNING problem for installing files 'Cancel' button?

I made the 'Cancel' button to be enabled when installing files or uninstalling files.But when I clicked the 'Cancel' button,though it popped up messagebox to prompt me,the installing or uninstalling process was still continuing.

I want the that process paused when it popped up messagebox,and when I cancel the messagebox,it will install or uninstall at once.

I thought I should define my own ABORTWARNING OR UNABORTWARNING Function to realize that.

I have no way to write that script.Help me please!

Thanks very much!🙁 👍
---------------------------------------------------
!define MUI_CUSTOMFUNCTION_ABORT MyAbort
Function MyAbort
????
FunctionEnd
------------------------------------------------------
Joost Verburg#
Enabling the Cancel button during installation is not supported. How did you enable it?
lovespy108#
The following way can enable the 'Cancel' button on the installfiles page.
-----------------------------------------------
!define MUI_PAGE_CUSTOMFUNCTION_PRE MyInstPre
!insertmacro MUI_PAGE_INSTFILES

Function MyInstPre

GetDlgItem $MUI_TEMP1 $HWNDPARENT 2
EnableWindow $MUI_TEMP1 1
FunctionEnd
-------------------------------------------
Red Wine#
Re: ABORTWARNING problem for installing files 'Cancel' button?

Originally posted by lovespy108
I made the 'Cancel' button to be enabled when installing files or uninstalling files.But when I clicked the 'Cancel' button,though it popped up messagebox to prompt me,the installing or uninstalling process was still continuing...
You should read kichik's suggestion on the other thread you've opened about the same subject,

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.