Abort: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(minor updates)
m (Reverted edits by 199.48.147.37 to last version by 94.175.227.58)
Line 1: Line 1:
The Abort command has a different effect depending on where it is called. The full list of effects is not detailed in the Scripting Reference, so I've done some tests and documented the results here:


When calling Abort from any function, no further instructions in that function are executed and we either terminate the installer or jump to another page/function.


== Celebrity Chef Chris Nirschel Cooks for the Homeless ==
{| cellpadding="4" border="1" class="table_descrowdesccol sortable"
! style="text-align: left" | Function
! style="text-align: left" | Triggered by
! style="text-align: left" | Abort effect
|-
! .onInit
| Installer executing.
| Installer terminates. No further callback functions.
|-
! .onGUIInit
| Immediately after .onInit
| Jump to .onGUIEnd
|-
! Page 'pre'
| When entering the page (backwards or forwards).
| Skip the page (in the direction the user is navigating).
|-
! Page 'show'
| Immediately after 'pre' callback.
| None (other than skipping remaing instructions in the function).
|-
! Page 'leave'
| When leaving the page (backwards or forwards).
| Stay on the page.
|-
! Section
| Immediately after InstFiles page 'show' callback.
| Install stops. Only button enabled is Cancel.
|-
! .onInstFailed
| User clicking Cancel after Aborted install.
| Jump to .onGUIEnd
|-
! .onInstSuccess
| User clising Close after completed install.
| Jump to .onGUIEnd
|-
! .onGUIEnd
| Immediately after .onInstFailed or .onInstSuccess
| Installer terminates. No further callback functions.
|-
! Custom Function
| Manual Call from other function/section.
| Abort command effect is as if it was executed by the calling function.
|}


Cause Celeb highlights a celebritys work on behalf of a specific cause. This week, Chris Nirschel shares with us, via email interview, his work with The Food Bank for New York City.After 28 years, The Food Bank for New York has become the citys major hunger relief organization and one of the largest food banks in the country.


[[http://goodvillenews.com/Celebrity-Chef-Chris-Nirschel-Cooks-for-the-Homeless-3xkuIL.html Celebrity Chef Chris Nirschel Cooks for the Homeless]]
[[Category:Scripting FAQ]]
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
== 13 Things You Should Do To Live Life Without Regrets ==
 
A study that was performed on elderly individuals a few years back, has shown that during old age, there are many people who regret the things they didnt have the courage to do as opposed to only a few who had regrets about the things theyve done.
 
[[http://goodvillenews.com/13-Things-You-Should-Do-To-Live-Life-Without-Regrets-DyXsux.html 13 Things You Should Do To Live Life Without Regrets]]
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
== 9 Reasons Why You Should No Longer Care About Peoples Approval ==
 
A truly strong person does not need the approval of others any more than a lion needs the approval of sheep. Vernon HowardApproval Seeking Behavior If you ask me, this is where many of our challenges start. When you are too concerned with what other people think of you, you start sabotaging your life, and you start moving forward but with the breaks on.
 
[[http://goodvillenews.com/9-Reasons-Why-You-Should-No-Longer-Care-About-Peoples-Approv-oy6.html 9 Reasons Why You Should No Longer Care About Peoples Approval]]
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
== 7 Choices You Always Have (that you dont always give yourself) ==
 
I believe the choice to be excellent begins with aligning your thoughts and words with the intention to require more from yourself. ~ Oprah WinfreyMaking choices is probably the most stressful thing that we do as humans. Or perhaps more accurately, the stressful thing we do is to choose avoidance when we dont like what choices were facing. This is what creates the stress.
 
[[http://goodvillenews.com/7-Choices-You-Always-Have-that-you-dont-always-give-yourself-RRF.html 7 Choices You Always Have (that you dont always give yourself)]]
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]
 
== A Sisters Deathless Legacy of Love ==
 
After living through an experimental cancer treatment my sister Barb was left unable to work. When she was offered the opportunity to do a mission trip in India if she could come up with $3,000 - she was left thinking there was no way she could go. No way to raise the funds. She asked me to brainstorm with her as to ways she could raise money. "The only thing I can do is hug," she told me - and thus her adventure began.
 
[[http://goodvillenews.com/A-Sisters-Deathless-Legacy-of-Love-UvTY7u.html A Sisters Deathless Legacy of Love]]
 
[[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]]

Revision as of 17:22, 15 August 2012

The Abort command has a different effect depending on where it is called. The full list of effects is not detailed in the Scripting Reference, so I've done some tests and documented the results here:

When calling Abort from any function, no further instructions in that function are executed and we either terminate the installer or jump to another page/function.

Function Triggered by Abort effect
.onInit Installer executing. Installer terminates. No further callback functions.
.onGUIInit Immediately after .onInit Jump to .onGUIEnd
Page 'pre' When entering the page (backwards or forwards). Skip the page (in the direction the user is navigating).
Page 'show' Immediately after 'pre' callback. None (other than skipping remaing instructions in the function).
Page 'leave' When leaving the page (backwards or forwards). Stay on the page.
Section Immediately after InstFiles page 'show' callback. Install stops. Only button enabled is Cancel.
.onInstFailed User clicking Cancel after Aborted install. Jump to .onGUIEnd
.onInstSuccess User clising Close after completed install. Jump to .onGUIEnd
.onGUIEnd Immediately after .onInstFailed or .onInstSuccess Installer terminates. No further callback functions.
Custom Function Manual Call from other function/section. Abort command effect is as if it was executed by the calling function.