Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 24th December 2003, 12:03   #1
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
.onUserAbort is already referenced. Edit/remove > systems.nsh or override it somehow?

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.
vbgunz is offline   Reply With Quote
Old 24th December 2003, 12:07   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 24th December 2003, 12:15   #3
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
Thanks!

Thank you Kichik,

It works perfectly and thank you for the tips on finding more information
vbgunz is offline   Reply With Quote
Old 24th December 2003, 13:56   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You can also use the plug-ins folder for temporary files, so you won't have to delete them manually.
Joost Verburg is offline   Reply With Quote
Old 24th December 2003, 15:32   #5
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
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
vbgunz is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump