Old 25th January 2008, 01:56   #1
lovespy108
Member
 
Join Date: Sep 2007
Posts: 63
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
------------------------------------------------------
lovespy108 is offline   Reply With Quote
Old 25th January 2008, 02:36   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Enabling the Cancel button during installation is not supported. How did you enable it?
Joost Verburg is offline   Reply With Quote
Old 25th January 2008, 02:50   #3
lovespy108
Member
 
Join Date: Sep 2007
Posts: 63
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
-------------------------------------------
lovespy108 is offline   Reply With Quote
Old 25th January 2008, 04:21   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Re: ABORTWARNING problem for installing files 'Cancel' button?

Quote:
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,

http://forums.winamp.com/showthread....82#post2299082

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump