Old 6th December 2022, 19:32   #1
petersi
Junior Member
 
Join Date: Dec 2022
Posts: 4
Quit not working

I have a callback operation where I am tripping a quit operation. But the installer does not quit:

Function CancelNotification
GetFunctionAddress $2 Exit
ThreadTimer::Start /NOUNLOAD 10 1 $2
FunctionEnd

Function Exit
Quit
FunctionEnd

I've tried calling quit in the CancelNotification callback operation - but still fails to quit the installer.

Peter
petersi is offline   Reply With Quote
Old 6th December 2022, 20:13   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
Quit sets a flag, it is not an instant action. Where/when are you calling it?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th December 2022, 20:42   #3
petersi
Junior Member
 
Join Date: Dec 2022
Posts: 4
Quote:
Originally Posted by Anders View Post
Quit sets a flag, it is not an instant action. Where/when are you calling it?
calling it via a callback operation. What operation can I call tro close the installer?
petersi is offline   Reply With Quote
Old 7th December 2022, 10:02   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
Yes but there is no context. What type of page? In the pre page callback? A custom timer thing?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
quit

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