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.
.onUserAbort is already referenced. Edit/remove > systems.nsh or override it somehow?
5 posts
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
!define MUI_CUSTOMFUNCTION_ABORT myOnUserAbort
Function myOnUserAbort
#...
FunctionEnd
Thanks!
Thank you Kichik,
It works perfectly and thank you for the tips on finding more information 😉
Thank you Kichik,
It works perfectly and thank you for the tips on finding more information 😉
You can also use the plug-ins folder for temporary files, so you won't have to delete them manually.
Thanks Joost
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 🙂
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 🙂