Alfaromeo
14th April 2010 12:49 UTC
Universal function
Hi
I would like to know an universal built-in function in NSIS which will be called at any occasions ie onCancel OnInstallfailed or on abort .
Bsically I'm trying to mimic a function just like "finally" in C# or Java wherein it will be executed everytime .
I wouldlike to unload all my plugins in this function .
jpderuiter
14th April 2010 13:52 UTC
Make your own function and call that from all standard error callback functions (like .onUserAbort etc.)
Animaether
14th April 2010 13:54 UTC
If your installer has no silent mode support, then .onGUIEnd is a potential candidate - but using it as such is probably not recommended ;)
I just create my own function, .onExit, and call that from .onInstSuccess, .onInstFailed and .onUserAbort to clean up any non-GUI items, and perform clean-up of GUI items in .onGUIEnd .