Skip to content
⌘ NSIS Forum Archive

Abort functionality with 1.80 ?

10 posts

tonip#

Abort functionality with 1.80 ?

Hi,

I just upgraded from 1.70 to 1.80 and calling Abort does not work anymore installation goes forward as nothing happened. This worked fine with 1.70. So should i change something according to change log no functionality changes with Abort.

Regards, Toni
Guest#
The same is happening to my installation!!!

Justin, please help us...
Did we find a bug???

Greetz, Hendri... 🙁
FreeNsisTweaker#
Yes, I think we've found a bug. In 1.80b2 it still works....
You could use something like this:

Section ""
StrCmp $1 $2 Yes Abort

{other commands}

;And, at the end of the script:

Abort:
SectionEnd
Guest#
More specifically:

abort still works before getting to the install sections:
eg. select dir and choose cancel:
MessageBox "You're sure???" -> abort if yes
still works.

But at install (when files are extracted) it doesn't work anymore:
eg:
MessageBox "This file exists, overwrite???" -> abort if cancel
DOES NOT WORK ANYMORE!!!

Hendri.
justin#
Oops, there are issues with calling Abort from a Function, but calling Abort from a section should work. Are you having issues with calling Abort from a section or function? I need to know so I can know if I have fixed it 🙂

-Justin
Guest#
abort problem

Justin,

I encountered problems with abort within functions...
But I didn't yet test abort in sections fully...

So maybe someone else can comment about that

Greetz, good luck, Hendri.
Guest#
Justin,

please also take a look at the thread about .onVerifyInstDir:

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.


Thx, good luck, Hendri 😁
Guest#
after a little testing...

Justin,

after a little testing these are the results:
abort in .OnUserAbort still works,
but abort does not work in functions, called from sections. (Maybe also not from sections, I don't know...)

eg: I have a function: backup, that is called from the first (required) section and it checks whether the instdir allready exists.

Function "Backup"
Some Message "This dir exists, continue?"
Yes -> create backup
No -> quit setup (using abort)
FunctionEnd

but this abort does not work anymore...

hope this helps, greetz, Hendri 😁
Guest#
solved

Justin,

I see you solved the problem already:


thx, Hendri.
FreeNsisTweaker#
Justin,

In v1.80 Abort doesn't work within sections too.
But I believe that is fixed in 1.81. I didn't check Functions.