- NSIS Discussion
- Abort functionality with 1.80 ?
Archive: Abort functionality with 1.80 ?
tonip
11th December 2001 11:29 UTC
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
Smile2Me
11th December 2001 17:46 UTC
The same is happening to my installation!!!
Justin, please help us...
Did we find a bug???
Greetz, Hendri... :(
FreeNsisTweaker
11th December 2001 18:13 UTC
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
Smile2Me
11th December 2001 19:10 UTC
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
11th December 2001 20:07 UTC
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
Smile2Me
12th December 2001 07:11 UTC
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.
Smile2Me
12th December 2001 07:17 UTC
Justin,
please also take a look at the thread about .onVerifyInstDir:
http://forums.winamp.com/showthread....threadid=68242
Thx, good luck, Hendri :D
Smile2Me
12th December 2001 07:24 UTC
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
Smile2Me
12th December 2001 07:31 UTC
solved
Justin,
I see you solved the problem already:
http://www.firehose.net/free/nsis/#download
thx, Hendri.
FreeNsisTweaker
12th December 2001 19:03 UTC
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.