Archive: how to cancel an installation process


how to cancel an installation process
hello,

Is there a way to enable the cancel button and aborts the installation? So that it can canceled if the user decided in the middle of the installation process to cancel the installation.

thanks!


Nope, not yet.


anything new in meanwhile? :p


it's a good idea to enable a cancel button.


I wonder if this has been implemented or not yet. Any plans to have this in the future?

Thanks


And did you not make in becuase you didnt like it .. or do you need to program it


You can almost always click the 'close' button on the caption ;)


This is my way:

CTRL + ALT + DELETE

lol


Originally posted by kichik
Nope, not yet.
Not even if we defined a custom function and attached it to the cancel button?

Currently, you can't do that.


Is there any info on this yet?
This is my situation:
- I have an application that really needs Adobe Acrobat installed.
- I check for this in the installer
- When it's not installed, I show a message box, and want to stop everything in the installation.

I could work with goto's, but I cannot cancel predefined Sections!
So: How can I stop all installer-executions?

Thanks a lot,


check Adobe earlier, for example in .onInit function ( i.e. before installation process really starts). You can also include it to the package or download from Inet (Reader - 12 MB) and install, http://forums.winamp.com/showthread....&highlight=3rd


reply cancel exe
Here's a way. I'm using a silent install for this but just cut and paste lines. I had the same problem, but this fixed it. Function .onInit

MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to install now?" \
/SD IDYES IDNO No IDYES Yes

yes:
SetSilent silent
Goto done
no:
SetSilent normal
goto done
done:
FunctionEnd

Section

MessageBox MB_OK|MB_ICONINFORMATION "Aborted" /SD IDOK
#Make sure you change value of +2 to -2 or it wont work
IfSilent 0 -2

AllowSkipFiles off


FileOpen $0 $TEMP\silentOverwrite w
FileClose $0


MessageBox MB_OK|MB_ICONINFORMATION "Successful!"

AllowSkipFiles on

FileOpen $0 $TEMP\silentOverwrite w
FileClose $0