PDA

View Full Version : .onUserAbort is already referenced. Edit/remove > systems.nsh or override it somehow?


vbgunz
24th December 2003, 11:03
Hello,

My installer launches several files during ".onInit" and the installer is fixed to delete them after install. A little problem though prevents the installer from deleting the files if the user suddenly decides to cancel.

I can fix this by editing the systems.nsh file but am really hoping I could be able to override it and keep all the code within my script. What is the override command?

I searched and failed. Any help will be greatly appreciated.

kichik
24th December 2003, 11:07
See Customize Modern UI Functions->General Custom Functions->MUI_CUSTOMFUNCTION_ABORT in the MUI readme. You define it just like you define a callback function for a page.

!define MUI_CUSTOMFUNCTION_ABORT myOnUserAbort
Function myOnUserAbort
#...
FunctionEnd

vbgunz
24th December 2003, 11:15
Thank you Kichik,

It works perfectly and thank you for the tips on finding more information ;)

Joost Verburg
24th December 2003, 12:56
You can also use the plug-ins folder for temporary files, so you won't have to delete them manually.

vbgunz
24th December 2003, 14:32
Thanks Joost,

I understood the plugin-dir but I needed to extract a file to the exedir so to make linking to it from an INI easier for me.

Thank you though for your input as it is always valuable :)