Archive: Universal function


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 .


Make your own function and call that from all standard error callback functions (like .onUserAbort etc.)


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 .