Archive: Abort functionality with 1.80 ?


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


The same is happening to my installation!!!

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

Greetz, Hendri... :(


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


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.


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


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.


Justin,

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

http://forums.winamp.com/showthread....threadid=68242

Thx, good luck, Hendri :D


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 :D


solved
Justin,

I see you solved the problem already:
http://www.firehose.net/free/nsis/#download

thx, Hendri.


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.